|
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.types.ConnectorTypeImpl
edu.uci.isr.xarch.variants.VariantConnectorTypeImpl
DOM-Based implementation of the IVariantConnectorType interface.
| Field Summary | |
static String |
VARIANT_ELT_NAME
Tag name for variants in this object. |
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from class edu.uci.isr.xarch.types.ConnectorTypeImpl |
DESCRIPTION_ELT_NAME, elt, ID_ATTR_NAME, SIGNATURE_ELT_NAME, SUB_ARCHITECTURE_ELT_NAME, xArch |
| Fields inherited from interface edu.uci.isr.xarch.variants.IVariantConnectorType |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
VariantConnectorTypeImpl(Element elt)
|
|
| Method Summary | |
void |
addVariant(IVariant newVariant)
Add a variant to this VariantConnectorType. |
void |
addVariants(Collection variants)
Add a collection of variants to this VariantConnectorType. |
void |
clearVariants()
Remove all variants from this VariantConnectorType. |
IXArchElement |
cloneElement(int depth)
|
Collection |
getAllVariants()
Get all the variants from this VariantConnectorType. |
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. |
boolean |
hasAllVariants(Collection variantsToCheck)
Determine if this VariantConnectorType contains each element in the given set of variants. |
boolean |
hasVariant(IVariant variantToCheck)
Determine if this VariantConnectorType contains a given variant. |
Collection |
hasVariants(Collection variantsToCheck)
Determine if this VariantConnectorType contains the given set of variants. |
boolean |
isEquivalent(IVariantConnectorType c)
Determine if another VariantConnectorType is equivalent to this one, ignoring ID's. |
void |
removeVariant(IVariant variantToRemove)
Remove the given variant from this VariantConnectorType. |
void |
removeVariants(Collection variants)
Remove all the given variants from this VariantConnectorType. |
| Methods inherited from class edu.uci.isr.xarch.types.ConnectorTypeImpl |
addSignature, addSignatures, clearDescription, clearId, clearSignatures, clearSubArchitecture, equals, getAllSignatures, getDescription, getDOMNode, getId, getSignature, getSignatures, getSubArchitecture, getXArch, hasAllSignatures, hasDescription, hashCode, hasId, hasSignature, hasSignatures, hasSubArchitecture, isEqual, isEquivalent, removeSignature, removeSignatures, setDescription, setDOMNode, setId, setSubArchitecture, setXArch |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.uci.isr.xarch.types.IConnectorType |
addSignature, addSignatures, clearDescription, clearId, clearSignatures, clearSubArchitecture, getAllSignatures, getDescription, getId, getSignature, getSignatures, getSubArchitecture, hasAllSignatures, hasDescription, hasId, hasSignature, hasSignatures, hasSubArchitecture, isEqual, isEquivalent, removeSignature, removeSignatures, setDescription, setId, setSubArchitecture |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
getXArch, setXArch |
| Methods inherited from interface edu.uci.isr.xarch.DOMBased |
getDOMNode, setDOMNode |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
public static final String VARIANT_ELT_NAME
| Constructor Detail |
public VariantConnectorTypeImpl(Element elt)
| Method Detail |
protected static SequenceOrder getSequenceOrder()
public IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementcloneElement in class ConnectorTypeImplpublic XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementgetTypeMetadata in class ConnectorTypeImplpublic XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementgetInstanceMetadata in class ConnectorTypeImplpublic void addVariant(IVariant newVariant)
IVariantConnectorType
addVariant in interface IVariantConnectorTypenewVariant - variant to add.public void addVariants(Collection variants)
IVariantConnectorType
addVariants in interface IVariantConnectorTypevariants - variants to add.public void clearVariants()
IVariantConnectorType
clearVariants in interface IVariantConnectorTypepublic void removeVariant(IVariant variantToRemove)
IVariantConnectorTypeisEquivalent(...) function.
removeVariant in interface IVariantConnectorTypevariantToRemove - variant to remove.public void removeVariants(Collection variants)
IVariantConnectorTypeisEquivalent(...) function.
removeVariants in interface IVariantConnectorTypevariants - variant to remove.public Collection getAllVariants()
IVariantConnectorType
getAllVariants in interface IVariantConnectorTypepublic boolean hasVariant(IVariant variantToCheck)
IVariantConnectorType
hasVariant in interface IVariantConnectorTypetrue if this VariantConnectorType contains the given
variantToCheck, false otherwise.public Collection hasVariants(Collection variantsToCheck)
IVariantConnectorType
hasVariants in interface IVariantConnectorTypevariantsToCheck - variants to check for.
java.lang.Boolean. If the ith
element in variants 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 hasAllVariants(Collection variantsToCheck)
IVariantConnectorType
hasAllVariants in interface IVariantConnectorTypevariantsToCheck - variants to check for.
true if every element in
variants is found in this VariantConnectorType,
false otherwise.public boolean isEquivalent(IVariantConnectorType c)
IVariantConnectorType
isEquivalent in interface IVariantConnectorTypec - VariantConnectorType to compare to this one.
true if all the child elements of this
VariantConnectorType 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 | |||||||||