public class Organization extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Organization.Rel
Organization type.
|
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,Organization> |
KEY
The key for this element.
|
static AttributeKey<java.lang.String> |
LABEL
Label.
|
static AttributeKey<java.lang.Boolean> |
PRIMARY
Whether this is the primary organization.
|
static AttributeKey<java.lang.String> |
REL
Organization type.
|
Modifier | Constructor and Description |
---|---|
|
Organization()
Constructs an instance using the default key.
|
protected |
Organization(ElementKey<?,? extends Organization> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
Organization(ElementKey<?,? extends Organization> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the label.
|
OrgDepartment |
getOrgDepartment()
Returns the department name in organization.
|
OrgJobDescription |
getOrgJobDescription()
Returns the job description.
|
OrgName |
getOrgName()
Returns the name of organization.
|
OrgSymbol |
getOrgSymbol()
Returns the organization symbol/ticker.
|
OrgTitle |
getOrgTitle()
Returns the position in organization.
|
java.lang.Boolean |
getPrimary()
Returns the whether this is the primary organization.
|
java.lang.String |
getRel()
Returns the organization type.
|
Where |
getWhere()
Returns the office location.
|
boolean |
hasLabel()
Returns whether it has the label.
|
boolean |
hasOrgDepartment()
Returns whether it has the department name in organization.
|
boolean |
hasOrgJobDescription()
Returns whether it has the job description.
|
boolean |
hasOrgName()
Returns whether it has the name of organization.
|
boolean |
hasOrgSymbol()
Returns whether it has the organization symbol/ticker.
|
boolean |
hasOrgTitle()
Returns whether it has the position in organization.
|
boolean |
hasPrimary()
Returns whether it has the whether this is the primary organization.
|
boolean |
hasRel()
Returns whether it has the organization type.
|
boolean |
hasWhere()
Returns whether it has the office location.
|
Organization |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
Organization |
setLabel(java.lang.String label)
Sets the label.
|
Organization |
setOrgDepartment(OrgDepartment orgDepartment)
Sets the department name in organization.
|
Organization |
setOrgJobDescription(OrgJobDescription orgJobDescription)
Sets the job description.
|
Organization |
setOrgName(OrgName orgName)
Sets the name of organization.
|
Organization |
setOrgSymbol(OrgSymbol orgSymbol)
Sets the organization symbol/ticker.
|
Organization |
setOrgTitle(OrgTitle orgTitle)
Sets the position in organization.
|
Organization |
setPrimary(java.lang.Boolean primary)
Sets the whether this is the primary organization.
|
Organization |
setRel(java.lang.String rel)
Sets the organization type.
|
Organization |
setWhere(Where where)
Sets the office location.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, visit
public static final ElementKey<java.lang.Void,Organization> KEY
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.Boolean> PRIMARY
public static final AttributeKey<java.lang.String> REL
public Organization()
protected Organization(ElementKey<?,? extends Organization> key)
protected Organization(ElementKey<?,? extends Organization> key, Element source)
Element
instance. Will use the given ElementKey
as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
Element.createElement(ElementKey, Element)
.key
- The key to use for this element.source
- source elementpublic static void registerMetadata(MetadataRegistry registry)
public Organization lock()
Element
public java.lang.String getLabel()
public Organization setLabel(java.lang.String label)
label
- label or null
to resetpublic boolean hasLabel()
public OrgDepartment getOrgDepartment()
public Organization setOrgDepartment(OrgDepartment orgDepartment)
orgDepartment
- department name in organization or null
to
resetpublic boolean hasOrgDepartment()
public OrgJobDescription getOrgJobDescription()
public Organization setOrgJobDescription(OrgJobDescription orgJobDescription)
orgJobDescription
- job description or null
to resetpublic boolean hasOrgJobDescription()
public OrgName getOrgName()
public Organization setOrgName(OrgName orgName)
orgName
- name of organization or null
to resetpublic boolean hasOrgName()
public OrgSymbol getOrgSymbol()
public Organization setOrgSymbol(OrgSymbol orgSymbol)
orgSymbol
- organization symbol/ticker or null
to resetpublic boolean hasOrgSymbol()
public OrgTitle getOrgTitle()
public Organization setOrgTitle(OrgTitle orgTitle)
orgTitle
- position in organization or null
to resetpublic boolean hasOrgTitle()
public java.lang.Boolean getPrimary()
public Organization setPrimary(java.lang.Boolean primary)
primary
- whether this is the primary organization or null
to
resetpublic boolean hasPrimary()
public java.lang.String getRel()
public Organization setRel(java.lang.String rel)
rel
- organization type or null
to resetpublic boolean hasRel()
public Where getWhere()
public Organization setWhere(Where where)
where
- office location or null
to resetpublic boolean hasWhere()