public abstract class Domain extends Object
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object obj)
Try to convert an object to a corresponding object of this type.
|
abstract Class |
domainClass() |
static Domain |
forClass(Class cls) |
String |
getName()
Gets the name of the Domain.
|
boolean |
isAggregate() |
boolean |
isBoolean() |
boolean |
isEntity() |
boolean |
isEnumeration() |
boolean |
isInteger() |
boolean |
isLogical() |
boolean |
isReal() |
boolean |
isSelect() |
boolean |
isString() |
abstract boolean |
typeIsa(Domain other)
Tests if this Domain is assignable to the other Domain.
|
public static Domain forClass(Class cls) throws DomainNotFoundException
DomainNotFoundException
public abstract Class domainClass()
public abstract boolean typeIsa(Domain other)
other
- The domain to compare totrue
If this domain is equal to or a subtype of
the other Domain.public String getName()
public Object convert(Object obj)
Attribute.setValue()
throws a TypeException
.)obj
- The object to convert.null
.public boolean isBoolean()
public boolean isLogical()
public boolean isEntity()
public boolean isEnumeration()
public boolean isSelect()
public boolean isAggregate()
public boolean isReal()
public boolean isInteger()
public boolean isString()