|
|||||||||
| 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.XtmParameters
public class XtmParameters
Defines a base name parameter, such that instances of this class are objects representing a collection of XTM parameters. XtmParameters are not representations of XML <parameters> Elements.
Note that this class does not support IDs on parameters.
| Field Summary |
|---|
| 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 | |
|---|---|
XtmParameters(String uri)
Constructor with no provided ID, but including the URI to be used as the xlink:href value of a <topicRef> or a <subjectIndicatorRef> Element, depending on if the URI begins with "#" (i.e., in internal topic reference or not). |
|
XtmParameters(TreeSet xreferences)
Constructor with a TreeSet xrefs containing one or more XtmReference objects indicating the parameters of a variant. |
|
XtmParameters(XtmReference xref)
Constructor with an XtmReference xref indicating the parameters of a variant. |
|
| Method Summary | |
|---|---|
void |
addReference(XtmReference xref)
Adds the XtmReference xref to the topic references in this XtmParameters. |
int |
compareTo(Object o)
Compares the hash of this XtmParameters with the provided Object for order. |
String |
getHash()
Return an int hashcode generated from this XtmParameters'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. |
Iterator |
getParameters()
Returns an Iterator containing the XtmReferences of this XtmParameters object, null if undefined. |
boolean |
hasParameter(XtmReference xref)
Return true if an XtmReference object is found amongst the parameters of this XtmParameters having a URI string matching the one provided. |
int |
size()
Returns the number of XtmReferences contained in this XtmParameters. |
| 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 |
| Constructor Detail |
|---|
public XtmParameters(String uri)
public XtmParameters(XtmReference xref)
public XtmParameters(TreeSet xreferences)
| Method Detail |
|---|
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNodepublic Iterator getParameters()
public boolean hasParameter(XtmReference xref)
public void addReference(XtmReference xref)
public int size()
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 | ||||||||