xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.variants
Class VariantConnectorTypeImpl

java.lang.Object
  extended byedu.uci.isr.xarch.types.ConnectorTypeImpl
      extended byedu.uci.isr.xarch.variants.VariantConnectorTypeImpl
All Implemented Interfaces:
DOMBased, IConnectorType, IVariantConnectorType, IXArchElement
Direct Known Subclasses:
VariantConnectorTypeImplImpl

public class VariantConnectorTypeImpl
extends ConnectorTypeImpl
implements IVariantConnectorType, IConnectorType, DOMBased

DOM-Based implementation of the IVariantConnectorType interface.

Author:
Automatically generated by xArch apigen.

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

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

VARIANT_ELT_NAME

public static final String VARIANT_ELT_NAME
Tag name for variants in this object.

See Also:
Constant Field Values
Constructor Detail

VariantConnectorTypeImpl

public VariantConnectorTypeImpl(Element elt)
Method Detail

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement
Overrides:
cloneElement in class ConnectorTypeImpl

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchElement
Overrides:
getTypeMetadata in class ConnectorTypeImpl

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Overrides:
getInstanceMetadata in class ConnectorTypeImpl

addVariant

public void addVariant(IVariant newVariant)
Description copied from interface: IVariantConnectorType
Add a variant to this VariantConnectorType.

Specified by:
addVariant in interface IVariantConnectorType
Parameters:
newVariant - variant to add.

addVariants

public void addVariants(Collection variants)
Description copied from interface: IVariantConnectorType
Add a collection of variants to this VariantConnectorType.

Specified by:
addVariants in interface IVariantConnectorType
Parameters:
variants - variants to add.

clearVariants

public void clearVariants()
Description copied from interface: IVariantConnectorType
Remove all variants from this VariantConnectorType.

Specified by:
clearVariants in interface IVariantConnectorType

removeVariant

public void removeVariant(IVariant variantToRemove)
Description copied from interface: IVariantConnectorType
Remove the given variant from this VariantConnectorType. Matching is done by the isEquivalent(...) function.

Specified by:
removeVariant in interface IVariantConnectorType
Parameters:
variantToRemove - variant to remove.

removeVariants

public void removeVariants(Collection variants)
Description copied from interface: IVariantConnectorType
Remove all the given variants from this VariantConnectorType. Matching is done by the isEquivalent(...) function.

Specified by:
removeVariants in interface IVariantConnectorType
Parameters:
variants - variant to remove.

getAllVariants

public Collection getAllVariants()
Description copied from interface: IVariantConnectorType
Get all the variants from this VariantConnectorType.

Specified by:
getAllVariants in interface IVariantConnectorType
Returns:
all variants in this VariantConnectorType.

hasVariant

public boolean hasVariant(IVariant variantToCheck)
Description copied from interface: IVariantConnectorType
Determine if this VariantConnectorType contains a given variant.

Specified by:
hasVariant in interface IVariantConnectorType
Returns:
true if this VariantConnectorType contains the given variantToCheck, false otherwise.

hasVariants

public Collection hasVariants(Collection variantsToCheck)
Description copied from interface: IVariantConnectorType
Determine if this VariantConnectorType contains the given set of variants.

Specified by:
hasVariants in interface IVariantConnectorType
Parameters:
variantsToCheck - variants to check for.
Returns:
Collection of 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.

hasAllVariants

public boolean hasAllVariants(Collection variantsToCheck)
Description copied from interface: IVariantConnectorType
Determine if this VariantConnectorType contains each element in the given set of variants.

Specified by:
hasAllVariants in interface IVariantConnectorType
Parameters:
variantsToCheck - variants to check for.
Returns:
true if every element in variants is found in this VariantConnectorType, false otherwise.

isEquivalent

public boolean isEquivalent(IVariantConnectorType c)
Description copied from interface: IVariantConnectorType
Determine if another VariantConnectorType is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IVariantConnectorType
Parameters:
c - VariantConnectorType to compare to this one.
Returns:
true if all the child elements of this VariantConnectorType are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library