Class Attribute
java.lang.Object
com.tivoli.am.fim.trustserver.sts.uuser.Attribute
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 Summary
-
Constructor Summary
ConstructorDescriptionConstructs an Attribute object using a name, type and a single value.Constructs an Attribute object using a name, type and an array of String values.Constructs an Attribute object using a name, type, nickname and an array of String values.Constructs an Attribute object using a name, type, nickname, an array of Nodes and a String array of values.Constructs an Attribute object using a name, nickname, type and a list of values, typically Strings.Constructs an Attribute object using a name, type, nickname and an array of Nodes.Constructs an Attribute object using a name, type and a list of values, typically Strings.Constructs an Attribute object using a name, type, and an array of Nodes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeValues
(Object[] values) Adds additional attribute values to this Attribute object based on the Object[] passed in.clone()
Clone method to copy an Attribute object.static Attribute
Returns an Attribute object from anorg.w3c.dom.Element
.Returns a list of attribute values for this Attribute.getName()
Returns the name of this Attribute object.Returns the nickname of this Attribute object.Node[]
Returns the node values of this Attribute as a String[].boolean
Returns whether this Attribute object prefers encryption or not.getType()
Returns the type of this Attribute object.String[]
Returns the values of this Attribute as a String[].void
setAttributeValues
(Object[] values) Sets the attribute values for this Attribute object based on the Object[] passed in.void
setAttributeValues
(List values) Sets the attribute values for this Attribute object based on the list passed in.void
Sets the name of this Attribute object.void
setNickname
(String newname) Sets the nickname of this Attribute object.void
setNodeValues
(Node[] values) Sets the attributes for this Attribute object using a Node[] of values.void
setPreferEncryption
(boolean preferEncryption) Sets whether this Attribute prefers encryption or not.void
Sets the type of this Attribute object.void
Sets the attribute values for this Attribute object.Returns this Attribute as an org.w3c.dom.Element.
-
Field Details
-
Attribute_java_sourceCodeID
- See Also:
-
Attribute_java_copyright
- See Also:
-
CUSTOM_PARAM_DONOT_TRIM_ATTRIBUTE_LIST
- See Also:
-
_doNotTrimList
-
-
Constructor Details
-
Attribute
Constructs an Attribute object using a name, type and an array of String values.- Parameters:
name
- the name of the Attributetype
- the type of Attributevalues
- an array of String values
-
Attribute
Constructs an Attribute object using a name, type and a single value.- Parameters:
name
- the name of the Attributetype
- the type of the Attributevalue
- a single value for the Attribute
-
Attribute
Constructs an Attribute object using a name, type and a list of values, typically Strings.- Parameters:
name
- the name of the Attributetype
- the type of Attributevalues
- a List of values, typically Strings
-
Attribute
Constructs an Attribute object using a name, nickname, type and a list of values, typically Strings.- Parameters:
name
- the name of the Attributetype
- the type of Attributenickname
- the nickname of the Attributevalues
- a List of values, typically Strings
-
Attribute
Constructs an Attribute object using a name, type, nickname and an array of String values.- Parameters:
name
- the name of the Attributetype
- the type of Attributenickname
- the nickname of the Attributevalues
- an array of String values
-
Attribute
Constructs an Attribute object using a name, type, nickname and an array of Nodes.- Parameters:
name
- the name of the Attributetype
- the type of Attributenickname
- the nickname of the Attributenodes
- an array of Nodes
-
Attribute
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 Attributetype
- the type of Attributenickname
- the nickname of the Attributevalues
- an array of String valuesnodes
- an array of Nodes
-
Attribute
Constructs an Attribute object using a name, type, and an array of Nodes.- Parameters:
name
- the name of the Attributetype
- the type of Attributenodes
- an array of Nodes
-
-
Method Details
-
fromXml
Returns an Attribute object from anorg.w3c.dom.Element
.- Parameters:
attribute
- anorg.w3c.dom.Element
used to create an Attribute- Returns:
- an Attribute object created from the supplied
org.w3c.dom.Element
.
-
toXml
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
Returns the name of this Attribute object.- Returns:
- the name of this Attribute object.
-
setName
Sets the name of this Attribute object.- Parameters:
name
- the name to use to set for this Attribute object.
-
getType
Returns the type of this Attribute object.- Returns:
- the type of this Attribute object.
-
setType
Sets the type of this Attribute object.- Parameters:
type
- the type to use to set for this Attribute object.
-
getValues
Returns the values of this Attribute as a String[].- Returns:
- a String[] of the values of this Attribute.
-
getNodeValues
Returns the node values of this Attribute as a String[].- Returns:
- a String[] of the node values of this Attribute.
-
getAttributeValues
Returns a list of attribute values for this Attribute.- Returns:
- a list of attribute values for this Attribute.
-
setNodeValues
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
Sets the attribute values for this Attribute object.- Parameters:
values
- a String[] of the attributes to be used with this Attribute object.
-
setAttributeValues
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
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
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
Returns the nickname of this Attribute object.- Returns:
- the nickname of this Attribute object.
-
setNickname
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
Clone method to copy an Attribute object.
-