|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFieldDomain
Interface that represents Field domains.
IPrimitiveTypeSet or
IObjSet.
IPrimitiveTypeSet cannot contain any class domains,
because values of these fields are not objects. Actually, primitive type
field domain implicitly contain exactly one class domain of the same primitive
type.
IObjSet consists of several class domains (IClassDomain).
Ordering of objects within a class domain must be preserved in each
IObjSet.
Conceptually every field domain should consist of class domains.
Therefore, and because of the Korat search algorithm, some of the methods
that retrieve informations about contained class domains are placed here, not
in IObjSet. IPrimitiveTypeSet should handle
methods that return IClassDomain by returning
null, and methods that retrieve some kind of indices in the
manner as if IPrimitiveTypeSet consists of exactly one class
domain.
Other operations provide various ways to manipulate the structure and
retrieve valuable informations about class domains and elements of this
IFieldDomain.
IClassDomain,
IPrimitiveTypeSet,
IObjSet| Method Summary | |
|---|---|
Class |
getClassOfField()
|
int |
getNumberOfElements()
Number of all elements in this field domain. |
int |
getNumOfClassDomains()
Number of class domains contained in this field domain. |
boolean |
isArrayType()
Does this field domain represent array type. |
boolean |
isPrimitiveType()
Does this field domain represent primitive type. |
| Method Detail |
|---|
Class getClassOfField()
boolean isPrimitiveType()
true for primitive data types and strings,
false otherwiseint getNumberOfElements()
boolean isArrayType()
true if class of this FieldDomain is array,
false otherwiseint getNumOfClassDomains()
IPrimitiveTypeSets should return 1.
IPrimitiveTypeSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||