|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xtm.XtmNode
org.ceryle.xtm.XtmScope
public class XtmScope
Defines a topic map scope, such that instances of this class are objects containing the features of XTM scopes, designed to assist in building in-memory representations via the XtmProcessor class. XtmScope objects are not representations of XTM <scope> Elements.
| Field Summary | |
|---|---|
static String |
UNCONSTRAINED_SCOPE
A String constant indicating the unconstrained scope. |
| Fields inherited from class org.ceryle.xtm.XtmNode |
|---|
ASSOCIATION_NODE, BASENAME_NODE, BASENAMESTRING_NODE, COMMENT_NODE, DOCUMENT_NODE, GrpSep, GRPSEP, id, INSTANCEOF_NODE, MEMBER_NODE, MERGEMAP_NODE, NODE, NonType, NONTYPE, OCCURRENCE_NODE, PARAMETERS_NODE, PROCESSING_INSTRUCTION_NODE, RecSep, RECSEP, REFERENCE_NODE, RESOURCEDATA_NODE, RESOURCEREF_NODE, ROLESPEC_NODE, SCOPE_NODE, SUBJECTIDENTITY_NODE, SUBJECTINDICATORREF_NODE, TOPIC_NODE, TOPICMAP_NODE, TOPICREF_NODE, VARIANT_NODE, VARIANTNAME_NODE |
| Constructor Summary | |
|---|---|
XtmScope()
Default constructor. |
|
XtmScope(Collection xrefs)
Constructor with Collection xrefs containing one or more XtmReference objects indicating the scope. |
|
XtmScope(String id)
Constructor with String id. |
|
XtmScope(URL url)
Constructor providing the URI to be used as the xlink:href value of a <topicRef> Element for this XtmScope. |
|
XtmScope(XtmReference xref)
Constructor with a XtmReference xref indicating the scope. |
|
| Method Summary | |
|---|---|
void |
addReference(XtmReference xref)
Adds the XtmReference xref to the topic references in this XtmScope. |
void |
addScope(XtmScope newscope)
Adds the XtmReference objects contained with the supplied XtmScope scope to this XtmScope (effectively, a merge). |
int |
compareTo(Object o)
Compares the hash of this XtmScope with the provided Object for order. |
boolean |
containsReference(XtmReference xref)
Returns true if any of this XtmScope's references has a URI matching that of the provided xref, false if not (or if this XtmScope has no references). |
String |
getHash()
Return an int hashcode generated from this XtmScope's XtmReferences. |
String |
getName()
Returns a String containing the name of this XTM element type. |
short |
getNodeType()
A short integer indicating what type of node this is. |
Collection |
getReferences()
Returns a Collection containing the XtmReference objects of this XtmScope. |
Iterator |
getScope()
Returns an Iterator containing the XtmReference objects of this XtmScope. |
| Methods inherited from class org.ceryle.xtm.XtmNode |
|---|
addPI, getID, getPI, getPIs, hasNext, next, remove, removePI, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UNCONSTRAINED_SCOPE
| Constructor Detail |
|---|
public XtmScope()
throws XtmException
XtmException
public XtmScope(String id)
throws XtmException
XtmException
public XtmScope(URL url)
throws XtmException
XtmException
public XtmScope(XtmReference xref)
throws XtmException
XtmException
public XtmScope(Collection xrefs)
throws XtmException
XtmException| Method Detail |
|---|
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNodepublic Iterator getScope()
public Collection getReferences()
public boolean containsReference(XtmReference xref)
public void addScope(XtmScope newscope)
public void addReference(XtmReference xref)
public String getHash()
public int compareTo(Object o)
compareTo in interface Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||