|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.mirovsky.trees.NGTreeHead
public class NGTreeHead
A class representing a head of a forest. It keeps information about the attributes in the forest.
Field Summary | |
---|---|
int |
H
an index of hide attribute in the head (counted from zero). |
static java.lang.String |
META_ATTR_NODE_NAME
a name of meta-attribute _name |
static java.lang.String |
META_ATTR_OCCURRENCES
a name of meta-attribute _#occurrences |
static java.lang.String |
META_ATTR_OPTIONAL
a name of meta-attribute _optional |
static java.lang.String |
META_ATTR_OPTIONAL_TRUE
value true of meta-attribute _optional |
static java.lang.String |
META_ATTR_TRANSITIVE
a name of meta-attribute _transitive |
static java.lang.String |
META_ATTR_TRANSITIVE_EXCLUSIVE
value exclusive of meta-attribute _transitive |
static java.lang.String |
META_ATTR_TRANSITIVE_TRUE
value true of meta-attribute _transitive |
int |
N
an index of numerical attribute in the head (counted from zero). |
static java.lang.String |
NODE_REFERENCE_ATTR_NAME_DELIMITER
a character that separates first two parts of a reference |
static java.lang.String |
NODE_REFERENCE_END
a character that ends a reference |
static java.lang.String |
NODE_REFERENCE_CHARACTER_ORDER_DELIMITER
a character that separates second two parts of a reference |
static java.lang.String |
NODE_REFERENCE_CHARACTER_ORDER_UNSPECIFIED
an unspecified character order for references. |
static java.lang.String |
NODE_REFERENCE_START
a character that starts a reference |
int |
V
an index of value attribute in the head (counted from zero). |
int |
W
an index of word order attribute in the head (counted from zero). |
Constructor Summary | |
---|---|
NGTreeHead(ShowMessagesAble p_mess)
Creates a new empty head. |
Method Summary | |
---|---|
void |
addAttribute(Attribute a)
Adds an attribute at the end of the list of attributes |
void |
deleteAttributes()
Deletes all attributes in the forest head. |
Attribute |
getAttribute(java.lang.String name)
Returns an attribute with the specified name. |
Attribute |
getAttributeAt(int index)
Gets an attribute at the specified position; null if there is not any like that |
NGTreeHead |
getClone()
Returns a deep clone of the head. |
int |
getIndexOfAttribute(java.lang.String name)
Return the index of an attribute with the specified name. |
javax.swing.DefaultListModel |
getModel()
Returns a list of attributes in the head. |
javax.swing.DefaultListModel |
getPossibleValues(java.lang.String name)
Returns a list of possible values for an attribute with the specified name. |
int |
getSize()
Returns the number of attributes in the head. |
boolean |
isAttribute(java.lang.String name)
Returns true iff an attribute with the specified name exists. |
int |
readTreeHead(char[] source,
int start_position)
Reads a head from an input char field. |
java.lang.String |
toFSString()
Return FS representation of the head. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String META_ATTR_NODE_NAME
public static final java.lang.String META_ATTR_TRANSITIVE
public static final java.lang.String META_ATTR_TRANSITIVE_TRUE
public static final java.lang.String META_ATTR_TRANSITIVE_EXCLUSIVE
public static final java.lang.String META_ATTR_OPTIONAL
public static final java.lang.String META_ATTR_OPTIONAL_TRUE
public static final java.lang.String META_ATTR_OCCURRENCES
public static final java.lang.String NODE_REFERENCE_CHARACTER_ORDER_UNSPECIFIED
public static final java.lang.String NODE_REFERENCE_START
public static final java.lang.String NODE_REFERENCE_END
public static final java.lang.String NODE_REFERENCE_ATTR_NAME_DELIMITER
public static final java.lang.String NODE_REFERENCE_CHARACTER_ORDER_DELIMITER
public int N
public int V
public int W
public int H
Constructor Detail |
---|
public NGTreeHead(ShowMessagesAble p_mess)
p_mess
- an object capable of displaying messagesMethod Detail |
---|
public java.lang.String toFSString()
public javax.swing.DefaultListModel getModel()
public int getSize()
public NGTreeHead getClone()
public void addAttribute(Attribute a)
a
- an attribute to be addedpublic Attribute getAttribute(java.lang.String name)
name
- a name of an attribute
public boolean isAttribute(java.lang.String name)
name
- a name of an attribute
public Attribute getAttributeAt(int index)
index
- the index of the attribute, counted from zero
public int getIndexOfAttribute(java.lang.String name)
name
- a name of an attribute
public javax.swing.DefaultListModel getPossibleValues(java.lang.String name)
name
- a name of an attribute
public int readTreeHead(char[] source, int start_position)
source
- a source for readingstart_position
- the position of the first character to be read in the source
public void deleteAttributes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |