@NotThreadSafe public class PDName extends Object implements com.helger.json.IHasJson, Serializable, com.helger.commons.lang.ICloneable<PDName>
| Constructor and Description |
|---|
PDName() |
PDName(String sName) |
PDName(String sName,
String sLanguageCode) |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneTo(PDName ret)
This method clones all values from
this to the passed object. |
boolean |
equals(Object o) |
com.helger.json.IJsonObject |
getAsJson() |
com.helger.xml.microdom.IMicroElement |
getAsMicroXML(String sNamespaceURI,
String sElementName) |
PDName |
getClone() |
String |
getLanguageCode() |
String |
getName() |
int |
hashCode() |
boolean |
hasNoLanguageCode() |
static boolean |
isValidLanguageCode(String s) |
static PDName |
of(com.helger.json.IJsonObject aJson) |
PDName |
setLanguageCode(String sLanguageCode)
Set the language code to use.
|
PDName |
setName(String sName)
Set the name itself.
|
String |
toString() |
@Nonnull @Nonempty public final String getName()
null nor empty.@Nonnull public final PDName setName(@Nonnull @Nonempty String sName)
sName - The name to use. May neither be null nor empty.@Nullable public final String getLanguageCode()
null.public final boolean hasNoLanguageCode()
@Nonnull public final PDName setLanguageCode(@Nullable String sLanguageCode)
sLanguageCode - The language code to use. May be null. If
non-null it must be syntactically a valid lanaguage
code.isValidLanguageCode(String)public void cloneTo(@Nonnull PDName ret)
this to the passed object.
All data in the parameter object is overwritten!ret - The target object to clone to. May not be null.@Nonnull @ReturnsMutableCopy public PDName getClone()
getClone in interface com.helger.commons.lang.ICloneable<PDName>@Nonnull public com.helger.xml.microdom.IMicroElement getAsMicroXML(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sElementName)
@Nonnull public com.helger.json.IJsonObject getAsJson()
getAsJson in interface com.helger.json.IHasJsonCopyright © 2015–2021 Philip Helger. All rights reserved.