Class AttributeBuilderImpl

java.lang.Object
org.projecthusky.xua.saml2.impl.AttributeBuilderImpl
All Implemented Interfaces:
SecurityObjectBuilder<org.opensaml.saml.saml2.core.Attribute,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>, AttributeBuilder, SimpleBuilder<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>

public class AttributeBuilderImpl extends Object implements AttributeBuilder, SecurityObjectBuilder<org.opensaml.saml.saml2.core.Attribute,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>
Class implementing the corresponding interface for Attribute building.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor to instanciate the object.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType
    Creates a concrete instance of T with setted params. Erstellt die konkrete Instanz von T mit den gesetzten Parametern.
    org.opensaml.saml.saml2.core.Attribute
    create(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType aInternalObject)
    Method to create attribute instance
    org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType
    create(org.opensaml.saml.saml2.core.Attribute aInternalObject)
    Method to create an instance of type T. Methode um eine Instanc des Typs T zu erstellen.
    friendlyName(String aFriendlyName)
    Method to set the FriendlyName of the Attribute to be build. Methode um ein FriendlyName dem Attribute hinzuzufügen.
    Method to get the InstanceIdentifier.
    Method to get the
    Method to get the
    Method to get the
    name(String aName)
    Method to set the name of the Attribute to be build. Methode um ein name dem Attribute hinzuzufügen.
    nameFormat(String aNameFormat)
    Method to set the NameFormat of the Attribute to be build. Methode um ein NameFormat dem Attribute hinzuzufügen.
    value(Object aValue)
    value(String aValue)
    Method to set the value of the Attribute to be build. Methode um ein value dem Attribute hinzuzufügen.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AttributeBuilderImpl

      public AttributeBuilderImpl()
      Default constructor to instanciate the object.
  • Method Details

    • create

      public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType create()
      Creates a concrete instance of T with setted params.
      Erstellt die konkrete Instanz von T mit den gesetzten Parametern.
      Specified by:
      create in interface SimpleBuilder<org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>
      Returns:
      a new instance of T with the params set
      eine neue Instanz von T mit den gesetzten Parametern
      See Also:
    • create

      public org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType create(org.opensaml.saml.saml2.core.Attribute aInternalObject)
      Method to create an instance of type T.
      Methode um eine Instanc des Typs T zu erstellen.
      Specified by:
      create in interface SecurityObjectBuilder<org.opensaml.saml.saml2.core.Attribute,org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType>
      Parameters:
      aInternalObject -
      the internal wrapped object of type T
      das Innere, gewrappte Object vom Typ T
      Returns:
      the Object ot the type U
      the instance of type U
      die erstellte Instanz vom Typ U
      See Also:
    • create

      public org.opensaml.saml.saml2.core.Attribute create(org.openehealth.ipf.commons.ihe.xacml20.stub.saml20.assertion.AttributeType aInternalObject)
      Method to create attribute instance
      Parameters:
      aInternalObject - the wrapped opensaml object
      Returns:
      the created instance
    • friendlyName

      public AttributeBuilder friendlyName(String aFriendlyName)
      Method to set the FriendlyName of the Attribute to be build.
      Methode um ein FriendlyName dem Attribute hinzuzufügen.
      Specified by:
      friendlyName in interface AttributeBuilder
      Parameters:
      aFriendlyName -
      the FriendlyName to be added.
      das FriendlyName welches hinzugefügt werden soll.
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
      See Also:
    • name

      public AttributeBuilder name(String aName)
      Method to set the name of the Attribute to be build.
      Methode um ein name dem Attribute hinzuzufügen.
      Specified by:
      name in interface AttributeBuilder
      Parameters:
      aName -
      the name to be added.
      der Name welcher hinzugefügt werden soll.
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
      See Also:
    • nameFormat

      public AttributeBuilder nameFormat(String aNameFormat)
      Method to set the NameFormat of the Attribute to be build.
      Methode um ein NameFormat dem Attribute hinzuzufügen.
      Specified by:
      nameFormat in interface AttributeBuilder
      Parameters:
      aNameFormat -
      the NameFormat to be added.
      das NameFormat welches hinzugefügt werden soll.
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
      See Also:
    • value

      public AttributeBuilder value(Object aValue)
      Specified by:
      value in interface AttributeBuilder
    • value

      public AttributeBuilder value(String aValue)
      Method to set the value of the Attribute to be build.
      Methode um ein value dem Attribute hinzuzufügen.
      Specified by:
      value in interface AttributeBuilder
      Parameters:
      aValue -
      the value to be added.
      der Wert welcher hinzugefügt werden soll.
      Returns:
      the actual instance of this builder
      die aktuelle Instanz des Builders
      See Also:
    • getValueAsInstanceIdentifier

      public InstanceIdentifier getValueAsInstanceIdentifier()
      Method to get the InstanceIdentifier.
      Specified by:
      getValueAsInstanceIdentifier in interface AttributeBuilder
      Returns:
      the InstanceIdentifier
    • getValueAsPurposeOfUse

      public CE getValueAsPurposeOfUse()
      Method to get the
      Specified by:
      getValueAsPurposeOfUse in interface AttributeBuilder
      Returns:
      PurposeOfUse value
    • getValueAsRole

      public CE getValueAsRole()
      Method to get the
      Specified by:
      getValueAsRole in interface AttributeBuilder
      Returns:
      Role value
    • getValueAsString

      public String getValueAsString()
      Method to get the
      Specified by:
      getValueAsString in interface AttributeBuilder
      Returns:
      the string value