org.opensaml.saml2.metadata.impl
Class ContactPersonImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.common.impl.AbstractSAMLObject
              extended by org.opensaml.saml2.metadata.impl.ContactPersonImpl
All Implemented Interfaces:
SAMLObject, ContactPerson, org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.validation.ValidatingXMLObject, org.opensaml.xml.XMLObject

public class ContactPersonImpl
extends AbstractSAMLObject
implements ContactPerson

Concrete implementation of ContactPerson


Field Summary
 
Fields inherited from interface org.opensaml.saml2.metadata.ContactPerson
CONTACT_TYPE_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ContactPersonImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 Company getCompany()
          Gets the company this contact person is associated with.
 List<EmailAddress> getEmailAddresses()
          Gets a list of email addresses for this person.
 Extensions getExtensions()
          Gets the Extensions child of this object.
 GivenName getGivenName()
          Gets the given name for this person.
 List<org.opensaml.xml.XMLObject> getOrderedChildren()
          
 SurName getSurName()
          Gets the surname for this person.
 List<TelephoneNumber> getTelephoneNumbers()
          Gets an immutable list of telephone numbers for this person.
 ContactPersonTypeEnumeration getType()
          Gets the type of contact this person.
 org.opensaml.xml.util.AttributeMap getUnknownAttributes()
          
 void setCompany(Company company)
          Sets the company this contact person is associated with.
 void setExtensions(Extensions extensions)
          Sets the Extensions child of this object.
 void setGivenName(GivenName name)
          Sets the given name for this person.
 void setSurName(SurName name)
          Sets the surname for this person.
 void setType(ContactPersonTypeEnumeration type)
          Sets the type of contact this person.
 
Methods inherited from class org.opensaml.common.impl.AbstractSAMLObject
equals, prepareForAssignment
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Constructor Detail

ContactPersonImpl

protected ContactPersonImpl(String namespaceURI,
                            String elementLocalName,
                            String namespacePrefix)
Constructor

Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

getType

public ContactPersonTypeEnumeration getType()
Gets the type of contact this person.

Specified by:
getType in interface ContactPerson
Returns:
the type of contact this person

setType

public void setType(ContactPersonTypeEnumeration type)
Sets the type of contact this person.

Specified by:
setType in interface ContactPerson
Parameters:
type - the type of contact this person

getExtensions

public Extensions getExtensions()
Gets the Extensions child of this object.

Specified by:
getExtensions in interface ContactPerson
Returns:
the Extensions child of this object

setExtensions

public void setExtensions(Extensions extensions)
                   throws IllegalArgumentException
Sets the Extensions child of this object.

Specified by:
setExtensions in interface ContactPerson
Parameters:
extensions - the Extensions child of this object
Throws:
IllegalArgumentException - thrown if the given extensions Object is already a child of another SAMLObject

getCompany

public Company getCompany()
Gets the company this contact person is associated with.

Specified by:
getCompany in interface ContactPerson
Returns:
the company this contact person is associated with

setCompany

public void setCompany(Company company)
Sets the company this contact person is associated with.

Specified by:
setCompany in interface ContactPerson
Parameters:
company - the company this contact person is associated with

getGivenName

public GivenName getGivenName()
Gets the given name for this person.

Specified by:
getGivenName in interface ContactPerson
Returns:
the given name for this person

setGivenName

public void setGivenName(GivenName name)
Sets the given name for this person.

Specified by:
setGivenName in interface ContactPerson
Parameters:
name - the given name for this person

getSurName

public SurName getSurName()
Gets the surname for this person.

Specified by:
getSurName in interface ContactPerson
Returns:
the surname for this person

setSurName

public void setSurName(SurName name)
Sets the surname for this person.

Specified by:
setSurName in interface ContactPerson
Parameters:
name - the surname for this person

getEmailAddresses

public List<EmailAddress> getEmailAddresses()
Gets a list of email addresses for this person.

Specified by:
getEmailAddresses in interface ContactPerson
Returns:
list of email addresses for this person

getTelephoneNumbers

public List<TelephoneNumber> getTelephoneNumbers()
Gets an immutable list of telephone numbers for this person.

Specified by:
getTelephoneNumbers in interface ContactPerson
Returns:
list of telephone numbers for this person

getUnknownAttributes

public org.opensaml.xml.util.AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface org.opensaml.xml.AttributeExtensibleXMLObject

getOrderedChildren

public List<org.opensaml.xml.XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface org.opensaml.xml.XMLObject


Copyright © 2006-2013 Internet2. All Rights Reserved.