public class PropertyName
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.core.SerializableString |
_encodedSimple
Lazily-constructed efficient representation of the simple name.
|
protected java.lang.String |
_namespace
Additional namespace, for formats that have such concept (JSON
does not, XML does, for example).
|
private static java.lang.String |
_NO_NAME |
protected java.lang.String |
_simpleName
Basic name of the property.
|
private static java.lang.String |
_USE_DEFAULT |
static PropertyName |
NO_NAME
Special placeholder value that indicates that there is no name associated.
|
private static long |
serialVersionUID |
static PropertyName |
USE_DEFAULT
Special placeholder value that indicates that name to use should be
based on the standard heuristics.
|
Constructor and Description |
---|
PropertyName(java.lang.String simpleName) |
PropertyName(java.lang.String simpleName,
java.lang.String namespace) |
Modifier and Type | Method and Description |
---|---|
static PropertyName |
construct(java.lang.String simpleName) |
static PropertyName |
construct(java.lang.String simpleName,
java.lang.String ns) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getNamespace() |
java.lang.String |
getSimpleName() |
int |
hashCode() |
boolean |
hasNamespace() |
boolean |
hasSimpleName() |
boolean |
hasSimpleName(java.lang.String str) |
PropertyName |
internSimpleName() |
boolean |
isEmpty()
Method that is basically equivalent of:
|
protected java.lang.Object |
readResolve() |
com.fasterxml.jackson.core.SerializableString |
simpleAsEncoded(MapperConfig<?> config)
Accessor that may be used to get lazily-constructed efficient
representation of the simple name.
|
java.lang.String |
toString() |
PropertyName |
withNamespace(java.lang.String ns)
Fluent factory method for constructing an instance with different
namespace.
|
PropertyName |
withSimpleName(java.lang.String simpleName)
Fluent factory method for constructing an instance with different
simple name.
|
private static final long serialVersionUID
private static final java.lang.String _USE_DEFAULT
private static final java.lang.String _NO_NAME
public static final PropertyName USE_DEFAULT
public static final PropertyName NO_NAME
protected final java.lang.String _simpleName
protected final java.lang.String _namespace
protected com.fasterxml.jackson.core.SerializableString _encodedSimple
NOTE: not defined as volatile to avoid performance problem with
concurrent access in multi-core environments; due to statelessness
of SerializedString
at most leads to multiple instantiations.
public PropertyName(java.lang.String simpleName)
public PropertyName(java.lang.String simpleName, java.lang.String namespace)
protected java.lang.Object readResolve()
public static PropertyName construct(java.lang.String simpleName)
public static PropertyName construct(java.lang.String simpleName, java.lang.String ns)
public PropertyName internSimpleName()
public PropertyName withSimpleName(java.lang.String simpleName)
public PropertyName withNamespace(java.lang.String ns)
public java.lang.String getSimpleName()
public com.fasterxml.jackson.core.SerializableString simpleAsEncoded(MapperConfig<?> config)
public java.lang.String getNamespace()
public boolean hasSimpleName()
public boolean hasSimpleName(java.lang.String str)
public boolean hasNamespace()
public boolean isEmpty()
!hasSimpleName() << !hasNamespace();
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object