xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.implementation
Class InterfaceTypeImplImpl

java.lang.Object
  extended byedu.uci.isr.xarch.types.InterfaceTypeImpl
      extended byedu.uci.isr.xarch.implementation.InterfaceTypeImplImpl
All Implemented Interfaces:
DOMBased, IInterfaceType, IInterfaceTypeImpl, IXArchElement
Direct Known Subclasses:
InterfaceTypeImplVersImpl

public class InterfaceTypeImplImpl
extends InterfaceTypeImpl
implements IInterfaceTypeImpl, IInterfaceType, DOMBased

DOM-Based implementation of the IInterfaceTypeImpl interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String IMPLEMENTATION_ELT_NAME
          Tag name for implementations in this object.
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from class edu.uci.isr.xarch.types.InterfaceTypeImpl
DESCRIPTION_ELT_NAME, elt, ID_ATTR_NAME, xArch
 
Fields inherited from interface edu.uci.isr.xarch.implementation.IInterfaceTypeImpl
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
InterfaceTypeImplImpl(Element elt)
           
 
Method Summary
 void addImplementation(IImplementation newImplementation)
          Add a implementation to this InterfaceTypeImpl.
 void addImplementations(Collection implementations)
          Add a collection of implementations to this InterfaceTypeImpl.
 void clearImplementations()
          Remove all implementations from this InterfaceTypeImpl.
 IXArchElement cloneElement(int depth)
           
 Collection getAllImplementations()
          Get all the implementations from this InterfaceTypeImpl.
 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 hasAllImplementations(Collection implementationsToCheck)
          Determine if this InterfaceTypeImpl contains each element in the given set of implementations.
 boolean hasImplementation(IImplementation implementationToCheck)
          Determine if this InterfaceTypeImpl contains a given implementation.
 Collection hasImplementations(Collection implementationsToCheck)
          Determine if this InterfaceTypeImpl contains the given set of implementations.
 boolean isEquivalent(IInterfaceTypeImpl c)
          Determine if another InterfaceTypeImpl is equivalent to this one, ignoring ID's.
 void removeImplementation(IImplementation implementationToRemove)
          Remove the given implementation from this InterfaceTypeImpl.
 void removeImplementations(Collection implementations)
          Remove all the given implementations from this InterfaceTypeImpl.
 
Methods inherited from class edu.uci.isr.xarch.types.InterfaceTypeImpl
clearDescription, clearId, equals, getDescription, getDOMNode, getId, getXArch, hasDescription, hashCode, hasId, isEqual, isEquivalent, setDescription, setDOMNode, setId, 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.IInterfaceType
clearDescription, clearId, getDescription, getId, hasDescription, hasId, isEqual, isEquivalent, setDescription, setId
 
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

IMPLEMENTATION_ELT_NAME

public static final String IMPLEMENTATION_ELT_NAME
Tag name for implementations in this object.

See Also:
Constant Field Values
Constructor Detail

InterfaceTypeImplImpl

public InterfaceTypeImplImpl(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 InterfaceTypeImpl

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 InterfaceTypeImpl

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 InterfaceTypeImpl

addImplementation

public void addImplementation(IImplementation newImplementation)
Description copied from interface: IInterfaceTypeImpl
Add a implementation to this InterfaceTypeImpl.

Specified by:
addImplementation in interface IInterfaceTypeImpl
Parameters:
newImplementation - implementation to add.

addImplementations

public void addImplementations(Collection implementations)
Description copied from interface: IInterfaceTypeImpl
Add a collection of implementations to this InterfaceTypeImpl.

Specified by:
addImplementations in interface IInterfaceTypeImpl
Parameters:
implementations - implementations to add.

clearImplementations

public void clearImplementations()
Description copied from interface: IInterfaceTypeImpl
Remove all implementations from this InterfaceTypeImpl.

Specified by:
clearImplementations in interface IInterfaceTypeImpl

removeImplementation

public void removeImplementation(IImplementation implementationToRemove)
Description copied from interface: IInterfaceTypeImpl
Remove the given implementation from this InterfaceTypeImpl. Matching is done by the isEquivalent(...) function.

Specified by:
removeImplementation in interface IInterfaceTypeImpl
Parameters:
implementationToRemove - implementation to remove.

removeImplementations

public void removeImplementations(Collection implementations)
Description copied from interface: IInterfaceTypeImpl
Remove all the given implementations from this InterfaceTypeImpl. Matching is done by the isEquivalent(...) function.

Specified by:
removeImplementations in interface IInterfaceTypeImpl
Parameters:
implementations - implementation to remove.

getAllImplementations

public Collection getAllImplementations()
Description copied from interface: IInterfaceTypeImpl
Get all the implementations from this InterfaceTypeImpl.

Specified by:
getAllImplementations in interface IInterfaceTypeImpl
Returns:
all implementations in this InterfaceTypeImpl.

hasImplementation

public boolean hasImplementation(IImplementation implementationToCheck)
Description copied from interface: IInterfaceTypeImpl
Determine if this InterfaceTypeImpl contains a given implementation.

Specified by:
hasImplementation in interface IInterfaceTypeImpl
Returns:
true if this InterfaceTypeImpl contains the given implementationToCheck, false otherwise.

hasImplementations

public Collection hasImplementations(Collection implementationsToCheck)
Description copied from interface: IInterfaceTypeImpl
Determine if this InterfaceTypeImpl contains the given set of implementations.

Specified by:
hasImplementations in interface IInterfaceTypeImpl
Parameters:
implementationsToCheck - implementations to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in implementations 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.

hasAllImplementations

public boolean hasAllImplementations(Collection implementationsToCheck)
Description copied from interface: IInterfaceTypeImpl
Determine if this InterfaceTypeImpl contains each element in the given set of implementations.

Specified by:
hasAllImplementations in interface IInterfaceTypeImpl
Parameters:
implementationsToCheck - implementations to check for.
Returns:
true if every element in implementations is found in this InterfaceTypeImpl, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library