Class ContactPersonImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml2.metadata.impl.ContactPersonImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,ContactPerson
public class ContactPersonImpl extends AbstractXMLObject implements ContactPerson
Concrete implementation ofContactPerson.
-
-
Field Summary
Fields Modifier and Type Field Description private CompanycompanyCompany child element.private XMLObjectChildrenList<EmailAddress>emailAddressesChild email address.private ExtensionsextensionsExtensions child object.private GivenNamegivenNameGivenName child objectobject.private SurNamesurNameSurName child object.private XMLObjectChildrenList<TelephoneNumber>telephoneNumbersChild telephone numbers.private ContactPersonTypeEnumerationtypeContact person type.private AttributeMapunknownAttributes"anyAttribute" attributes.-
Fields inherited from interface org.opensaml.saml.saml2.metadata.ContactPerson
CONTACT_TYPE_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContactPersonImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanygetCompany()Gets the company this contact person is associated with.List<EmailAddress>getEmailAddresses()Gets a list of email addresses for this person.ExtensionsgetExtensions()Gets the Extensions child of this object.GivenNamegetGivenName()Gets the given name for this person.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.SurNamegetSurName()Gets the surname for this person.List<TelephoneNumber>getTelephoneNumbers()Gets an immutable list of telephone numbers for this person.ContactPersonTypeEnumerationgetType()Gets the type of contact this person.AttributeMapgetUnknownAttributes()Gets a mutable map of the attributes.voidsetCompany(Company theCompany)Sets the company this contact person is associated with.voidsetExtensions(Extensions theExtensions)Sets the Extensions child of this object.voidsetGivenName(GivenName name)Sets the given name for this person.voidsetSurName(SurName name)Sets the surname for this person.voidsetType(ContactPersonTypeEnumeration theType)Sets the type of contact this person.-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, 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.
-
-
Method Detail
-
getType
public ContactPersonTypeEnumeration getType()
Gets the type of contact this person.- Specified by:
getTypein interfaceContactPerson- Returns:
- the type of contact this person
-
setType
public void setType(ContactPersonTypeEnumeration theType)
Sets the type of contact this person.- Specified by:
setTypein interfaceContactPerson- Parameters:
theType- the type of contact this person
-
getExtensions
public Extensions getExtensions()
Gets the Extensions child of this object.- Specified by:
getExtensionsin interfaceContactPerson- Returns:
- the Extensions child of this object
-
setExtensions
public void setExtensions(Extensions theExtensions)
Sets the Extensions child of this object.- Specified by:
setExtensionsin interfaceContactPerson- Parameters:
theExtensions- the Extensions child of this object
-
getCompany
public Company getCompany()
Gets the company this contact person is associated with.- Specified by:
getCompanyin interfaceContactPerson- Returns:
- the company this contact person is associated with
-
setCompany
public void setCompany(Company theCompany)
Sets the company this contact person is associated with.- Specified by:
setCompanyin interfaceContactPerson- Parameters:
theCompany- the company this contact person is associated with
-
getGivenName
public GivenName getGivenName()
Gets the given name for this person.- Specified by:
getGivenNamein interfaceContactPerson- Returns:
- the given name for this person
-
setGivenName
public void setGivenName(GivenName name)
Sets the given name for this person.- Specified by:
setGivenNamein interfaceContactPerson- Parameters:
name- the given name for this person
-
getSurName
public SurName getSurName()
Gets the surname for this person.- Specified by:
getSurNamein interfaceContactPerson- Returns:
- the surname for this person
-
setSurName
public void setSurName(SurName name)
Sets the surname for this person.- Specified by:
setSurNamein interfaceContactPerson- Parameters:
name- the surname for this person
-
getEmailAddresses
public List<EmailAddress> getEmailAddresses()
Gets a list of email addresses for this person.- Specified by:
getEmailAddressesin interfaceContactPerson- 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:
getTelephoneNumbersin interfaceContactPerson- Returns:
- list of telephone numbers for this person
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
Gets a mutable map of the attributes. The map key is the namespace qualified name of the attribute, the map value is the value of the attribute.- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject- Returns:
- a map of the attributes
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-
-