Class NameBaseType
java.lang.Object
org.projecthusky.common.basetypes.NameBaseType
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Name
A name for a person, organization, place or thing. A sequence of name parts,
 such as given name or family name, prefix, suffix, etc.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic NameBaseType.Builderbuilder()Creates builder to buildNameBaseType.booleanChecks whether the two objects are equal (based on their content).Gets the name delimiter.Gets the family name.Gets the full name.getGiven()Gets the given name (be careful when calling it "first name" since this given names do not always come first).getName()Gets the whole name.Gets the nullFlavor.Gets the name prefix.Gets the name suffix.getUsage()Gets the name usage.inthashCode()Hash code.booleanChecks if the current instance is null flavored.voidsetDelimiter(String delimiter) Sets the name delimiter.voidSets the family name.voidSets the given name (be careful when calling it "first name" since this given names do not always come first).voidGets the whole name.voidsetNullFlavor(NullFlavor nullFlavor) Sets the nullFlavor.voidSets the name prefix.voidSets the name suffix.voidsetUsage(EntityNameUse usage) Sets the name usage.toString()Builds a string of the name.
- 
Constructor Details- 
NameBaseTypepublic NameBaseType()Instantiates a new name base type. Default constructor.
 
- 
- 
Method Details- 
builderCreates builder to buildNameBaseType.- Returns:
- created builder
 
- 
equalsChecks whether the two objects are equal (based on their content).
- 
getDelimiterGets the name delimiter. A delimiter has no meaning other than being literally printed in this name representation. A delimiter has no implicit leading and trailing white space.- Returns:
- the delimiter
 
- 
setDelimiterSets the name delimiter. A delimiter has no meaning other than being literally printed in this name representation. A delimiter has no implicit leading and trailing white space.- Parameters:
- delimiter- the new delimiter
 
- 
getFamilyGets the family name. This is the name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.- Returns:
- the family
 
- 
setFamilySets the family name. This is the name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.- Parameters:
- family- the new family
 
- 
getFullNameGets the full name.- Returns:
- the full name
 
- 
getGivenGets the given name (be careful when calling it "first name" since this given names do not always come first).- Returns:
- the given
 
- 
setGivenSets the given name (be careful when calling it "first name" since this given names do not always come first).- Parameters:
- given- the new given
 
- 
getNameGets the whole name. By default, it gets assembled by the different name parts, but if there are none, you may also set this directly.- Returns:
- the name
 
- 
setNameGets the whole name. By default, it gets assembled by the different name parts, but if there are none, you may also set this directly.- Parameters:
- name- the new name
 
- 
getNullFlavorGets the nullFlavor.- Returns:
- the null flavor
 
- 
getPrefixGets the name prefix. A prefix has a strong association to the immediately following name part.- Returns:
- the prefix
 
- 
setPrefixSets the name prefix. A prefix has a strong association to the immediately following name part.- Parameters:
- prefix- the new prefix
 
- 
getSuffixGets the name suffix. A suffix has a strong association to the immediately preceding name part.- Returns:
- the suffix
 
- 
setSuffixSets the name suffix. A suffix has a strong association to the immediately preceding name part.- Parameters:
- suffix- the new suffix
 
- 
getUsageGets the name usage. Gets the type of usage (legal, artist, pseudonym, ...).- Returns:
- the usage
 
- 
setUsageSets the name usage. Gets the type of usage (legal, artist, pseudonym, ...).- Parameters:
- usage- the new usage
 
- 
hashCodepublic int hashCode()Hash code.
- 
isNullFlavorpublic boolean isNullFlavor()Checks if the current instance is null flavored.- Returns:
- true, if is null flavor
 
- 
setNullFlavorSets the nullFlavor.- Parameters:
- nullFlavor- the new null flavor
 
- 
toStringBuilds a string of the name.
 
-