Class UntypedResourceName (2.42.0)

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
Name Description
formattedString String
Returns
Type Description
boolean

of(ResourceName resourceName)

public static UntypedResourceName of(ResourceName resourceName)
Parameter
Name Description
resourceName ResourceName
Returns
Type Description
UntypedResourceName

parse(String formattedString)

public static UntypedResourceName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
UntypedResourceName

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
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
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()

Return the map of each field name to its value.

Returns
Type Description
Map<String,String>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides