org.opensaml.saml2.core.impl
Class NameIDPolicyImpl

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.core.impl.NameIDPolicyImpl
All Implemented Interfaces:
SAMLObject, NameIDPolicy, ValidatingXMLObject, XMLObject

public class NameIDPolicyImpl
extends AbstractSAMLObject
implements NameIDPolicy

Concrete implementation of NameIDPolicy.


Field Summary
private  XSBooleanValue allowCreate
          NameID Format URI.
private  String format
          NameID Format URI.
private  String spNameQualifier
          NameID Format URI.
 
Fields inherited from interface org.opensaml.saml2.core.NameIDPolicy
ALLOW_CREATE_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, FORMAT_ATTRIB_NAME, SP_NAME_QUALIFIER_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected NameIDPolicyImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 Boolean getAllowCreate()
          Gets the AllowCreate value.
 XSBooleanValue getAllowCreateXSBoolean()
          Gets the AllowCreate value.
 String getFormat()
          Gets the format of the NameIDPolicy.
 List<XMLObject> getOrderedChildren()
          
 String getSPNameQualifier()
          Gets the SPNameQualifier value.
 void setAllowCreate(Boolean newAllowCreate)
          Sets the AllowCreate value.
 void setAllowCreate(XSBooleanValue newAllowCreate)
          Sets the AllowCreate value.
 void setFormat(String newFormat)
          Sets the format of the NameIDPolicy
 void setSPNameQualifier(String newSPNameQualifier)
          Sets the SPNameQualifier value.
 
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

format

private String format
NameID Format URI.


spNameQualifier

private String spNameQualifier
NameID Format URI.


allowCreate

private XSBooleanValue allowCreate
NameID Format URI.

Constructor Detail

NameIDPolicyImpl

protected NameIDPolicyImpl(String namespaceURI,
                           String elementLocalName,
                           String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getFormat

public String getFormat()
Gets the format of the NameIDPolicy.

Specified by:
getFormat in interface NameIDPolicy
Returns:
the format of the NameIDPolicy

setFormat

public void setFormat(String newFormat)
Sets the format of the NameIDPolicy

Specified by:
setFormat in interface NameIDPolicy
Parameters:
newFormat - the format of the NameIDPolicy

getSPNameQualifier

public String getSPNameQualifier()
Gets the SPNameQualifier value.

Specified by:
getSPNameQualifier in interface NameIDPolicy
Returns:
the SPNameQualifier value

setSPNameQualifier

public void setSPNameQualifier(String newSPNameQualifier)
Sets the SPNameQualifier value.

Specified by:
setSPNameQualifier in interface NameIDPolicy
Parameters:
newSPNameQualifier - the SPNameQualifier value

getAllowCreate

public Boolean getAllowCreate()
Gets the AllowCreate value.

Specified by:
getAllowCreate in interface NameIDPolicy
Returns:
the AllowCreate value

getAllowCreateXSBoolean

public XSBooleanValue getAllowCreateXSBoolean()
Gets the AllowCreate value.

Specified by:
getAllowCreateXSBoolean in interface NameIDPolicy
Returns:
the AllowCreate value

setAllowCreate

public void setAllowCreate(Boolean newAllowCreate)
Sets the AllowCreate value. Boolean values will be marshalled to either "true" or "false".

Specified by:
setAllowCreate in interface NameIDPolicy
Parameters:
newAllowCreate - the AllowCreate value

setAllowCreate

public void setAllowCreate(XSBooleanValue newAllowCreate)
Sets the AllowCreate value.

Specified by:
setAllowCreate in interface NameIDPolicy
Parameters:
newAllowCreate - the AllowCreate value

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2013. All Rights Reserved.