public class PropertyName
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 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:
|
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.
|
public static final PropertyName USE_DEFAULT
public static final PropertyName NO_NAME
public PropertyName(java.lang.String simpleName)
public PropertyName(java.lang.String simpleName, java.lang.String namespace)
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 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
Copyright © 2010 - 2020 Adobe. All Rights Reserved