|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xerox.jxip.XipUnit
public class XipUnit
XipUnit Class
| Constructor Summary | |
|---|---|
XipUnit(XipNode rootNode,
java.util.Vector<XipLeaf> leaves,
java.util.Vector<XipDependency> dependencies,
java.lang.String language,
long sentNb)
Constructor for the XipUnit object |
|
| Method Summary | |
|---|---|
java.util.Vector<XipDependency> |
getDependencies()
Gets the dependencies |
java.util.Vector<XipDependency> |
getDependenciesByName(java.lang.String name)
Gets the dependencies having the specified name. |
java.lang.String |
getLanguage()
Gets the language attribute |
XipNode |
getLeafNodeByTokOffset(long offset)
Returns the leaf node having the specified token offset (token position in the sentence). |
java.util.Vector<XipNode> |
getLeafNodes()
Returns a Vector containing leaf nodes descendant of the current unit. |
java.util.Vector<XipLeaf> |
getLeaves()
Gets the leaves node |
XipNode |
getNodeByGramId(long id)
Returns the node having the specified gram id in the current unit |
java.util.Vector<XipNode> |
getNodesByCategory(java.lang.String category)
Returns all XipNodes descendant all the root node that have the category name. |
java.util.Vector<XipNode> |
getNodesByCategory(java.lang.String category,
java.lang.String features)
Returns all XipNodes descendant all the root node that have the category name and the specified features. |
java.util.Vector<XipNode> |
getNodesByFeature(java.lang.String name,
java.lang.String value)
Returns all XipNodes descendant all the root node that have the feature name with the specified value. |
XipNode |
getNodeUid(java.lang.String uid)
Returns the node having the specified uid in the current unit |
XipNode |
getRoot()
Gets the root XipNode |
long |
getSentenceNb()
Gets The sentence number |
java.lang.String |
getSentenceString()
Gets the sentence |
boolean |
hasDependency(java.lang.String name)
Tests whether the current unit has the specified dependency or not. |
java.lang.String |
toString()
return XipUnit data as a string |
java.lang.String |
toString(boolean withFeature)
return XipUnit data as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XipUnit(XipNode rootNode,
java.util.Vector<XipLeaf> leaves,
java.util.Vector<XipDependency> dependencies,
java.lang.String language,
long sentNb)
rootNode - the root XipNodeleaves - the leaves: Vector of XipLeafdependencies - the dependencies: Vector of dependencylanguage - sentNb - | Method Detail |
|---|
public XipNode getRoot()
public long getSentenceNb()
public java.util.Vector<XipDependency> getDependencies()
public java.util.Vector<XipDependency> getDependenciesByName(java.lang.String name)
name - the name of the expected dependencies.
public boolean hasDependency(java.lang.String name)
name - the name of the dependency.
public XipNode getNodeByGramId(long id)
id - the search node gram id
public XipNode getLeafNodeByTokOffset(long offset)
offset - the token offset
public XipNode getNodeUid(java.lang.String uid)
uid - the search node uid
public java.util.Vector<XipNode> getNodesByFeature(java.lang.String name,
java.lang.String value)
name - the name of the featurevalue - the value of the feature ("*" if all values are fine)
XipNode.getDescendantsByFeature(String name, String value)public java.util.Vector<XipNode> getNodesByCategory(java.lang.String category)
category - the name of the category
XipNode.getDescendantsByCategory(String category)
public java.util.Vector<XipNode> getNodesByCategory(java.lang.String category,
java.lang.String features)
category - the name of the categoryfeatures - the String representation of the feature lists (XIP
format)
XipNode.getDescendantsByCategory(String category)public java.util.Vector<XipLeaf> getLeaves()
public java.util.Vector<XipNode> getLeafNodes()
public java.lang.String getLanguage()
public java.lang.String getSentenceString()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean withFeature)
withFeature - if true build the string with the XipNode features
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||