public class UntypedResourceName extends Object implements ResourceName
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.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getFieldValue(String fieldName)
Return the String value of the field with name fieldName.
|
Map<String,String> |
getFieldValuesMap()
Return the map of each field name to its value.
|
int |
hashCode() |
static boolean |
isParsableFrom(String formattedString) |
static UntypedResourceName |
of(ResourceName resourceName) |
static UntypedResourceName |
parse(String formattedString) |
String |
toString() |
public static UntypedResourceName of(ResourceName resourceName)
public static UntypedResourceName parse(String formattedString)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
ResourceName
getFieldValuesMap
in interface ResourceName
public String getFieldValue(String fieldName)
ResourceName
getFieldValue
in interface ResourceName