|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Value
The Value
object describes a type that is represented
by an XML element. This enables a Strategy
to define
not only the type an element represents, but also defines if that
type needs to be created. This allows arrays as well as standard
object types to be described. When instantiated the instance should
be set on the value object for use by the strategy to detect cycles.
Strategy
Method Summary | |
---|---|
int |
getLength()
This returns the length of the array that is to be allocated. |
Class |
getType()
This is the type of the object instance this represents. |
Object |
getValue()
This method is used to acquire an instance of the type that is defined by this object. |
boolean |
isReference()
This will return true if the object represents a reference. |
void |
setValue(Object value)
This method is used set the value within this object. |
Method Detail |
---|
Object getValue()
void setValue(Object value)
getValue
method will return
the object that has been provided for consistency.
value
- this is the value to insert as the typeClass getType()
int getLength()
boolean isReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |