|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.pd.jutil.PDEnvironmentObject
com.tivoli.mts.PDAttrs
public class PDAttrs
This class represents what would be known in the C APIs of Policy Director as an Attrlist, or attribute list. The individual attributes have String names. Values for an attribute may either be Strings or byte arrays. PDAttrs allows an attribute to have more than one value, so attempting to add a value to a name that already has been added to a PDAttrs will result in a multi-valued attribute. PDAttrs, if constructed to do so, will allow duplicate entries in the multi-valued attributes.
NOTE: As of IBM Tivoli Access Manager for e-business v5.1, this entire class is deprecated. Equivalent function is in the com.tivoli.pd.jutil.PDAttrs class.
PDAttrs
,
Serialized FormConstructor Summary | |
---|---|
PDAttrs()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the PDAttrs(boolean) constructor in the PDAttrs class. |
|
PDAttrs(boolean allowDuplicates)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
|
PDAttrs(boolean allowDuplicates,
int initialCapacity)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
|
PDAttrs(boolean allowDuplicates,
int initialCapacity,
float loadFactor)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
|
PDAttrs(int initialCapacity)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
|
PDAttrs(int initialCapacity,
float loadFactor)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
|
PDAttrs(PDAttrs that)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrs class. |
Method Summary | |
---|---|
java.util.Collection |
add(java.lang.String name,
byte[] value)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Collection |
add(java.lang.String name,
java.util.Collection vals)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Collection |
add(java.lang.String name,
java.lang.Long value)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Collection |
add(java.lang.String name,
PDAdmSvcPobj value)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Collection |
add(java.lang.String name,
PDAttrValues vals)
Deprecated. Use add instead |
java.util.Collection |
add(java.lang.String name,
java.lang.String value)
Adds the specified String value to the collection of values for the specified name in this PDAttrs. |
void |
addAll(PDAttrs attrs)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
boolean |
allowDups()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
void |
clear()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.lang.Object |
clone()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
boolean |
delete(java.lang.String key)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Set |
entrySet()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
boolean |
equals(java.lang.Object obj)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
PDAttrValues |
get(java.lang.String key)
Deprecated. Use getValues instead |
int |
getQoP()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Collection |
getValues(java.lang.String key)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
int |
hashCode()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.util.Set |
keySet()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
void |
setQoP(int qop)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
int |
size()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
java.lang.String |
toString()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrs class. |
Methods inherited from class com.tivoli.pd.jutil.PDEnvironmentObject |
---|
getContext, setContext |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PDAttrs()
PDAttrs
class.
public PDAttrs(int initialCapacity)
PDAttrs
class.
initialCapacity
- the initial capacity of thePDAttrspublic PDAttrs(int initialCapacity, float loadFactor)
PDAttrs
class.
initialCapacity
- the initial capacity of thePDAttrsloadFactor
- the load factor, which is a measure of how
full the PDAttrs is allowed to get before its capacity is
automatically increased. The default is .75.public PDAttrs(boolean allowDuplicates)
PDAttrs
class.
allowDuplicates
- A boolean indicating whether each attribute
value can be an unordered list that allows duplicate itemspublic PDAttrs(boolean allowDuplicates, int initialCapacity)
PDAttrs
class.
allowDuplicates
- A boolean indicating whether each attribute
value can be an unordered list that allows duplicate itemsinitialCapacity
- the initial capacity of thePDAttrspublic PDAttrs(boolean allowDuplicates, int initialCapacity, float loadFactor)
PDAttrs
class.
allowDuplicates
- A boolean indicating whether each attribute
value can be an unordered list that allows duplicate itemsinitialCapacity
- the initial capacity of thePDAttrsloadFactor
- the load factor, which is a measure of how
full the PDAttrs is allowed to get before its capacity is
automatically increased. The default is .75.public PDAttrs(PDAttrs that) throws java.lang.NullPointerException, java.lang.ClassCastException
PDAttrs
class.
that
- the PDAttrs whose elements are to be placed
into this PDAttrs
java.lang.NullPointerException
- if no PDAttrs is passed in
java.lang.ClassCastException
- if one or more of the elements in the PDAttrs
to be added are not PDAttr objectsMethod Detail |
---|
public java.util.Collection add(java.lang.String name, PDAttrValues vals)
add
instead
name
- the name of the attributevals
- the new values to be associated with the name
java.lang.NullPointerException
- on parameter errors.public java.util.Collection add(java.lang.String name, java.util.Collection vals)
PDAttrs
class.
name
- the name of the attributevals
- the new values to be associated with the name. Must
be either a PDAttrValues
or a
PDAttrValueList
java.lang.NullPointerException
- on parameter errors.public java.util.Collection add(java.lang.String name, java.lang.String value)
name
- the name of the attributevalue
- the new String value to be added for the name
java.lang.NullPointerException
- on parameter errors.public java.util.Collection add(java.lang.String name, java.lang.Long value)
PDAttrs
class.
name
- the name of the attributevalue
- the new Long value to be added for the name
java.lang.NullPointerException
- on parameter errors.public java.util.Collection add(java.lang.String name, PDAdmSvcPobj value)
PDAttrs
class.
name
- the name of the attributevalue
- the new PDAdmSvcPobj value to be added for the name
java.lang.NullPointerException
- on parameter errors.public java.util.Collection add(java.lang.String name, byte[] value)
PDAttrs
class.
name
- the name of the attributevalue
- the new byte array value to be added for the name
java.lang.NullPointerException
- on parameter errors.public void addAll(PDAttrs attrs) throws java.lang.NullPointerException, java.lang.ClassCastException
PDAttrs
class.
attrs
- the PDAttrs to be added
java.lang.NullPointerException
- if no PDAttrs is passed
java.lang.ClassCastException
public void clear()
PDAttrs
class.
public boolean delete(java.lang.String key)
PDAttrs
class.
key
- the name of the attribute to be removed.
true
if the attribute was in the PDAttrspublic java.lang.Object clone()
PDAttrs
class.
clone
in class java.lang.Object
public java.util.Set entrySet()
PDAttrs
class.
public boolean equals(java.lang.Object obj)
PDAttrs
class.
equals
check, which will
devolve into a containsAll check on the current PDAttrs set
equals
in class java.lang.Object
obj
- the object to be compared to this one
true
if the PDAttrs are identical,
false
otherwise.public PDAttrValues get(java.lang.String key)
getValues
instead
null
if the PDAttrs contains no mapping for
the specified key.
key
- key whose associated value(s) is/are to be returned.
public java.util.Collection getValues(java.lang.String key)
PDAttrs
class.
null
if the PDAttrs contains no mapping for
the specified key.
key
- key whose associated value(s) is/are to be returned.
public int getQoP()
PDAttrs
class.
public boolean allowDups()
PDAttrs
class.
public int hashCode()
PDAttrs
class.
hashCode
in class java.lang.Object
public java.util.Set keySet()
PDAttrs
class.
public void setQoP(int qop) throws java.lang.IllegalArgumentException
PDAttrs
class.
java.lang.IllegalArgumentException
- if the QoP value is unknownpublic int size()
PDAttrs
class.
public java.lang.String toString()
PDAttrs
class.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |