|
|
com.architech.entry
|
Field Summary | |
static char |
OP_ADD
The entry contains an entry which is supposed to be added |
static String |
OP_ADD2
|
static char |
OP_DEL
The entry contains an entry which is supposed to be removed |
static String |
OP_DEL2
|
static char |
OP_GEN
The entry contains an entry with no explicit knowledge of operation |
static String |
OP_GEN2
|
static char |
OP_MOD
The entry contains an entry which is supposed to be modified |
static String |
OP_MOD2
|
Constructor Summary | |
Entry()
|
|
Entry(Hashtable p1)
|
Method Summary | |
void |
addAttributeValue(Object p1,
Object p2)
This method adds a value to an attribute. |
Entry |
clone(Entry p1)
This method returns an Entry object which is a clone of the p1 Entry. |
Attribute |
get(Object p1)
This method returns the Attribute object for a named attribute. |
Attribute |
getAttribute(Object p1)
This method returns the Attribute object for a named attribute. |
Collection |
getAttributeCollection()
This method returns a java.util.Collection containing attribute names in this entry. |
String[] |
getAttributeNames()
This method returns an array of strings containing attribute names in this entry. |
Object |
getObject(Object p1)
This method returns the first value in an attribute as an object. |
char |
getOp()
This method returns the operation field of this entry. |
String |
getOperation()
This method returns the operation field of this entry. |
Object |
getProperty(Object propertyName)
This method returns a property value. |
String[] |
getPropertyNames()
This method returns a string array of the property names contained in this entry. |
String |
getString(Object p1)
This method returns the first value in an attribute as a String. |
boolean |
hasProperty(String propertyName)
This method returns true if a property named by the propertyName parameter has a value. |
void |
merge(Entry e)
This method merges the attributes and their values from another entry. |
void |
mergeAttributeValue(Object p1,
com.architech.entry.AttributeInterface p2)
This method merges the values in one attribute with the values from another attribute. |
Attribute |
newAttribute(String name)
This methods returns an Attribute object from this entry's list of attributes. |
void |
removeAllAttributes()
This method removes all attributes from this Entry. |
void |
removeAttribute(Object p1)
This method removes an attribute from this Entry's list of attribute. |
void |
set(com.architech.entry.AttributeInterface p1)
This methods adds or replaces an attribute in this entry's list of attributes. |
void |
setAttribute(com.architech.entry.AttributeInterface p1)
This methods adds or replaces an attribute in this entry's list of attributes. |
void |
setAttribute(Object p1,
Object p2)
This methods adds or replaces an attribute in this entry's list of attributes. |
void |
setOp(char operation)
This method sets the operation code for this entry. |
void |
setProperty(Object propertyName,
Object propertyValue)
This method sets/replace a property. |
int |
size()
This method returns the number of attributes present in this entry. |
String |
toString()
This method returns a string representation of this entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final char OP_ADD
public static final String OP_ADD2
public static final char OP_MOD
public static final String OP_MOD2
public static final char OP_DEL
public static final String OP_DEL2
public static final char OP_GEN
public static final String OP_GEN2
Constructor Detail |
public Entry()
public Entry(Hashtable p1)
Method Detail |
public Entry clone(Entry p1)
p1
- The Entry object to clonepublic char getOp()
public void setOp(char operation)
operation
- The operation codepublic String getOperation()
public void set(com.architech.entry.AttributeInterface p1)
p1
- An AttributeInterface objectpublic void setAttribute(com.architech.entry.AttributeInterface p1)
setAttribute
in interface com.architech.entry.EntryInterface
p1
- An AttributeInterface objectpublic void setAttribute(Object p1, Object p2)
setAttribute
in interface com.architech.entry.EntryInterface
p1
- The attribute name. If this parameter is null then the attribute is removed.p2
- The attribute valuepublic Attribute newAttribute(String name)
name
- The attribute name to create/returnpublic void addAttributeValue(Object p1, Object p2)
p1
- The attribute namep2
- The value to appendpublic void mergeAttributeValue(Object p1, com.architech.entry.AttributeInterface p2)
p1
- The name of the attribute into which values are mergedp2
- The attribute (e.g. entry.getAttribute("xxx")) from which values are collectedpublic Attribute get(Object p1)
p1
- The attribute namepublic Attribute getAttribute(Object p1)
getAttribute
in interface com.architech.entry.EntryInterface
p1
- The attribute namepublic String[] getAttributeNames()
getAttributeNames
in interface com.architech.entry.EntryInterface
public Collection getAttributeCollection()
public String getString(Object p1)
getString
in interface com.architech.entry.EntryInterface
p1
- The attribute namepublic Object getObject(Object p1)
p1
- The attribute namepublic void removeAttribute(Object p1)
removeAttribute
in interface com.architech.entry.EntryInterface
p1
- The name of the attribute to removepublic void removeAllAttributes()
public int size()
size
in interface com.architech.entry.EntryInterface
public String toString()
public Object getProperty(Object propertyName)
propertyName
- The named propertypublic void setProperty(Object propertyName, Object propertyValue)
propertyName
- The named propertypropertyValue
- The named property's valuepublic boolean hasProperty(String propertyName)
public String[] getPropertyNames()
public void merge(Entry e)
e
- The entry from which attributes are collected
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|