public abstract class SelectionBase extends Object
In the generated EXPRESS classes, there is one instance of SelectionBase for each underlying type of the SELECT. Each class that represents a SELECT contains a nested class named Selection which is a subtype of this class. The class defines a static final member of type Selection for each choice.
| Modifier | Constructor and Description |
|---|---|
protected |
SelectionBase(Class cls,
String[] p) |
| Modifier and Type | Method and Description |
|---|---|
SelectDomain |
getOwner()
Get the SelectDomain that this selection belopngs to.
|
List<String> |
getPath()
Get the type path for this selection
|
Object |
getValue(Select inst)
Retreive the value from a Select that matches this selection.
|
Select |
newInstance(Object value)
Creates a Select of the type identified by this Selection
|
Domain |
slotDomain()
Get the underlying domain for this selection
|
public SelectDomain getOwner()
public Domain slotDomain() throws SchemaStructureException
SchemaStructureException - Malformes schema classespublic Object getValue(Select inst) throws SchemaStructureException, SelectTypeException
getType
method on the Select instance.inst - The SELECT instance to get the value from.double or
int it will be wrapped in a java.lang.Double or
java.lang.Integer wrapper class.SchemaStructureException - Malformed schema classes.SelectTypeException - The select is not of the type identified
by this selection.public Select newInstance(Object value) throws SchemaStructureException, TypeException
value - The value the select is to have. If this in an
int or double, it must be wrapped in a
java.lang.Integer, or java.lang.Double
wrapper.TypeException - if value cannot be cast to the type of
the selection.SchemaStructureException