Oracle Security Developer Tools SAML 2.0 Java API Reference
10g (10.1.4.0.1)

B28174-01


oracle.security.xmlsec.saml2.metadata
Class ContactPerson

java.lang.Object
  extended byoracle.security.xmlsec.util.XMLNode
      extended byoracle.security.xmlsec.util.XMLElement
          extended byoracle.security.xmlsec.saml2.metadata.ContactPerson


public class ContactPerson
extends oracle.security.xmlsec.util.XMLElement

Represents the ContactPerson metadata element.


Field Summary

 

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

 

Constructor Summary
  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.

 

Method Summary
 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.

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setDefaultNSPrefix

 

Methods inherited from class oracle.security.xmlsec.util.XMLNode
appendChild, 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, toStringXML

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ContactPerson

public ContactPerson(org.w3c.dom.Element element)
              throws org.w3c.dom.DOMException
Creates a new ContactPerson instance from the given Element node.
Parameters:
element - An ContactPerson element.

ContactPerson

public ContactPerson(org.w3c.dom.Element element,
                     java.lang.String systemId)
              throws org.w3c.dom.DOMException
Creates a new ContactPerson instance from the given Element node.
Parameters:
element - An ContactPerson element.
systemId - The URI string system ID for the ContactPerson.

ContactPerson

public ContactPerson(org.w3c.dom.Document owner)
              throws org.w3c.dom.DOMException
Creates a new ContactPerson instance.
Parameters:
owner - The owner document of the new ContactPerson.

ContactPerson

protected ContactPerson(org.w3c.dom.Document owner,
                        java.lang.String nsURI,
                        java.lang.String localName)
                 throws org.w3c.dom.DOMException
Creates a new ContactPerson instance. This constructor is for use in subclass for extension of the ContactPerson element.
Parameters:
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.

Method Detail

setContactType

public void setContactType(Contact ct)
Sets the type of contact.
Parameters:
ct - A Contact object.

getContactType

public Contact getContactType()
Returns the type of contact.
Returns:
A Contact object.

setExtensions

public void setExtensions(Extensions extension)
Sets the metadata extension.
Parameters:
extension - A Extensions object.

getExtensions

public Extensions getExtensions()
Returns the metadata extension.
Returns:
A Extension object or null if none has been set.

setCompany

public void setCompany(java.lang.String company)
Sets the company name.
Parameters:
company - A String.

getCompany

public java.lang.String getCompany()
Returns the company name.
Returns:
A String.

setGivenName

public void setGivenName(java.lang.String givenName)
Sets the given name.
Parameters:
givenName - A String.

getGivenName

public java.lang.String getGivenName()
Returns the given name.
Returns:
A String.

setSurName

public void setSurName(java.lang.String surname)
Sets the surname.
Parameters:
surname - A String.

getSurName

public java.lang.String getSurName()
Returns the surname.
Returns:
A String.

addEmailAddress

public void addEmailAddress(java.lang.String address)
Sets the address.
Parameters:
address - A String.

getEmailAddresses

public java.util.List getEmailAddresses()
Returns the address.
Returns:
A String.

addTelephoneNumber

public void addTelephoneNumber(java.lang.String number)
Adds a telephhone number.
Parameters:
number - A String.

getTelephoneNumbers

public java.util.List getTelephoneNumbers()
Returns the Telephone Number List.
Returns:
A List of String objects or null if none were found.

setAttributeNS

public void setAttributeNS(java.lang.String namespaceURI,
                           java.lang.String qualifiedName,
                           java.lang.String value)
Specify an arbitrary attribute.
Parameters:
namespaceURI - The namespace URI of the attribute.
qualifiedName - The qualified name of the attribute.
value - The attribute value to set.

getAttributeNS

public java.lang.String getAttributeNS(java.lang.String namespaceURI,
                                       java.lang.String localName)
Retrieves an attribute value by local name and namespace URI.
Parameters:
namespaceURI - The namespace URI of the attribute.
localName - The local name of the attribute.
Returns:
The attribute value String or an empty String.

Oracle Security Developer Tools SAML 2.0 Java API Reference
10g (10.1.4.0.1)

B28174-01


Copyright © 2005, 2006 , Oracle. All rights reserved.