| java.lang.Object soif.TaxonomyNode
TaxonomyNode | public class TaxonomyNode (Code) | | Represent nodes in the taxonomy.
|
TaxonomyNode | public TaxonomyNode(String id, String parentId, String taxonomyId, String description)(Code) | | Constructor.
Parameters: id - id Parameters: parentId - parent id Parameters: taxonomyId - taxonomy id Parameters: description - description exception: IllegalArgumentException - on null id |
getParentId | public String getParentId()(Code) | | Return the parent id.
|
getValue | public String getValue(String s)(Code) | | Get value by attribute.
Ignores case of attribute name.
Parameters: s - the attribute |
insert | public void insert(String att, String val)(Code) | | Inserts a new AVPairs instance.
The inserter of duplicates (particular of
key attributes) is assumed to know what they're doing.
Parameters: att - the attribute Parameters: val - the value |
remove | public void remove(String s)(Code) | | Remove AVPair by attribute.
Ignores case of attribute name.
Parameters: s - the attribute |
setLabel | public void setLabel()(Code) | | Set the label to be printed on the diagram node.
|
setValue | public boolean setValue(String s, String v)(Code) | | Set value by attribute.
Ignores case of attribute name.
Note that it is possible to set id, taxonomyid
and parentid here.
However, because this information is significant
to other nodes in the tree, this isn't really
recommended.
Safer methods will eventually be provided and
use of this method may be restricted to non id
attributes.
Note that in certain cases this setValue recurses
and that the boolean success value only refers
the the success of the principal and not the
secondary setValue()s.
In this context the secondary setValue() calls
reference an AVPair which must exist for the
TaxonomyNode so this is not an issue.
Parameters: s - the attribute Parameters: v - the value |
update | public void update(String att, String val)(Code) | | A convenience method which bundles insert(),
setValue() and remove().
If the proposed value is length 0, remove() is called.
Otherwise, setValue() is called.
If setValue() fails, insertAfter() is called.
Parameters: att - attribute Parameters: val - value |
|
|