xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.types
Interface IConnectorType

All Superinterfaces:
IXArchElement
All Known Subinterfaces:
IVariantConnectorType, IVariantConnectorTypeImpl, IVariantConnectorTypeImplVers, IVariantConnectorTypeImplVersSpec
All Known Implementing Classes:
ConnectorTypeImpl, VariantConnectorTypeImpl, VariantConnectorTypeImplImpl, VariantConnectorTypeImplVersImpl, VariantConnectorTypeImplVersSpecImpl

public interface IConnectorType
extends IXArchElement

Interface for accessing objects of the ConnectorType xsi:type in the types namespace.

Author:
Automatically generated by xArch apigen

Field Summary
static XArchTypeMetadata TYPE_METADATA
           
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Method Summary
 void addSignature(ISignature newSignature)
          Add a signature to this ConnectorType.
 void addSignatures(Collection signatures)
          Add a collection of signatures to this ConnectorType.
 void clearDescription()
          Clear the description from this ConnectorType.
 void clearId()
          Remove the id attribute from this ConnectorType.
 void clearSignatures()
          Remove all signatures from this ConnectorType.
 void clearSubArchitecture()
          Clear the subArchitecture from this ConnectorType.
 Collection getAllSignatures()
          Get all the signatures from this ConnectorType.
 IDescription getDescription()
          Get the description from this ConnectorType.
 String getId()
          Get the id attribute from this ConnectorType.
 ISignature getSignature(String id)
          Gets the signature from this ConnectorType with the given id.
 Collection getSignatures(Collection ids)
          Gets the signatures from this ConnectorType with the given ids.
 ISubArchitecture getSubArchitecture()
          Get the subArchitecture from this ConnectorType.
 boolean hasAllSignatures(Collection signaturesToCheck)
          Determine if this ConnectorType contains each element in the given set of signatures.
 boolean hasDescription(IDescription descriptionToCheck)
          Determine if this ConnectorType has the given description
 boolean hasId(String id)
          Determine if the id attribute on this ConnectorType has the given value.
 boolean hasSignature(ISignature signatureToCheck)
          Determine if this ConnectorType contains a given signature.
 Collection hasSignatures(Collection signaturesToCheck)
          Determine if this ConnectorType contains the given set of signatures.
 boolean hasSubArchitecture(ISubArchitecture subArchitectureToCheck)
          Determine if this ConnectorType has the given subArchitecture
 boolean isEqual(IConnectorType ConnectorTypeToCheck)
          Determine if another ConnectorType has the same id as this one.
 boolean isEquivalent(IConnectorType ConnectorTypeToCheck)
          Determine if another ConnectorType is equivalent to this one, ignoring ID's.
 void removeSignature(ISignature signatureToRemove)
          Remove the given signature from this ConnectorType.
 void removeSignatures(Collection signatures)
          Remove all the given signatures from this ConnectorType.
 void setDescription(IDescription value)
          Set the description for this ConnectorType.
 void setId(String id)
          Set the id attribute on this ConnectorType.
 void setSubArchitecture(ISubArchitecture value)
          Set the subArchitecture for this ConnectorType.
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch
 

Field Detail

TYPE_METADATA

public static final XArchTypeMetadata TYPE_METADATA
Method Detail

setId

public void setId(String id)
Set the id attribute on this ConnectorType.

Parameters:
id - id
Throws:
FixedValueException - if the attribute has a fixed value and the value passed is not the fixed value.

clearId

public void clearId()
Remove the id attribute from this ConnectorType.


getId

public String getId()
Get the id attribute from this ConnectorType. if the attribute has a fixed value, this function will return that fixed value, even if it is not actually present in the XML document.

Returns:
id on this ConnectorType

hasId

public boolean hasId(String id)
Determine if the id attribute on this ConnectorType has the given value.

Parameters:
id - Attribute value to compare
Returns:
true if they match; false otherwise.

setDescription

public void setDescription(IDescription value)
Set the description for this ConnectorType.

Parameters:
value - new description

clearDescription

public void clearDescription()
Clear the description from this ConnectorType.


getDescription

public IDescription getDescription()
Get the description from this ConnectorType.

Returns:
description

hasDescription

public boolean hasDescription(IDescription descriptionToCheck)
Determine if this ConnectorType has the given description

Parameters:
descriptionToCheck - description to compare
Returns:
true if the descriptions are equivalent, false otherwise

addSignature

public void addSignature(ISignature newSignature)
Add a signature to this ConnectorType.

Parameters:
newSignature - signature to add.

addSignatures

public void addSignatures(Collection signatures)
Add a collection of signatures to this ConnectorType.

Parameters:
signatures - signatures to add.

clearSignatures

public void clearSignatures()
Remove all signatures from this ConnectorType.


removeSignature

public void removeSignature(ISignature signatureToRemove)
Remove the given signature from this ConnectorType. Matching is done by the isEquivalent(...) function.

Parameters:
signatureToRemove - signature to remove.

removeSignatures

public void removeSignatures(Collection signatures)
Remove all the given signatures from this ConnectorType. Matching is done by the isEquivalent(...) function.

Parameters:
signatures - signature to remove.

getAllSignatures

public Collection getAllSignatures()
Get all the signatures from this ConnectorType.

Returns:
all signatures in this ConnectorType.

hasSignature

public boolean hasSignature(ISignature signatureToCheck)
Determine if this ConnectorType contains a given signature.

Returns:
true if this ConnectorType contains the given signatureToCheck, false otherwise.

hasSignatures

public Collection hasSignatures(Collection signaturesToCheck)
Determine if this ConnectorType contains the given set of signatures.

Parameters:
signaturesToCheck - signatures to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in signatures 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.

hasAllSignatures

public boolean hasAllSignatures(Collection signaturesToCheck)
Determine if this ConnectorType contains each element in the given set of signatures.

Parameters:
signaturesToCheck - signatures to check for.
Returns:
true if every element in signatures is found in this ConnectorType, false otherwise.

getSignature

public ISignature getSignature(String id)
Gets the signature from this ConnectorType with the given id.

Parameters:
id - ID to look for.
Returns:
signature with the given ID, or null if not found.

getSignatures

public Collection getSignatures(Collection ids)
Gets the signatures from this ConnectorType with the given ids.

Parameters:
ids - ID to look for.
Returns:
signatures with the given IDs. If an element with a given ID was not found, that ID is ignored.

setSubArchitecture

public void setSubArchitecture(ISubArchitecture value)
Set the subArchitecture for this ConnectorType.

Parameters:
value - new subArchitecture

clearSubArchitecture

public void clearSubArchitecture()
Clear the subArchitecture from this ConnectorType.


getSubArchitecture

public ISubArchitecture getSubArchitecture()
Get the subArchitecture from this ConnectorType.

Returns:
subArchitecture

hasSubArchitecture

public boolean hasSubArchitecture(ISubArchitecture subArchitectureToCheck)
Determine if this ConnectorType has the given subArchitecture

Parameters:
subArchitectureToCheck - subArchitecture to compare
Returns:
true if the subArchitectures are equivalent, false otherwise

isEqual

public boolean isEqual(IConnectorType ConnectorTypeToCheck)
Determine if another ConnectorType has the same id as this one.

Parameters:
ConnectorTypeToCheck - ConnectorType to compare with this one.

isEquivalent

public boolean isEquivalent(IConnectorType ConnectorTypeToCheck)
Determine if another ConnectorType is equivalent to this one, ignoring ID's.

Parameters:
ConnectorTypeToCheck - ConnectorType to compare to this one.
Returns:
true if all the child elements of this ConnectorType are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library