|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.princeton.wordnet.ejb.NodeFactory
class NodeFactory
DOM node factory
Constructor Summary | |
---|---|
NodeFactory()
|
Method Summary | |
---|---|
static void |
makeAttribute(org.w3c.dom.Element thisNode,
java.lang.String thisName,
java.lang.String thisValue)
Build node attribute |
static org.w3c.dom.Node |
makeLexDomainNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisValue)
Make lexdomain node |
static org.w3c.dom.Node |
makeLinkNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisLinkType,
int thisLevel)
Make link node |
static org.w3c.dom.Node |
makeMoreLinkNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisLinkType,
int thisLevel)
Make 'more' link node (when recursiveness is broken and result is truncated) |
static org.w3c.dom.Element |
makeNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisName,
java.lang.String thisText)
Make versatile node |
static org.w3c.dom.Node |
makePosNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisValue)
Make part-of-speech node |
static org.w3c.dom.Node |
makeRootNode(org.w3c.dom.Document thisDoc,
java.lang.String thisWord)
Make root node |
static org.w3c.dom.Node |
makeSenseNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
int thisSenseIdx)
Make sense node |
static org.w3c.dom.Element |
makeSynsetNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
int thisSize,
long thisId)
Make synset node |
static org.w3c.dom.Node |
makeWordNode(org.w3c.dom.Document thisDoc,
org.w3c.dom.Node thisParent,
java.lang.String thisWord,
long thisId)
Make word (synset item) node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NodeFactory()
Method Detail |
---|
public static org.w3c.dom.Element makeNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisName, java.lang.String thisText)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisName
- is the node's tag namethisText
- is the node's text content
public static void makeAttribute(org.w3c.dom.Element thisNode, java.lang.String thisName, java.lang.String thisValue)
thisNode
- is the node to set attribute forthisName
- is the attribute's namethisValue
- is the attribute's valuepublic static org.w3c.dom.Node makeRootNode(org.w3c.dom.Document thisDoc, java.lang.String thisWord)
thisDoc
- is the DOM Document being builtthisWord
- is the target word
public static org.w3c.dom.Node makePosNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisValue)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisValue
- is the part-of-speech
public static org.w3c.dom.Node makeLexDomainNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisValue)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisValue
-
public static org.w3c.dom.Node makeSenseNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, int thisSenseIdx)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisSenseIdx
- is the sense index
public static org.w3c.dom.Element makeSynsetNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, int thisSize, long thisId)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisSize
- is the synset's size (the number of words in the synset)thisId
- is the synset's id in the database
public static org.w3c.dom.Node makeWordNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisWord, long thisId)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisWord
- is the target wordthisId
- is the word id
public static org.w3c.dom.Node makeLinkNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisLinkType, int thisLevel)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisLinkType
- is the link typethisLevel
- is the recursion level
public static org.w3c.dom.Node makeMoreLinkNode(org.w3c.dom.Document thisDoc, org.w3c.dom.Node thisParent, java.lang.String thisLinkType, int thisLevel)
thisDoc
- is the DOM Document being builtthisParent
- is the parent node to attach this node tothisLinkType
- is the link typethisLevel
- is the recursion level
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |