Class UntypedResourceName (2.3.1)

public class UntypedResourceName implements ResourceName

A class to represent a ResourceName with an unknown format. This class in intended to support the case of a resource name string in an unexpected format - generated resource name classes with known formats should be preferred where possible.

Inheritance

Object > UntypedResourceName

Implements

ResourceName

Static Methods

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

of(ResourceName resourceName)

public static UntypedResourceName of(ResourceName resourceName)
Parameter
NameDescription
resourceNameResourceName
Returns
TypeDescription
UntypedResourceName

parse(String formattedString)

public static UntypedResourceName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
UntypedResourceName

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)

Return the String value of the field with name fieldName. Returns null if the fieldName was not found.

Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()

Return the map of each field name to its value.

Returns
TypeDescription
Map<String,String>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides