|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IObjSet
Interface that represents Field domains for reference types.
IObjSet
contains an ordered list of class domains (IClassDomain
).
Ordering of objects within a class domain must be preserved in each
IObjSet
.
IClassDomain
Method Summary | |
---|---|
boolean |
addClassDomain(IClassDomain domain)
Adds new class domain. |
Object[] |
getAllObjects()
Returns all objest in entire IObjSet .Those are all
objects that can be assigned to the field that this
IFieldDomain is assigned to. |
List<IClassDomain> |
getClassDomains()
Returns the list of all class domains |
Object[] |
getObjectsOfClass(Class cls)
Returns instances (direct or indirect) of the given class in entire IObjSet |
boolean |
isNullAllowed()
Is null allowed or not. |
boolean |
removeClassDomain(IClassDomain domain)
Removes class domain from this IObjSet |
IClassDomain |
removeClassDomain(int index)
Removes class domain from IObjSet |
void |
setNullAllowed(boolean allowed)
Sets whether null is allowed or not. |
Methods inherited from interface korat.finitization.IFieldDomain |
---|
getClassOfField, getNumberOfElements, getNumOfClassDomains, isArrayType, isPrimitiveType |
Method Detail |
---|
boolean addClassDomain(IClassDomain domain)
classOfObjects
of the given
IClassDomain
must be assignable to the
classOfField
of this IObjSet
.
domain
- Class domain
IFieldDomain.getClassOfField()
,
IClassDomain.getClassOfObjects()
,
IFieldDomain
,
IClassDomain
boolean removeClassDomain(IClassDomain domain)
IObjSet
domain
- Class domain to be removed
true
if domain existed in this field
domainIClassDomain removeClassDomain(int index)
IObjSet
index
- index of class domain to be removed. If index is out of
bounds, should return null
instead of throwing
an exception
removeClassDomain(IClassDomain)
List<IClassDomain> getClassDomains()
Object[] getAllObjects()
IObjSet
.Those are all
objects that can be assigned to the field that this
IFieldDomain
is assigned to.
Object[] getObjectsOfClass(Class cls)
IObjSet
cls
- base class
getAllObjects()
void setNullAllowed(boolean allowed)
null
is allowed or not. By default
null
is not allowed.
allowed
- whether null
value is allowed.isNullAllowed()
boolean isNullAllowed()
isNullAllowed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |