public class ContactPerson extends XMLElement
ContactPerson metadata element.| Modifier | Constructor and Description |
|---|---|
|
ContactPerson(org.w3c.dom.Document owner)
Creates a new
ContactPerson instance. |
protected |
ContactPerson(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName)
Creates a new
ContactPerson instance. |
|
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 |
|---|---|
void |
addEmailAddress(java.lang.String address)
Sets the address.
|
void |
addTelephoneNumber(java.lang.String number)
Adds a telephhone number.
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Retrieves an attribute value by local name and namespace URI.
|
java.lang.String |
getCompany()
Returns the company name.
|
Contact |
getContactType()
Returns the type of contact.
|
java.util.List |
getEmailAddresses()
Returns the address.
|
Extensions |
getExtensions()
Returns the metadata extension.
|
java.lang.String |
getGivenName()
Returns the given name.
|
java.lang.String |
getSurName()
Returns the surname.
|
java.util.List |
getTelephoneNumbers()
Returns the Telephone Number List.
|
void |
setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
Specify an arbitrary attribute.
|
void |
setCompany(java.lang.String company)
Sets the company name.
|
void |
setContactType(Contact ct)
Sets the type of contact.
|
void |
setExtensions(Extensions extension)
Sets the metadata extension.
|
void |
setGivenName(java.lang.String givenName)
Sets the given name.
|
void |
setSurName(java.lang.String surname)
Sets the surname.
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, 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 ContactPerson(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
ContactPerson instance from the given Element node.element - An 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 - An ContactPerson element.systemId - The URI string system ID for the ContactPerson.org.w3c.dom.DOMExceptionpublic ContactPerson(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
ContactPerson instance.owner - The owner document of the new ContactPerson.org.w3c.dom.DOMExceptionprotected ContactPerson(org.w3c.dom.Document owner,
java.lang.String nsURI,
java.lang.String localName)
throws org.w3c.dom.DOMException
ContactPerson instance. This constructor is for use in subclass for extension of the ContactPerson element.owner - The owner document of the new ContactPerson.nsURI - The namespace URI in which the new ContactPerson is to be created.localName - The localName of the element represented by the class that extends this class.org.w3c.dom.DOMExceptionpublic void setContactType(Contact ct)
ct - A Contact object.public Contact getContactType()
Contact object.public void setExtensions(Extensions extension)
extension - A Extensions object.public Extensions getExtensions()
Extension object or null if none has been set.public void setCompany(java.lang.String company)
company - A String.public java.lang.String getCompany()
public void setGivenName(java.lang.String givenName)
givenName - A String.public java.lang.String getGivenName()
public void setSurName(java.lang.String surname)
surname - A String.public java.lang.String getSurName()
public void addEmailAddress(java.lang.String address)
address - A String.public java.util.List getEmailAddresses()
public void addTelephoneNumber(java.lang.String number)
number - A String.public java.util.List getTelephoneNumbers()
List of String objects or null if none were found.public void setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
setAttributeNS in class XMLElementnamespaceURI - The namespace URI of the attribute.qualifiedName - The qualified name of the attribute.value - The attribute value to set.public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNS in class XMLElementnamespaceURI - The namespace URI of the attribute.localName - The local name of the attribute.