|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.DirectoryAttributeHolder
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Hashtable |
directoryAttributes
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Hashtable |
translationTable
|
Constructor Summary | |
DirectoryAttributeHolder()
Constructor returning an instance holding no attributes and no translation table. |
|
DirectoryAttributeHolder(Hashtable attributes,
Hashtable translationTable)
Constructor returning an instance initialized to hold a specified set of attributes and an attribute name translation table. |
Method Summary | |
void |
addValue(String attr_name,
Object value)
Adds value to attribute. |
Enumeration |
getAttrNames()
Returns all names of the attributes held by the object. |
Hashtable |
getDirectoryAttributes()
Gets the value of the attribute: directoryAttributes. |
Object |
getSingleValue(String attr_name)
Return one value associated with the attribute name. |
Hashtable |
getTranslationTable()
Gets the value of the attribute: translationTable. |
Enumeration |
getValues(String attr_name)
Returns the values associated with a given attribute name. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DirectoryAttributeHolder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removeAttribute(String attr_name)
Removes an attribute from the object (with all its values). |
void |
removeValue(String attr_name,
Object value)
Removes a specific value from the attribute. |
void |
replaceValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
void |
setDirectoryAttributes(Hashtable a_DirectoryAttributes)
Sets the value of the attribute: directoryAttributes. |
void |
setTranslationTable(Hashtable a_TranslationTable)
Sets the value of the attribute: translationTable. |
void |
setValue(String attr_name,
Object value)
Replaces object for all the current values of the attribute. |
String |
toString()
Creates string representation of the attribute holder. |
private String |
translateKey(String key)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable directoryAttributes
private Hashtable translationTable
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public DirectoryAttributeHolder()
public DirectoryAttributeHolder(Hashtable attributes, Hashtable translationTable)
attributes
- translationTable
- Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DirectoryAttributeHolder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Hashtable getDirectoryAttributes()
public void setDirectoryAttributes(Hashtable a_DirectoryAttributes) throws WTPropertyVetoException
a_DirectoryAttributes
-
WTPropertyVetoException
public Hashtable getTranslationTable()
public void setTranslationTable(Hashtable a_TranslationTable) throws WTPropertyVetoException
a_TranslationTable
-
WTPropertyVetoException
public Enumeration getValues(String attr_name) throws WTException
getValues
in interface AttributeHolder
attr_name
-
WTException
public Object getSingleValue(String attr_name) throws WTException
getSingleValue
in interface AttributeHolder
attr_name
-
WTException
public Enumeration getAttrNames() throws WTException
getAttrNames
in interface AttributeHolder
WTException
public void addValue(String attr_name, Object value) throws WTException
addValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void setValue(String attr_name, Object value) throws WTException
setValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void replaceValue(String attr_name, Object value) throws WTException
replaceValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void removeValue(String attr_name, Object value) throws WTException
removeValue
in interface AttributeHolder
attr_name
- value
-
WTException
public void removeAttribute(String attr_name) throws WTException
removeAttribute
in interface AttributeHolder
attr_name
-
WTException
public String toString()
toString
in interface AttributeHolder
private String translateKey(String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |