com.steptools.stdev
Class SelectDomain

java.lang.Object
  extended by com.steptools.stdev.Domain
      extended by com.steptools.stdev.SelectDomain

public class SelectDomain
extends Domain

Representation of an EXPRESS SELECT type


Constructor Summary
SelectDomain(java.lang.Class c)
          Reserved for EXPRESS classes
 
Method Summary
 SelectionBase findSelection(java.util.List path)
          Gets the selection for a given type path
 SelectionBase findSelection(java.util.List path, Domain type)
          Gets the selection for a given type path
 SelectionBase findSelection(java.lang.String[] path)
          Gets the selection for a given type path
 SelectionBase findSelection(java.lang.String[] path, Domain type)
          Gets the selection for a given type path
 SelectionBase[] getSelections()
          Gets the selection that this select defines
 boolean isSelect()
           
 boolean typeIsa(Domain other)
          Tests if this Domain is assignable to the other Domain.
 
Methods inherited from class com.steptools.stdev.Domain
getName, isAggregate, isBoolean, isEntity, isEnumeration, isInteger, isLogical, isReal, isString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectDomain

public SelectDomain(java.lang.Class c)
Reserved for EXPRESS classes

Method Detail

typeIsa

public boolean typeIsa(Domain other)
Description copied from class: Domain
Tests if this Domain is assignable to the other Domain.

Specified by:
typeIsa in class Domain
Parameters:
other - The domain to compare to
Returns:
true If this domain is equal to or a subtype of the other Domain.

getSelections

public SelectionBase[] getSelections()
                              throws SchemaStructureException
Gets the selection that this select defines

Returns:
The array of selections.
Throws:
SchemaStructureException - malformed schema classes.

findSelection

public SelectionBase findSelection(java.util.List path,
                                   Domain type)
Gets the selection for a given type path

Parameters:
path - List of String that identify the types that the instance has. This is the same types that would be specified in a Part21 file.
type - The domain for the selection.
Returns:
The requested selection.

findSelection

public SelectionBase findSelection(java.lang.String[] path,
                                   Domain type)
Gets the selection for a given type path

Parameters:
path - Array of String that identify the types that the instance has. This is the same types that would be specified in a Part21 file.
type - The domain for the selection.
Returns:
The requested selection.

findSelection

public SelectionBase findSelection(java.util.List path)
Gets the selection for a given type path

Parameters:
path - List of String that identify the types that the instance has. This is the same types that would be specified in a Part21 file.
Returns:
The requested selection.

findSelection

public SelectionBase findSelection(java.lang.String[] path)
Gets the selection for a given type path

Parameters:
path - Array of String that identify the types that the instance has. This is the same types that would be specified in a Part21 file.
Returns:
The requested selection.

isSelect

public boolean isSelect()
Overrides:
isSelect in class Domain