|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.PropertyName
public class PropertyName
Simple value class used for containing names of properties as defined by annotations (and possibly other configuration sources).
Field Summary | |
---|---|
protected String |
_namespace
Additional namespace, for formats that have such concept (JSON does not, XML does, for example). |
protected String |
_simpleName
Basic name of the property. |
static PropertyName |
NO_NAME
Special placeholder value that indicates that there is no name associated. |
static PropertyName |
USE_DEFAULT
Special placeholder value that indicates that name to use should be based on the standard heuristics. |
Constructor Summary | |
---|---|
PropertyName(String simpleName)
|
|
PropertyName(String simpleName,
String namespace)
|
Method Summary | |
---|---|
static PropertyName |
construct(String simpleName,
String ns)
|
boolean |
equals(Object o)
|
String |
getNamespace()
|
String |
getSimpleName()
|
int |
hashCode()
|
boolean |
hasNamespace()
|
boolean |
hasSimpleName()
|
String |
toString()
|
PropertyName |
withNamespace(String ns)
Fluent factory method for constructing an instance with different namespace. |
PropertyName |
withSimpleName(String simpleName)
Fluent factory method for constructing an instance with different simple name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PropertyName USE_DEFAULT
public static final PropertyName NO_NAME
protected final String _simpleName
protected final String _namespace
Constructor Detail |
---|
public PropertyName(String simpleName)
public PropertyName(String simpleName, String namespace)
Method Detail |
---|
public static PropertyName construct(String simpleName, String ns)
public PropertyName withSimpleName(String simpleName)
public PropertyName withNamespace(String ns)
public String getSimpleName()
public String getNamespace()
public boolean hasSimpleName()
public boolean hasNamespace()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |