Class AttributeConsumingServiceImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.saml.saml2.metadata.impl.AttributeConsumingServiceImpl
-
- All Implemented Interfaces:
XMLObject,SAMLObject,AttributeConsumingService
public class AttributeConsumingServiceImpl extends AbstractXMLObject implements AttributeConsumingService
Concrete implementation ofAttributeConsumingService.
-
-
Field Summary
Fields Modifier and Type Field Description private intindexIndex of this service.private XSBooleanValueisDefaultisDefault attribute of this service.private XMLObjectChildrenList<RequestedAttribute>requestedAttributesRequestedAttribute children.private XMLObjectChildrenList<ServiceDescription>serviceDescriptionsServiceDescription children.private XMLObjectChildrenList<ServiceName>serviceNamesServiceName children.-
Fields inherited from interface org.opensaml.saml.saml2.metadata.AttributeConsumingService
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, INDEX_ATTRIB_NAME, IS_DEFAULT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributeConsumingServiceImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ServiceDescription>getDescriptions()Gets the descriptions for this service.intgetIndex()Gets the index for this service.List<ServiceName>getNames()Gets the list of names this service has.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.List<RequestedAttribute>getRequestedAttributes()Gets the attributes this service requests.BooleanisDefault()Checks if this is the default service for the service provider.XSBooleanValueisDefaultXSBoolean()Checks if this is the default service for the service provider.voidsetIndex(int theIndex)Sets the index for this service.voidsetIsDefault(Boolean newIsDefault)Sets if this is the default service for the service provider.voidsetIsDefault(XSBooleanValue newIsDefault)Sets if this is the default service for the service provider.-
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
-
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.
-
requestedAttributes
private final XMLObjectChildrenList<RequestedAttribute> requestedAttributes
RequestedAttribute children.
-
-
Method Detail
-
getIndex
public int getIndex()
Gets the index for this service.- Specified by:
getIndexin interfaceAttributeConsumingService- Returns:
- the index for this service
-
setIndex
public void setIndex(int theIndex)
Sets the index for this service.- Specified by:
setIndexin interfaceAttributeConsumingService- Parameters:
theIndex- the index for this service
-
isDefault
public Boolean isDefault()
Checks if this is the default service for the service provider.- Specified by:
isDefaultin interfaceAttributeConsumingService- 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:
isDefaultXSBooleanin interfaceAttributeConsumingService- 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:
setIsDefaultin interfaceAttributeConsumingService- 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:
setIsDefaultin interfaceAttributeConsumingService- 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:
getNamesin interfaceAttributeConsumingService- Returns:
- list of names this service has
-
getDescriptions
public List<ServiceDescription> getDescriptions()
Gets the descriptions for this service.- Specified by:
getDescriptionsin interfaceAttributeConsumingService- Returns:
- descriptions for this service
-
getRequestedAttributes
public List<RequestedAttribute> getRequestedAttributes()
Gets the attributes this service requests.- Specified by:
getRequestedAttributesin interfaceAttributeConsumingService- Returns:
- attributes this service requests
-
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
-
-