public class GenericTemplate extends Object
Object.ObjectClass, Object.VendorDefinedObjectBuilder
attributeTable_, objectClass_, objectClassNames_, objectHandle_, vendorObjectBuilder_
Constructor and Description |
---|
GenericTemplate()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllAttributes(Object object)
Adds all attributes of the given object to this generic template.
|
void |
addAllPresentAttributes(Object object)
Adds all attributes of the given object which have their present flag set to this generic
template.
|
void |
addAttribute(Attribute attribute)
Adds an attribute to this generic search template.
|
java.lang.Object |
clone()
Create a (deep) clone of this object.
|
boolean |
containsAttribute(Attribute attribute)
Checks, if the given attribute is in this template.
|
boolean |
equals(java.lang.Object otherObject)
Compares all member variables of this object with the other object.
|
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a
hashtable.
|
void |
removeAllAttributes(Object object)
Removes all attributes of the given object from this generic template.
|
void |
removeAllPresentAttributes(Object object)
Removes all attributes of the given object which have their present flag set from this generic
template.
|
Attribute |
removeAttribute(Attribute attribute)
Removes the given attribute from the template.
|
protected void |
setAllPresentFlags(boolean present)
Set the present flags of all attributes of this object to the given value.
|
java.lang.String |
toString()
This method returns a string representation of the current object.
|
java.lang.String |
toString(boolean newline,
boolean withName,
java.lang.String indent)
This method returns a string representation of the current object.
|
allocateAttributes, checkAttributesState, checkAttributeState, getAttribute, getAttributeTable, getAttributeValue, getAttributeValues, getInstance, getObjectClass, getObjectClassName, getObjectHandle, getSetAttributes, getSetAttributes, getUnknownObject, getVendorDefinedObjectBuilder, putAttribute, putAttributesInTable, readAttributes, removeAttribute, setObjectHandle, setVendorDefinedObjectBuilder
public GenericTemplate()
public void addAttribute(Attribute attribute)
attribute
- The attribute to add to the template.public void addAllAttributes(Object object)
object
- The object that holds the attributes to add to the template.public void addAllPresentAttributes(Object object)
object
- The object that holds the attributes to add to the template.public java.lang.Object clone()
public boolean containsAttribute(Attribute attribute)
attribute
- The attribute to look for.public boolean equals(java.lang.Object otherObject)
public int hashCode()
public Attribute removeAttribute(Attribute attribute)
attribute
- The attribute to remove.public void removeAllAttributes(Object object)
object
- The object that holds the attributes to add to the template.public void removeAllPresentAttributes(Object object)
object
- The object that holds the attributes to add to the template.protected void setAllPresentFlags(boolean present)
present
- The new value for the present flags of all attributes.public java.lang.String toString()
public java.lang.String toString(boolean newline, boolean withName, java.lang.String indent)
toString
in class Object
newline
- true if the output should start in a new linewithName
- true if the type of the attribute should be returned tooindent
- the indent to be usedIAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9