|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lights.adapters.tspaces.FieldAdapter
Implements the functionality described for
lights.adapters.Field
using TSpaces.
Field
,
TSpaces Web pageMethod Summary | |
java.lang.Class |
getType()
Returns the type of this field. |
java.io.Serializable |
getValue()
Returns the value of this field. |
boolean |
isFormal()
Returns true if the field is a formal, false
otherwise. |
boolean |
matches(IField field)
Determines the rule used for pattern matching between fields. |
IField |
set(IField field)
Substitutes this field with the one passed as a parameter. |
IField |
setToActual(java.io.Serializable obj)
Sets the value of this field to the object passed as a parameter. |
IField |
setToFormal(java.lang.Class classObj)
Sets this field to be a formal whose type becomes the class passed as a parameter. |
IField |
setToNullActual(java.lang.Class classObj)
Sets the value of this field to null . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public IField set(IField field)
IField
field
is a formal, this field becomes a formal with
field
's type. If field
is an actual, this
fields becomes an actual with the type and value of field
.set
in interface IField
lights.interfaces.IField
field
- the field to be assigned.public java.io.Serializable getValue()
IField
getValue
in interface IField
public java.lang.Class getType()
IField
getType
in interface IField
public IField setToActual(java.io.Serializable obj)
IField
setToActual
in interface IField
lights.interfaces.IField
obj
- the new value of the field.public IField setToNullActual(java.lang.Class classObj)
IField
null
. The type of the field
is set to the class passed as a parameter.setToNullActual
in interface IField
lights.interfaces.IField
classObj
- the class to be associated to the null
actual.public IField setToFormal(java.lang.Class classObj)
IField
setToFormal
in interface IField
lights.interfaces.IField
classObj
- the new type of this field.public boolean isFormal()
IField
true
if the field is a formal, false
otherwise.isFormal
in interface IField
public boolean matches(IField field)
IField
matches
in interface IField
lights.interfaces.IField
true
if the field passed as a parameter matches
this field, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |