xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.variants
Class VariantImpl

java.lang.Object
  extended byedu.uci.isr.xarch.variants.VariantImpl
All Implemented Interfaces:
DOMBased, IVariant, IXArchElement

public class VariantImpl
extends Object
implements IVariant, DOMBased

DOM-Based implementation of the IVariant interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String GUARD_ELT_NAME
          Tag name for guards in this object.
static String VARIANT_TYPE_ELT_NAME
          Tag name for variantTypes in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.variants.IVariant
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
VariantImpl(Element elt)
           
 
Method Summary
 void clearGuard()
          Clear the guard from this Variant.
 void clearVariantType()
          Clear the variantType from this Variant.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 IGuard getGuard()
          Get the guard from this Variant.
 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.
 IXMLLink getVariantType()
          Get the variantType from this Variant.
 IXArch getXArch()
           
 boolean hasGuard(IGuard value)
          Determine if this Variant has the given guard
 int hashCode()
           
 boolean hasVariantType(IXMLLink value)
          Determine if this Variant has the given variantType
 boolean isEquivalent(IVariant c)
          Determine if another Variant is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setGuard(IGuard value)
          Set the guard for this Variant.
 void setVariantType(IXMLLink value)
          Set the variantType for this Variant.
 void setXArch(IXArch xArch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

xArch

protected IXArch xArch

GUARD_ELT_NAME

public static final String GUARD_ELT_NAME
Tag name for guards in this object.

See Also:
Constant Field Values

VARIANT_TYPE_ELT_NAME

public static final String VARIANT_TYPE_ELT_NAME
Tag name for variantTypes in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

VariantImpl

public VariantImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

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

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getTypeMetadata

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

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

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

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

setGuard

public void setGuard(IGuard value)
Description copied from interface: IVariant
Set the guard for this Variant.

Specified by:
setGuard in interface IVariant
Parameters:
value - new guard

clearGuard

public void clearGuard()
Description copied from interface: IVariant
Clear the guard from this Variant.

Specified by:
clearGuard in interface IVariant

getGuard

public IGuard getGuard()
Description copied from interface: IVariant
Get the guard from this Variant.

Specified by:
getGuard in interface IVariant
Returns:
guard

hasGuard

public boolean hasGuard(IGuard value)
Description copied from interface: IVariant
Determine if this Variant has the given guard

Specified by:
hasGuard in interface IVariant
Parameters:
value - guard to compare
Returns:
true if the guards are equivalent, false otherwise

setVariantType

public void setVariantType(IXMLLink value)
Description copied from interface: IVariant
Set the variantType for this Variant.

Specified by:
setVariantType in interface IVariant
Parameters:
value - new variantType

clearVariantType

public void clearVariantType()
Description copied from interface: IVariant
Clear the variantType from this Variant.

Specified by:
clearVariantType in interface IVariant

getVariantType

public IXMLLink getVariantType()
Description copied from interface: IVariant
Get the variantType from this Variant.

Specified by:
getVariantType in interface IVariant
Returns:
variantType

hasVariantType

public boolean hasVariantType(IXMLLink value)
Description copied from interface: IVariant
Determine if this Variant has the given variantType

Specified by:
hasVariantType in interface IVariant
Parameters:
value - variantType to compare
Returns:
true if the variantTypes are equivalent, false otherwise

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library