|
|||||||||
| 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.XtmAssociation
public class XtmAssociation
Defines a topic association, such that instances of this class are objects containing the features of XTM associations, designed to assist in building in-memory representations via the XtmProcessor class. XtmAssociation objects do not represent XTM <association> Elements.
| 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 | |
|---|---|
XtmAssociation()
XtmAssociation constructor. |
|
XtmAssociation(String id)
XtmAssociation constructor with ID. |
|
XtmAssociation(String id,
XtmReference xref)
XtmAssociation constructor with ID and an XtmReference xref, serving as the type of this association. |
|
| Method Summary | |
|---|---|
void |
addMember(XtmMember member)
Add an XtmMember member to the members of this XtmAssociation. |
void |
addScope(XtmReference xref)
Add an XtmReference xref as a scope of this XtmAssociation. |
void |
addScope(XtmScope scope)
Add the XtmReference objects of the supplied XtmScope scope as
the scope of this XtmAssociation. |
String |
getHash()
Returns a String that identifies this XtmAssociation by all of its characteristics. |
int |
getMemberCount()
Returns the number of XtmMember objects of this XtmAssociation. |
Iterator |
getMembers()
Returns an iterator of XtmMember objects each indicating a member of this XtmAssociation, or null if none have exist. |
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. |
XtmScope |
getScope()
Returns the XtmScope object indicating the scope of this XtmAssociation. |
XtmReference |
getType()
Returns the XtmReference indicating a type to which this XtmAssociation belongs, or null if this has not been set. |
void |
setType(XtmReference xref)
Sets the XtmReference xref as the type to which this XtmAssociation belongs. |
| 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 XtmAssociation()
throws XtmException
XtmException
public XtmAssociation(String id)
throws XtmException
XtmException
public XtmAssociation(String id,
XtmReference xref)
throws XtmException
XtmException| Method Detail |
|---|
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNode
public void setType(XtmReference xref)
throws XtmException
xref as the type to which this XtmAssociation belongs.
The type shows up in XML syntax as the content of an <instanceOf>
Element.
xref - the XtmReference serving as the type of this XtmAssociation.
XtmException - if type has already been set.public XtmReference getType()
public void addScope(XtmReference xref)
throws XtmException
xref as a scope of this XtmAssociation.
XtmException
public void addScope(XtmScope scope)
throws XtmException
scope as
the scope of this XtmAssociation.
XtmExceptionpublic XtmScope getScope()
public void addMember(XtmMember member)
member to the members of this XtmAssociation.
public int getMemberCount()
public Iterator getMembers()
public String getHash()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||