|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anvil.annot.NodeSpec
Specification for group/track node (abstract parent class).
Field Summary | |
protected java.util.HashSet |
attDisplay
|
protected java.util.LinkedList |
attributes
|
protected java.util.Hashtable |
attributeSpecs
|
java.lang.String |
doc
Contains documentation string which is used for the automated manual generation. |
protected boolean |
editTakeover
|
java.lang.String |
name
Name of the track/group. |
protected GroupSpec |
parent
|
protected java.util.LinkedList |
reciLinkAtt
|
protected AnnotationSpec |
spec
|
Constructor Summary | |
NodeSpec(GroupSpec parent,
java.lang.String name)
|
Method Summary | |
void |
addAttrDoc(java.lang.String attrName,
java.lang.String doc)
|
void |
addAttribute(AttributeSpec as)
Adds attribute specification to this specification. |
ValueType |
addAvSpec(java.lang.String attrName,
java.util.List values,
boolean display,
boolean useEmpty)
Adds AV specification for an attribute and a list of possible value types. |
ValueType |
addAvSpec(java.lang.String attrName,
java.lang.String valuetype,
boolean display,
boolean useEmpty)
|
void |
addDefault(java.lang.String attname,
java.lang.String defval)
Adding default value for an attribute. |
boolean |
attrDocExists(java.lang.String name)
|
void |
createHtmlFile(java.io.File dir)
|
java.lang.String |
docString()
|
abstract NodeSpec |
findSpec(java.lang.String name)
Looks recursively through this node and all subs and returns the spec objects as soon as found. |
abstract java.util.List |
findTrackNames()
Returns list of all track names in the subtree of this node. |
java.lang.String |
fullName()
Returns full name, e.g. |
AnnotationSpec |
getAnnotationSpec()
|
java.lang.String |
getAttrDoc(java.lang.String name)
Returns doc string for attribute |
java.util.List |
getAttributeNames()
Returns a sorted view on attribute names. |
AttributeSpec |
getAttributeSpec(java.lang.String name)
|
ValueType |
getAttributeType(java.lang.String attrName)
Returns value type (object) of an attribute. |
java.lang.String |
getDefault(java.lang.String attname)
Returns default value for one attribute of null. |
java.util.AbstractSet |
getDisplayedAttributes()
Returns set of attributes that are to be displayed on annotation board. |
java.lang.String |
getHtmlFilename()
|
java.lang.String |
getHtmlRefString()
|
java.lang.String |
getName()
Returns name of node (*not* full path!!!). |
GroupSpec |
getParent()
|
java.util.List |
getReciprocalLinkAttributes()
|
boolean |
isAttribute(java.lang.String att)
Checks whether string is an attribute of this track. |
boolean |
isDisplayed(java.lang.String name)
Returns true if the attribute is to be displayed on annotation board. |
abstract boolean |
isRoot()
|
void |
removeAttribute(java.lang.String name)
|
void |
setDisplayed(java.lang.String name,
boolean val)
Sets attribute display value. |
void |
setDisplayedAttributes(java.util.AbstractSet set)
|
void |
setEditTakeover(boolean val)
|
java.lang.String |
toString()
|
boolean |
usesEditTakeover()
|
void |
writeHtmlNavbar(kipp.io.MyBufferedWriter f)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public java.lang.String doc
protected GroupSpec parent
protected AnnotationSpec spec
protected boolean editTakeover
protected java.util.Hashtable attributeSpecs
protected java.util.LinkedList attributes
protected java.util.LinkedList reciLinkAtt
protected java.util.HashSet attDisplay
Constructor Detail |
public NodeSpec(GroupSpec parent, java.lang.String name)
Method Detail |
public AnnotationSpec getAnnotationSpec()
public abstract boolean isRoot()
public java.util.List getAttributeNames()
public java.util.List getReciprocalLinkAttributes()
public void setEditTakeover(boolean val)
public boolean usesEditTakeover()
public boolean isAttribute(java.lang.String att)
public GroupSpec getParent()
public java.lang.String getName()
public java.lang.String fullName()
public abstract java.util.List findTrackNames()
public abstract NodeSpec findSpec(java.lang.String name)
public AttributeSpec getAttributeSpec(java.lang.String name) throws NoSuchAttributeException
NoSuchAttributeException
public void addDefault(java.lang.String attname, java.lang.String defval) throws AnnotationSpecException
AnnotationSpecException
public java.lang.String getDefault(java.lang.String attname) throws NoSuchAttributeException
NoSuchAttributeException
public boolean isDisplayed(java.lang.String name) throws NoSuchAttributeException
NoSuchAttributeException
public void setDisplayed(java.lang.String name, boolean val) throws NoSuchAttributeException
NoSuchAttributeException
public java.util.AbstractSet getDisplayedAttributes()
public void setDisplayedAttributes(java.util.AbstractSet set)
public java.lang.String getHtmlRefString()
public void writeHtmlNavbar(kipp.io.MyBufferedWriter f) throws java.io.IOException
java.io.IOException
public void addAttribute(AttributeSpec as) throws AnnotationSpecException
AnnotationSpecException
public void addAttrDoc(java.lang.String attrName, java.lang.String doc) throws NoSuchAttributeException
NoSuchAttributeException
public ValueType getAttributeType(java.lang.String attrName) throws NoSuchAttributeException
NoSuchAttributeException
public java.lang.String docString()
public ValueType addAvSpec(java.lang.String attrName, java.util.List values, boolean display, boolean useEmpty) throws AnnotationSpecException
attrName
- attribute namevalues
- list of values (ValueSpec objects)display
- true if attribute is to be displayed on annot. board
AnnotationSpecException
public void removeAttribute(java.lang.String name)
public ValueType addAvSpec(java.lang.String attrName, java.lang.String valuetype, boolean display, boolean useEmpty) throws AnnotationSpecException
AnnotationSpecException
public java.lang.String getAttrDoc(java.lang.String name) throws NoSuchAttributeException
NoSuchAttributeException
public boolean attrDocExists(java.lang.String name) throws NoSuchAttributeException
NoSuchAttributeException
public java.lang.String getHtmlFilename()
public void createHtmlFile(java.io.File dir) throws java.io.IOException
java.io.IOException
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 |