Class RequestedAttributeImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XMLObject, SAMLObject, Attribute, RequestedAttribute

public class RequestedAttributeImpl extends AttributeImpl implements RequestedAttribute
Concrete implementation of RequestedAttribute.
  • Field Details

    • isRequired

      @Nullable private XSBooleanValue isRequired
      isRequired attribute.
  • Constructor Details

    • RequestedAttributeImpl

      protected RequestedAttributeImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable 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 Details

    • isRequired

      @Nullable public Boolean isRequired()
      Checks to see if this requested attribute is also required.
      Specified by:
      isRequired in interface RequestedAttribute
      Returns:
      true if this attribute is required
    • isRequiredXSBoolean

      @Nullable public XSBooleanValue isRequiredXSBoolean()
      Checks to see if this requested attribute is also required.
      Specified by:
      isRequiredXSBoolean in interface RequestedAttribute
      Returns:
      true if this attribute is required
    • setIsRequired

      public void setIsRequired(@Nullable Boolean newIsRequired)
      Sets if this requested attribute is also required. Boolean values will be marshalled to either "true" or "false".
      Specified by:
      setIsRequired in interface RequestedAttribute
      Parameters:
      newIsRequired - true if this attribute is required
    • setIsRequired

      public void setIsRequired(@Nullable XSBooleanValue newIsRequired)
      Sets if this requested attribute is also required.
      Specified by:
      setIsRequired in interface RequestedAttribute
      Parameters:
      newIsRequired - true if this attribute is required