|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.instance.GroupImpl
DOM-Based implementation of the IGroup interface.
| Field Summary | |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
MEMBER_ELT_NAME
Tag name for members in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.instance.IGroup |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
GroupImpl(Element elt)
|
|
| Method Summary | |
void |
addMember(IXMLLink newMember)
Add a member to this Group. |
void |
addMembers(Collection members)
Add a collection of members to this Group. |
void |
clearDescription()
Clear the description from this Group. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearMembers()
Remove all members from this Group. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllMembers()
Get all the members from this Group. |
IDescription |
getDescription()
Get the description from this Group. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllMembers(Collection membersToCheck)
Determine if this Group contains each element in the given set of members. |
boolean |
hasDescription(IDescription value)
Determine if this Group has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasMember(IXMLLink memberToCheck)
Determine if this Group contains a given member. |
Collection |
hasMembers(Collection membersToCheck)
Determine if this Group contains the given set of members. |
boolean |
isEqual(IGroup GroupToCheck)
Determine if another Group has the same id as this one. |
boolean |
isEquivalent(IGroup c)
Determine if another Group is equivalent to this one, ignoring ID's. |
void |
removeMember(IXMLLink memberToRemove)
Remove the given member from this Group. |
void |
removeMembers(Collection members)
Remove all the given members from this Group. |
void |
setDescription(IDescription value)
Set the description for this Group. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setId(String id)
Set the id attribute on this object. |
void |
setXArch(IXArch xArch)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String MEMBER_ELT_NAME
protected Element elt
| Constructor Detail |
public GroupImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setId(String id)
setId in interface IGroupid - attribute value.public void clearId()
clearId in interface IGrouppublic String getId()
getId in interface IGroupnull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IGroupid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IGroup
setDescription in interface IGroupvalue - new descriptionpublic void clearDescription()
IGroup
clearDescription in interface IGrouppublic IDescription getDescription()
IGroup
getDescription in interface IGrouppublic boolean hasDescription(IDescription value)
IGroup
hasDescription in interface IGroupvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addMember(IXMLLink newMember)
IGroup
addMember in interface IGroupnewMember - member to add.public void addMembers(Collection members)
IGroup
addMembers in interface IGroupmembers - members to add.public void clearMembers()
IGroup
clearMembers in interface IGrouppublic void removeMember(IXMLLink memberToRemove)
IGroupisEquivalent(...) function.
removeMember in interface IGroupmemberToRemove - member to remove.public void removeMembers(Collection members)
IGroupisEquivalent(...) function.
removeMembers in interface IGroupmembers - member to remove.public Collection getAllMembers()
IGroup
getAllMembers in interface IGrouppublic boolean hasMember(IXMLLink memberToCheck)
IGroup
hasMember in interface IGrouptrue if this Group contains the given
memberToCheck, false otherwise.public Collection hasMembers(Collection membersToCheck)
IGroup
hasMembers in interface IGroupmembersToCheck - members to check for.
java.lang.Boolean. If the ith
element in members was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllMembers(Collection membersToCheck)
IGroup
hasAllMembers in interface IGroupmembersToCheck - members to check for.
true if every element in
members is found in this Group,
false otherwise.public boolean isEqual(IGroup GroupToCheck)
IGroup
isEqual in interface IGroupGroupToCheck - Group to compare with this
one.public boolean isEquivalent(IGroup c)
IGroup
isEquivalent in interface IGroupc - Group to compare to this one.
true if all the child elements of this
Group are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||