|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.StringAttribute
vanted.attribute.cpn.guard.GuardAttribute
public class GuardAttribute
The Class GuardAttribute for the guard attribute handling.
Field Summary | |
---|---|
static java.lang.String |
name
The Constant name. |
static java.lang.String |
path
The Constant path. |
static java.lang.String |
seperator
The Constant separator. |
Fields inherited from interface org.graffiti.attributes.Attribute |
---|
SEPARATOR |
Constructor Summary | |
---|---|
GuardAttribute()
Instantiates a new guard attribute. |
|
GuardAttribute(java.lang.String id)
Instantiates a new guard attribute. |
|
GuardAttribute(java.lang.String id,
java.lang.String value)
Instantiates a new guard attribute. |
Method Summary | |
---|---|
boolean |
addGuard(Guard guard)
Adds the guard. |
boolean |
changeGuardValue(Guard guard,
java.lang.Object value)
Change guard value. |
java.util.List<Guard> |
getGuards()
Gets the guards. |
java.lang.String |
getString()
|
java.lang.Object |
getValue()
|
void |
removeAllGuards()
Removes the all guards. |
boolean |
removeGuard(Guard guard)
Removes the guard. |
void |
setString(java.lang.String value)
|
Methods inherited from class org.graffiti.attributes.StringAttribute |
---|
copy, getTypedStringAttribute, getTypedStringAttribute, putAttributeType, setDefaultValue, toString, toXMLString |
Methods inherited from class org.graffiti.attributes.AbstractAttribute |
---|
addEdgeAttributeType, addNodeAttributeType, getAttributable, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isTypedAttributeFromID, setDescription, setId, setParent, setValue, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String path
public static final java.lang.String name
public static final java.lang.String seperator
Constructor Detail |
---|
public GuardAttribute()
public GuardAttribute(java.lang.String id)
id
- the idpublic GuardAttribute(java.lang.String id, java.lang.String value)
id
- the idvalue
- the valueMethod Detail |
---|
public java.lang.String getString()
getString
in class org.graffiti.attributes.StringAttribute
public java.lang.Object getValue()
getValue
in interface org.graffiti.attributes.Attribute
getValue
in interface org.graffiti.plugin.Displayable
getValue
in class org.graffiti.attributes.StringAttribute
public void setString(java.lang.String value)
setString
in class org.graffiti.attributes.StringAttribute
public java.util.List<Guard> getGuards()
public boolean addGuard(Guard guard)
guard
- the guard
public boolean removeGuard(Guard guard)
guard
- the guard
public void removeAllGuards()
public boolean changeGuardValue(Guard guard, java.lang.Object value)
guard
- the guardvalue
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |