Class Attribute

java.lang.Object
com.tivoli.am.fim.trustserver.sts.uuser.Attribute

public class Attribute extends Object
Represents an STS Universal User attribute while providing methods to transform to and from XML. See RTC 85668 for the removal of the trimString call: https://rtp-rtc6.tivlab.raleigh.ibm.com:9443/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/85668
Version:
@VERSION@
  • Field Details

  • Constructor Details

    • Attribute

      public Attribute(String name, String type, String[] values)
      Constructs an Attribute object using a name, type and an array of String values.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      values - an array of String values
    • Attribute

      public Attribute(String name, String type, String value)
      Constructs an Attribute object using a name, type and a single value.
      Parameters:
      name - the name of the Attribute
      type - the type of the Attribute
      value - a single value for the Attribute
    • Attribute

      public Attribute(String name, String type, List values)
      Constructs an Attribute object using a name, type and a list of values, typically Strings.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      values - a List of values, typically Strings
    • Attribute

      public Attribute(String name, String type, String nickname, List values)
      Constructs an Attribute object using a name, nickname, type and a list of values, typically Strings.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      nickname - the nickname of the Attribute
      values - a List of values, typically Strings
    • Attribute

      public Attribute(String name, String type, String nickname, String[] values)
      Constructs an Attribute object using a name, type, nickname and an array of String values.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      nickname - the nickname of the Attribute
      values - an array of String values
    • Attribute

      public Attribute(String name, String type, String nickname, Node[] nodes)
      Constructs an Attribute object using a name, type, nickname and an array of Nodes.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      nickname - the nickname of the Attribute
      nodes - an array of Nodes
    • Attribute

      public Attribute(String name, String type, String nickname, String[] values, Node[] nodes)
      Constructs an Attribute object using a name, type, nickname, an array of Nodes and a String array of values.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      nickname - the nickname of the Attribute
      values - an array of String values
      nodes - an array of Nodes
    • Attribute

      public Attribute(String name, String type, Node[] nodes)
      Constructs an Attribute object using a name, type, and an array of Nodes.
      Parameters:
      name - the name of the Attribute
      type - the type of Attribute
      nodes - an array of Nodes
  • Method Details

    • fromXml

      public static Attribute fromXml(Element attribute)
      Returns an Attribute object from an org.w3c.dom.Element.
      Parameters:
      attribute - an org.w3c.dom.Element used to create an Attribute
      Returns:
      an Attribute object created from the supplied org.w3c.dom.Element.
    • toXml

      public Element toXml(Document owner)
      Returns this Attribute as an org.w3c.dom.Element.
      Parameters:
      owner - an org.w3c.dom.Document object.
      Returns:
      an org.w3c.dom.Element representing this Attribute.
    • getName

      public String getName()
      Returns the name of this Attribute object.
      Returns:
      the name of this Attribute object.
    • setName

      public void setName(String name)
      Sets the name of this Attribute object.
      Parameters:
      name - the name to use to set for this Attribute object.
    • getType

      public String getType()
      Returns the type of this Attribute object.
      Returns:
      the type of this Attribute object.
    • setType

      public void setType(String type)
      Sets the type of this Attribute object.
      Parameters:
      type - the type to use to set for this Attribute object.
    • getValues

      public String[] getValues()
      Returns the values of this Attribute as a String[].
      Returns:
      a String[] of the values of this Attribute.
    • getNodeValues

      public Node[] getNodeValues()
      Returns the node values of this Attribute as a String[].
      Returns:
      a String[] of the node values of this Attribute.
    • getAttributeValues

      public List getAttributeValues()
      Returns a list of attribute values for this Attribute.
      Returns:
      a list of attribute values for this Attribute.
    • setNodeValues

      public void setNodeValues(Node[] values)
      Sets the attributes for this Attribute object using a Node[] of values.
      Parameters:
      values - a Node[] of the attributes to be used with this Attribute object.
    • setValues

      public void setValues(String[] values)
      Sets the attribute values for this Attribute object.
      Parameters:
      values - a String[] of the attributes to be used with this Attribute object.
    • setAttributeValues

      public void setAttributeValues(Object[] values)
      Sets the attribute values for this Attribute object based on the Object[] passed in.
      Parameters:
      values - an Object[] of the attributes to be used with this Attribute object.
    • addAttributeValues

      public void addAttributeValues(Object[] values)
      Adds additional attribute values to this Attribute object based on the Object[] passed in.
      Parameters:
      values - an Object[] of the attributes to be added to this Attribute object.
    • setAttributeValues

      public void setAttributeValues(List values)
      Sets the attribute values for this Attribute object based on the list passed in.
      Parameters:
      values - a List of the attributes to be used with this Attribute object.
    • getNickname

      public String getNickname()
      Returns the nickname of this Attribute object.
      Returns:
      the nickname of this Attribute object.
    • setNickname

      public void setNickname(String newname)
      Sets the nickname of this Attribute object.
      Parameters:
      newname - the new nickname for this Attribute object.
    • getPreferEncryption

      public boolean getPreferEncryption()
      Returns whether this Attribute object prefers encryption or not.
      Returns:
      if this Attribute object prefers encryption or not.
    • setPreferEncryption

      public void setPreferEncryption(boolean preferEncryption)
      Sets whether this Attribute prefers encryption or not.
      Parameters:
      preferEncryption - whether this Attribute prefers encryption.
    • clone

      public Object clone()
      Clone method to copy an Attribute object.