org.opensaml.saml2.metadata.impl
Class AttributeConsumingServiceImpl

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.AttributeConsumingServiceImpl
All Implemented Interfaces:
SAMLObject, AttributeConsumingService, ValidatingXMLObject, XMLObject

public class AttributeConsumingServiceImpl
extends AbstractSAMLObject
implements AttributeConsumingService

Concrete implementation of AttributeConsumingService.


Field Summary
private  int index
          Index of this service
private  XSBooleanValue isDefault
          isDefault attribute of this service
private  XMLObjectChildrenList<RequestedAttribute> requestAttributes
          RequestedAttribute children
private  XMLObjectChildrenList<ServiceDescription> serviceDescriptions
          ServiceDescription children
private  XMLObjectChildrenList<ServiceName> serviceNames
          ServiceName children
 
Fields inherited from interface org.opensaml.saml2.metadata.AttributeConsumingService
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, INDEX_ATTRIB_NAME, IS_DEFAULT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected AttributeConsumingServiceImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 List<ServiceDescription> getDescriptions()
          Gets the descriptions for this service.
 int getIndex()
          Gets the index for this service.
 List<ServiceName> getNames()
          Gets the list of names this service has.
 List<XMLObject> getOrderedChildren()
          
 List<RequestedAttribute> getRequestAttributes()
          Gets the attributes this service requests.
 Boolean isDefault()
          Checks if this is the default service for the service provider.
 XSBooleanValue isDefaultXSBoolean()
          Checks if this is the default service for the service provider.
 void setIndex(int index)
          Sets the index for this service.
 void setIsDefault(Boolean newIsDefault)
          Sets if this is the default service for the service provider.
 void setIsDefault(XSBooleanValue newIsDefault)
          Sets if this is the default service for the service provider.
 
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
 

Field Detail

index

private int index
Index of this service


isDefault

private XSBooleanValue isDefault
isDefault attribute of this service


serviceNames

private final XMLObjectChildrenList<ServiceName> serviceNames
ServiceName children


serviceDescriptions

private final XMLObjectChildrenList<ServiceDescription> serviceDescriptions
ServiceDescription children


requestAttributes

private final XMLObjectChildrenList<RequestedAttribute> requestAttributes
RequestedAttribute children

Constructor Detail

AttributeConsumingServiceImpl

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

Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

getIndex

public int getIndex()
Gets the index for this service.

Specified by:
getIndex in interface AttributeConsumingService
Returns:
the index for this service

setIndex

public void setIndex(int index)
Sets the index for this service.

Specified by:
setIndex in interface AttributeConsumingService
Parameters:
index - the index for this service

isDefault

public Boolean isDefault()
Checks if this is the default service for the service provider.

Specified by:
isDefault in interface AttributeConsumingService
Returns:
true if this is the default service, false if not

isDefaultXSBoolean

public XSBooleanValue isDefaultXSBoolean()
Checks if this is the default service for the service provider.

Specified by:
isDefaultXSBoolean in interface AttributeConsumingService
Returns:
true if this is the default service, false if not

setIsDefault

public void setIsDefault(Boolean newIsDefault)
Sets if this is the default service for the service provider. Boolean values will be marshalled to either "true" or "false".

Specified by:
setIsDefault in interface AttributeConsumingService
Parameters:
newIsDefault - true if this is the default service, false if not

setIsDefault

public void setIsDefault(XSBooleanValue newIsDefault)
Sets if this is the default service for the service provider.

Specified by:
setIsDefault in interface AttributeConsumingService
Parameters:
newIsDefault - true if this is the default service, false if not

getNames

public List<ServiceName> getNames()
Gets the list of names this service has.

Specified by:
getNames in interface AttributeConsumingService
Returns:
list of names this service has

getDescriptions

public List<ServiceDescription> getDescriptions()
Gets the descriptions for this service.

Specified by:
getDescriptions in interface AttributeConsumingService
Returns:
descriptions for this service

getRequestAttributes

public List<RequestedAttribute> getRequestAttributes()
Gets the attributes this service requests.

Specified by:
getRequestAttributes in interface AttributeConsumingService
Returns:
attributes this service requests

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2012. All Rights Reserved.