|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.huguesjohnson.tiamat.AttributeCollection
public class AttributeCollection
AttributeCollection - used to store a collection of attributes
| Constructor Summary | |
|---|---|
AttributeCollection()
Default constructor, uses default pathDelimiter. |
|
AttributeCollection(Attribute[] attributes)
Create a new AttributeCollection based off an array of Attributes with a the default path delimiter. |
|
AttributeCollection(Attribute[] attributes,
java.lang.String pathDelimiter)
Create a new AttributeCollection based off an array of Attributes with a custom path delimiter. |
|
AttributeCollection(java.lang.String pathDelimiter)
Create a new AttributeCollection with a custom path delimiter. |
|
| Method Summary | |
|---|---|
Attribute[] |
getAll()
Returns an array representing all Attributes in the collection. |
Attribute |
getAttribute(java.lang.String path)
Return the Attribute with the specified path if it exists, otherwise null. |
int |
getCount()
Returns the total number of Attributes in the collection. |
boolean |
removeAttribute(java.lang.String path)
Remove the Attribute with the specified path. |
void |
setAttribute(java.lang.String path,
Attribute attribute)
Sets the Attribute with the given path, adds it if it doesn’t exist. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeCollection()
public AttributeCollection(java.lang.String pathDelimiter)
pathDelimiter - The new path delimiter to use.public AttributeCollection(Attribute[] attributes)
attributes - The initial set of attributes to add to the collection.
public AttributeCollection(Attribute[] attributes,
java.lang.String pathDelimiter)
attributes - The initial set of attributes to add to the collections.pathDelimiter - The new path delimiter to use.| Method Detail |
|---|
public void setAttribute(java.lang.String path,
Attribute attribute)
path - The path to this Attribute.attribute - The Attribute to store.public boolean removeAttribute(java.lang.String path)
path - The path to the Attribute to remove.
public Attribute getAttribute(java.lang.String path)
path - The path to the Attribute to get.
public int getCount()
public Attribute[] getAll()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||