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 of
AttributeConsumingService
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Index of this service.private XSBooleanValue
isDefault attribute of this service.private final XMLObjectChildrenList<RequestedAttribute>
RequestedAttribute children.private final XMLObjectChildrenList<ServiceDescription>
ServiceDescription children.private final XMLObjectChildrenList<ServiceName>
ServiceName 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
ConstructorsModifierConstructorDescriptionprotected
AttributeConsumingServiceImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the descriptions for this service.int
getIndex()
Gets the index for this service.getNames()
Gets the list of names this service has.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the attributes this service requests.Checks if this is the default service for the service provider.Checks if this is the default service for the service provider.void
setIndex
(int theIndex) 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.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 Details
-
index
private int indexIndex of this service. -
isDefault
isDefault attribute of this service. -
serviceNames
ServiceName children. -
serviceDescriptions
ServiceDescription children. -
requestedAttributes
RequestedAttribute children.
-
-
Constructor Details
-
Method Details
-
getIndex
public int getIndex()Gets the index for this service.- Specified by:
getIndex
in interfaceAttributeConsumingService
- Returns:
- the index for this service
-
setIndex
public void setIndex(int theIndex) Sets the index for this service.- Specified by:
setIndex
in interfaceAttributeConsumingService
- Parameters:
theIndex
- the index for this service
-
isDefault
Checks if this is the default service for the service provider.- Specified by:
isDefault
in interfaceAttributeConsumingService
- Returns:
- true if this is the default service, false if not
-
isDefaultXSBoolean
Checks if this is the default service for the service provider.- Specified by:
isDefaultXSBoolean
in interfaceAttributeConsumingService
- Returns:
- true if this is the default service, false if not
-
setIsDefault
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 interfaceAttributeConsumingService
- Parameters:
newIsDefault
- true if this is the default service, false if not
-
setIsDefault
Sets if this is the default service for the service provider.- Specified by:
setIsDefault
in interfaceAttributeConsumingService
- Parameters:
newIsDefault
- true if this is the default service, false if not
-
getNames
Gets the list of names this service has.- Specified by:
getNames
in interfaceAttributeConsumingService
- Returns:
- list of names this service has
-
getDescriptions
Gets the descriptions for this service.- Specified by:
getDescriptions
in interfaceAttributeConsumingService
- Returns:
- descriptions for this service
-
getRequestedAttributes
Gets the attributes this service requests.- Specified by:
getRequestedAttributes
in interfaceAttributeConsumingService
- Returns:
- attributes this service requests
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-