Package com.tietoenator.trip.jxp.ccl
Class TdbTreeEntry
java.lang.Object
com.tietoenator.trip.jxp.ccl.TdbTreeEntry
- All Implemented Interfaces:
com.tietoenator.trip.jxp.internal.utils.DOMSink
Terms in a TdbTermTree are of type TdbTreeEntry. Terms in the tree are initially
read from the incoming XML message and are stored using names only. Once the
tree has been fully deserialized, the TdbTermTree object organizes its
available TdbTreeEntry objects into a real (forest of) tree(s).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the list of terms, by name, that are more specific than this termchildren()
Retrieve the collection of more specific concepts of which this term is a generalizationRetrieve any comment, or scope note, defined for this termint
getLevel()
ObsoletegetName()
Retrieve the name of the termRetrieve a normalized form of the term, this is useful when requiring a canonical form for comparison purposes, i.e.boolean
Check if the term has narrower (more specialized) termsboolean
Check if the term has broader (more general) termsboolean
Check if the term has non-hierarchical relationships established, typically between peers or siblings, although this is not enforced.boolean
Check if this term has synonyms defined, i.e.Retrieve the list of terms, by name, that are more generic than this termparents()
Retrieve the collection of more general concepts of which this term is a part.Retrieve the collection of related terms, by nameRetrieve the collection of related termssynonyms()
Retrieve the collection of terms, by name, defined as synonyms of this term
-
Constructor Details
-
TdbTreeEntry
public TdbTreeEntry()
-
-
Method Details
-
getLevel
public int getLevel()Obsolete- Returns:
- TRIP's assigned level ID -- obsolete
-
getName
Retrieve the name of the term- Returns:
- The name of the term
-
getNormalizedName
Retrieve a normalized form of the term, this is useful when requiring a canonical form for comparison purposes, i.e. case insensitive, punctuation neutral, etc.- Returns:
- The normalized form of the term
-
hasParents
public boolean hasParents()Check if the term has broader (more general) terms- Returns:
- true if the term is part of a more general concept
-
parents
Retrieve the collection of more general concepts of which this term is a part.- Returns:
- The collection of parent, or more general, concepts
-
parentNames
Retrieve the list of terms, by name, that are more generic than this term- Returns:
- The list of parent, or more generic, terms
-
hasChildren
public boolean hasChildren()Check if the term has narrower (more specialized) terms- Returns:
- true if the term is a generalization of more specific terms
-
children
Retrieve the collection of more specific concepts of which this term is a generalization- Returns:
- The collection of child, or more specific, concepts
-
childNames
Retrieve the list of terms, by name, that are more specific than this term- Returns:
- The list of child, or more specific, terms
-
hasRelations
public boolean hasRelations()Check if the term has non-hierarchical relationships established, typically between peers or siblings, although this is not enforced.- Returns:
- true if the term has relationships defined
-
relations
Retrieve the collection of related terms- Returns:
- The collection of related terms
-
relationNames
Retrieve the collection of related terms, by name- Returns:
- The collection of related terms, by name
-
hasSynonyms
public boolean hasSynonyms()Check if this term has synonyms defined, i.e. terms that are not part of the tree but are usable in place of this term- Returns:
- true if the term has synonyms defined
-
synonyms
Retrieve the collection of terms, by name, defined as synonyms of this term- Returns:
- The collection of synonyms
-
getComment
Retrieve any comment, or scope note, defined for this term- Returns:
- The comment (if any)
-