| Modifier and Type | Field and Description |
|---|---|
| protected SerializableString | _encodedSimple
Lazily-constructed efficient representation of the simple name. |
| protected final String | _namespace
Additional namespace, for formats that have such concept (JSON does not, XML does, for example). |
| private static final String | |
| protected final String | _simpleName
Basic name of the property. |
| private static final String | |
| public static final PropertyName | NO_NAME
Special placeholder value that indicates that there is no name associated. |
| private static final long | |
| public static final PropertyName | USE_DEFAULT
Special placeholder value that indicates that name to use should be based on the standard heuristics. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static PropertyName | |
| public static PropertyName | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public PropertyName | |
| public boolean | |
| public static PropertyName | Returns: Merged information; onlynull if both arguments
are nulls.Name with higher precedence; may be name1, PropertyName nullName with lower precedence; may be name2)nullMethod that will combine information from two |
| protected Object | |
| public SerializableString | simpleAsEncoded(MapperConfig<?> config)
Accessor that may be used to get lazily-constructed efficient representation of the simple name. |
| public String | |
| public PropertyName | withNamespace(String ns)
Fluent factory method for constructing an instance with different namespace. |
| public PropertyName | withSimpleName(String simpleName)
Fluent factory method for constructing an instance with different simple name. |
| _encodedSimple | back to summary |
|---|---|
| protected SerializableString _encodedSimple Lazily-constructed efficient representation of the simple name. Note not defined as volatile to avoid performance problem with
concurrent access in multi-core environments; due to statelessness
of
| |
| _namespace | back to summary |
|---|---|
| protected final String _namespace Additional namespace, for formats that have such concept (JSON does not, XML does, for example). | |
| _NO_NAME | back to summary |
|---|---|
| private static final String _NO_NAME | |
| _simpleName | back to summary |
|---|---|
| protected final String _simpleName Basic name of the property. | |
| _USE_DEFAULT | back to summary |
|---|---|
| private static final String _USE_DEFAULT | |
| NO_NAME | back to summary |
|---|---|
| public static final PropertyName NO_NAME Special placeholder value that indicates that there is no name associated. Exact semantics to use (if any) depend on actual annotation in use, but commonly this value disables behavior for which name would be needed. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| USE_DEFAULT | back to summary |
|---|---|
| public static final PropertyName USE_DEFAULT Special placeholder value that indicates that name to use should be based on the standard heuristics. This can be different from returning null, as null means "no information available, whereas this value indicates explicit defaulting. | |
| PropertyName | back to summary |
|---|---|
| public PropertyName(String simpleName) | |
| PropertyName | back to summary |
|---|---|
| public PropertyName(String simpleName, String namespace) | |
| _nonEmpty | back to summary |
|---|---|
| private static String _nonEmpty(String str1, String str2) | |
| construct | back to summary |
|---|---|
public static PropertyName construct(String simpleName)
| |
| construct | back to summary |
|---|---|
| public static PropertyName construct(String simpleName, String ns) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() | |
| getSimpleName | back to summary |
|---|---|
| public String getSimpleName() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasNamespace | back to summary |
|---|---|
| public boolean hasNamespace() | |
| hasSimpleName | back to summary |
|---|---|
| public boolean hasSimpleName() | |
| hasSimpleName | back to summary |
|---|---|
public boolean hasSimpleName(String str)
| |
| internSimpleName | back to summary |
|---|---|
| public PropertyName internSimpleName() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Method that is basically equivalent of: !hasSimpleName() << !hasNamespace();
| |
| merge | back to summary |
|---|---|
| public static PropertyName merge(PropertyName name1, PropertyName name2) Method that will combine information from two
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
| simpleAsEncoded | back to summary |
|---|---|
| public SerializableString simpleAsEncoded(MapperConfig<?> config) Accessor that may be used to get lazily-constructed efficient representation of the simple name.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| withNamespace | back to summary |
|---|---|
| public PropertyName withNamespace(String ns) Fluent factory method for constructing an instance with different namespace. | |
| withSimpleName | back to summary |
|---|---|
| public PropertyName withSimpleName(String simpleName) Fluent factory method for constructing an instance with different simple name. | |