public class ContactPerson extends XMLElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CT_ADMINISTRATIVE
The contactType attribute value "administrative".
|
static java.lang.String |
CT_BILLING
The contactType attribute value "billing".
|
static java.lang.String |
CT_OTHER
The contactType attribute value "other".
|
static java.lang.String |
CT_TECHNICAL
The contactType attribute value "technical".
|
| Constructor and Description |
|---|
ContactPerson(org.w3c.dom.Document owner)
Creates a new
ContactPerson element in the given XML document. |
ContactPerson(org.w3c.dom.Element element)
Creates a new
ContactPerson instance from the given Element node. |
ContactPerson(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
ContactPerson instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCompany()
Returns the value of this ContactPerson element's Company child element, of
null if the child element is not specified. |
java.lang.String |
getContactType()
Returns the contactType attribute value for this ContactPerson element, of
null if the attribute is not specified. |
java.lang.String |
getEmailAddress()
Returns the value of this ContactPerson element's EmailAddress child element, of
null if the child element is not specified. |
java.lang.String |
getGivenName()
Returns the value of this ContactPerson element's GivenName child element, of
null if the child element is not specified. |
java.lang.String |
getLibertyPrincipalIdentifier()
Returns the libertyPrincipalIdentifier attribute value for this ContactPerson element, of
null if the attribute is not specified. |
java.lang.String |
getSurName()
Returns the value of this ContactPerson element's SurName child element, of
null if the child element is not specified. |
java.lang.String |
getTelephoneNumber()
Returns the value of this ContactPerson element's TelephoneNumber child element, of
null if the child element is not specified. |
void |
setCompany(java.lang.String company)
Sets the value of this ContactPerson element's Company child element.
|
void |
setContactType(java.lang.String contactType)
Sets the value of the contactType attribute for this ContactPerson element.
|
void |
setEmailAddress(java.lang.String email)
Sets the value of this ContactPerson element's EmailAddress child element.
|
void |
setGivenName(java.lang.String givenName)
Sets the value of this ContactPerson element's GivenName child element.
|
void |
setLibertyPrincipalIdentifier(java.lang.String uri)
Sets the value of the libertyPrincipalIdentifier attribute for this ContactPerson element.
|
void |
setSurName(java.lang.String surName)
Sets the value of this ContactPerson element's SurName child element.
|
void |
setTelephoneNumber(java.lang.String telephone)
Sets the value of this ContactPerson element's TelephoneNumber child element.
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLpublic static final java.lang.String CT_TECHNICAL
public static final java.lang.String CT_ADMINISTRATIVE
public static final java.lang.String CT_BILLING
public static final java.lang.String CT_OTHER
public ContactPerson(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
ContactPerson instance from the given Element node.element - A libMD:ContactPerson element.org.w3c.dom.DOMExceptionpublic ContactPerson(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
ContactPerson instance from the given Element node.element - A libMD:ContactPerson element.systemId - The URI string system ID for the ContactPerson's document location.org.w3c.dom.DOMExceptionpublic ContactPerson(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
ContactPerson element in the given XML document.owner - The owner document of the new element node.org.w3c.dom.DOMExceptionpublic void setLibertyPrincipalIdentifier(java.lang.String uri)
throws org.w3c.dom.DOMException
uri - The libertyPrincipalIdentifier attribute value.org.w3c.dom.DOMExceptionpublic java.lang.String getLibertyPrincipalIdentifier()
null if the attribute is not specified.public void setContactType(java.lang.String contactType)
throws org.w3c.dom.DOMException
contactType - The contactType attribute value.org.w3c.dom.DOMExceptionpublic java.lang.String getContactType()
null if the attribute is not specified.public void setCompany(java.lang.String company)
throws org.w3c.dom.DOMException
company - The Company element's value.org.w3c.dom.DOMExceptionpublic java.lang.String getCompany()
null if the child element is not specified.public void setGivenName(java.lang.String givenName)
throws org.w3c.dom.DOMException
givenName - The GivenName element's value.org.w3c.dom.DOMExceptionpublic java.lang.String getGivenName()
null if the child element is not specified.public void setSurName(java.lang.String surName)
throws org.w3c.dom.DOMException
surName - The SurName element's value.org.w3c.dom.DOMExceptionpublic java.lang.String getSurName()
null if the child element is not specified.public void setEmailAddress(java.lang.String email)
throws org.w3c.dom.DOMException
email - The EmailAddress element's value.org.w3c.dom.DOMExceptionpublic java.lang.String getEmailAddress()
null if the child element is not specified.public void setTelephoneNumber(java.lang.String telephone)
throws org.w3c.dom.DOMException
telephone - The TelephoneNumber element's value.org.w3c.dom.DOMExceptionpublic java.lang.String getTelephoneNumber()
null if the child element is not specified.