edu.internet2.middleware.shibboleth.common.xmlobject.impl
Class ShibbolethMetadataScopeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by edu.internet2.middleware.shibboleth.common.xmlobject.impl.ShibbolethMetadataScopeImpl
All Implemented Interfaces:
ShibbolethMetadataScope, XSString, ValidatingXMLObject, XMLObject

public class ShibbolethMetadataScopeImpl
extends AbstractValidatingXMLObject
implements ShibbolethMetadataScope

Implementation of ShibbolethMetadataScope.


Field Summary
private  Pattern matchPattern
          Pattern used to match scopes against criteria.
private  XSBooleanValue regexp
          The regexp attribute value.
private  String scopeValue
          The string content value.
 
Fields inherited from interface edu.internet2.middleware.shibboleth.common.xmlobject.ShibbolethMetadataScope
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, REGEXP_ATTRIB_NAME
 
Fields inherited from interface org.opensaml.xml.schema.XSString
TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected ShibbolethMetadataScopeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 Pattern getMatchPattern()
          Gets the match pattern used to evaluate if a scope matches the scope criteria given by this extension.
 List<XMLObject> getOrderedChildren()
          
 Boolean getRegexp()
          Get the regexp attribute value.
 XSBooleanValue getRegexpXSBoolean()
          Get the regexp attribute value.
 String getValue()
          
 void setRegexp(Boolean newRegexp)
          Set the regexp attribute value.
 void setRegexp(XSBooleanValue newRegexp)
          Set the regexp attribute value.
 void setValue(String newScopeValue)
          
 
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, equals, 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
 

Field Detail

regexp

private XSBooleanValue regexp
The regexp attribute value.


scopeValue

private String scopeValue
The string content value.


matchPattern

private Pattern matchPattern
Pattern used to match scopes against criteria.

Constructor Detail

ShibbolethMetadataScopeImpl

protected ShibbolethMetadataScopeImpl(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

getRegexp

public Boolean getRegexp()
Get the regexp attribute value.

Specified by:
getRegexp in interface ShibbolethMetadataScope
Returns:
the regexp attribute value

setRegexp

public void setRegexp(Boolean newRegexp)
Set the regexp attribute value.

Specified by:
setRegexp in interface ShibbolethMetadataScope
Parameters:
newRegexp - the new regexp attribute value

getRegexpXSBoolean

public XSBooleanValue getRegexpXSBoolean()
Get the regexp attribute value.

Specified by:
getRegexpXSBoolean in interface ShibbolethMetadataScope
Returns:
the regexp attribute value

setRegexp

public void setRegexp(XSBooleanValue newRegexp)
Set the regexp attribute value.

Specified by:
setRegexp in interface ShibbolethMetadataScope
Parameters:
newRegexp - the new regexp attribute value

getValue

public String getValue()

Specified by:
getValue in interface XSString

setValue

public void setValue(String newScopeValue)

Specified by:
setValue in interface XSString

getMatchPattern

public Pattern getMatchPattern()
Gets the match pattern used to evaluate if a scope matches the scope criteria given by this extension. If regular expressions are not used in the scope criteria then this pattern must simply perform a direct match of the string.

Specified by:
getMatchPattern in interface ShibbolethMetadataScope
Returns:
match pattern used to evaluate if a scope matches the scope criteria

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2012. All Rights Reserved.