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, AttributeExtensibleXMLObject, ValidatingXMLObject, XMLObject

public class ContactPersonImpl
extends AbstractSAMLObject
implements ContactPerson

Concrete implementation of ContactPerson


Field Summary
private  Company company
          Company child element
private  XMLObjectChildrenList<EmailAddress> emailAddresses
          Child email address
private  Extensions extensions
          Extensions child object
private  GivenName givenName
          GivenName child objectobject
private  SurName surName
          SurName child object
private  XMLObjectChildrenList<TelephoneNumber> telephoneNumbers
          Child telephone numbers
private  ContactPersonTypeEnumeration type
          Contact person type
private  AttributeMap unknownAttributes
          "anyAttribute" attributes
 
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<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.
 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, hashCode, 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, 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
 

Field Detail

type

private ContactPersonTypeEnumeration type
Contact person type


extensions

private Extensions extensions
Extensions child object


company

private Company company
Company child element


givenName

private GivenName givenName
GivenName child objectobject


surName

private SurName surName
SurName child object


unknownAttributes

private final AttributeMap unknownAttributes
"anyAttribute" attributes


emailAddresses

private final XMLObjectChildrenList<EmailAddress> emailAddresses
Child email address


telephoneNumbers

private final XMLObjectChildrenList<TelephoneNumber> telephoneNumbers
Child telephone numbers

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 AttributeMap getUnknownAttributes()

Specified by:
getUnknownAttributes in interface AttributeExtensibleXMLObject

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.