|
|||||||||
| 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.XtmMember
public class XtmMember
Defines a topic association member, such that instances of this class are objects representing members of XTM associations, designed to assist in building in-memory representations via the XtmProcessor class. XtmMembers do not represent of XTM <member> Elements.
Note that the XTM 1.0 Specification allows member to be optional.
XtmNode| 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 | |
|---|---|
XtmMember()
Default constructor. |
|
XtmMember(String id)
XtmMember constructor with a provided ID. |
|
XtmMember(String id,
XtmReference roleSpec,
XtmReference member)
XtmMember constructor with provided ID, and XtmReferences for role and member. |
|
XtmMember(XtmReference member)
XtmMember constructor with XtmReference for member. |
|
XtmMember(XtmReference roleSpec,
XtmReference member)
XtmMember constructor with XtmReferences for role and member. |
|
XtmMember(XtmReference roleSpec,
XtmTopic member)
XtmMember constructor with XtmReference for role and an XtmTopic as member. |
|
| Method Summary | |
|---|---|
void |
addMember(XtmReference member)
Adds the XtmReference member to the member topics of this XtmMember. |
String |
getHash()
Returns a String that identifies this XtmMember by all of its characteristics. |
Iterator |
getMembers()
Returns an Iterator containing the XtmReference objects contained within this XtmMember, null if undefined. |
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. |
XtmReference |
getRoleSpec()
Returns the XtmReference object indicating the role specification of this XtmMember, null if undefined. |
void |
setRoleSpec(XtmReference roleSpec)
Sets the role specification of this XtmMember to the XtmReference roleSpec. |
| 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 XtmMember()
throws XtmException
XtmException
public XtmMember(String id)
throws XtmException
id - the ID of the XtmMember.
XtmException - if the provided ID is invalid.
public XtmMember(XtmReference member)
throws XtmException
member - the XtmReference serving as the association member.
XtmException - if the provided ID is invalid.
public XtmMember(XtmReference roleSpec,
XtmReference member)
throws XtmException
roleSpec - the XtmReference serving as the role specification.member - the XtmReference serving as the association member.
XtmException - if the provided ID is invalid.
public XtmMember(XtmReference roleSpec,
XtmTopic member)
throws XtmException
roleSpec - the XtmReference serving as the role specification.member - the XtmTopic serving as the association member.
XtmException - if the provided ID is invalid.
public XtmMember(String id,
XtmReference roleSpec,
XtmReference member)
throws XtmException
id - the ID of the XtmMember.roleSpec - the XtmReference serving as the role specification.member - the XtmReference serving as the association member.
XtmException - if the provided ID is invalid.| Method Detail |
|---|
public String getName()
getName in class XtmNodepublic short getNodeType()
getNodeType in class XtmNodepublic void setRoleSpec(XtmReference roleSpec)
public XtmReference getRoleSpec()
public void addMember(XtmReference member)
throws XtmException
XtmException - if the provided ID is invalid.public Iterator getMembers()
public String getHash()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||