|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a member of an association. Members may
be typed by a single topic (the roleSpec property) and
are defined by zero or more topics.
Note that in this definition, members are
exclusively defined by Topic
s —
implementations must ensure that when processing
XTM
documents, the following rules are obeyed while parsing a
<member>
element:
<member>
element has one or more
child <topicRef>
elements,
the topic(s) referenced by that topic reference shall be added
to the member's set of players.<member>
element has one or more
child <subjectIndicatorRef>
elements,
the topic(s) reifying the referenced subject(s)
shall be added to the member's set of players; if no such topics are yet
available in the topic map, they must be created first.<member>
element has one or more
child <resourceRef>
elements,
the topic(s) reifying the referenced resource(s)
shall be added to the member's set of players; if no such topics are yet
available in the topic map, they must be created first.
Topic.addSubjectIndicator(org.tm4j.net.Locator)
,
Topic.setSubjectIndicators(org.tm4j.net.Locator[])
,
Topic.setSubject(org.tm4j.net.Locator)
Method Summary | |
void |
addPlayer(Topic player)
Adds a topic as a player, meaning one of the topics that define this member. |
Association |
getParent()
Returns the association to which the Member belongs. |
java.util.Collection |
getPlayers()
Returns an unmodifiable collection of the Topics which are players of this Member. |
Topic |
getRoleSpec()
Returns the topic which defines the type of this Member. |
void |
removePlayer(Topic player)
Removes the specified topic from the list of players of this Member object. |
void |
setPlayers(Topic[] players)
Sets the collection of Topics which are players of this Member. |
void |
setRoleSpec(Topic roleSpec)
Sets the topic which defines the type of this Member. |
Method Detail |
public Association getParent()
null
if the member is currently not part of any association.public Topic getRoleSpec()
public void setRoleSpec(Topic roleSpec) throws java.beans.PropertyVetoException
roleSpec
- the new role-defining topic of this member.
java.beans.PropertyVetoException
public void addPlayer(Topic player) throws java.beans.PropertyVetoException
player
- the topic to be added to the set of topics
that define this member.
java.beans.PropertyVetoException
public void removePlayer(Topic player) throws java.beans.PropertyVetoException
player
- the topic to be removed from the set of topics
that define this member.
java.beans.PropertyVetoException
public java.util.Collection getPlayers()
Topic
s that define
this member.
If no players are currently defined for this
member, the returned collection is empty;
it is never null
.public void setPlayers(Topic[] players) throws java.beans.PropertyVetoException
players
- the new set of topics to define
this member. If this is null
,
all the existing players of this member
are removed.
java.beans.PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |