public class EnumerationDomain extends Domain
Constructor and Description |
---|
EnumerationDomain(Class c)
Reserved for EXPRESS classes
|
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object obj)
Try to convert an object to a corresponding object of this type.
|
Class |
domainClass() |
Enumeration |
forName(String name)
Find the enumeration item for a given name
|
Map<String,Enumeration> |
getItems()
Get the Map of enumeration items.
|
boolean |
isEnumeration() |
boolean |
typeIsa(Domain other)
Tests if this Domain is assignable to the other Domain.
|
public EnumerationDomain(Class c)
public boolean typeIsa(Domain other)
Domain
public Class domainClass()
domainClass
in class Domain
public Enumeration forName(String name)
name
- The item to find.null
it it is not found.public Map<String,Enumeration> getItems()
public boolean isEnumeration()
isEnumeration
in class Domain
public Object convert(Object obj)
Domain
Attribute.setValue()
throws a TypeException
.)