|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICobolBinding
This interface represents the binding between a java type and a cobol element.
| Method Summary | |
|---|---|
void |
accept(CobolElementVisitor cev)
Visitor pattern accept method. |
int |
calcByteLength()
The method calculates the exact host byte length for this Cobol binding. |
String |
getBindingName()
Returns the name of this binding element. |
String |
getJaxbName()
Returns the java name of the property bound to this Cobol element. |
Class<?> |
getJaxbType()
Returns the java type of the property bound to this Cobol element. |
Object |
getObjectValue(Class<?> type)
Retrieves the binding value as an object of the requested type. |
ICobolComplexBinding |
getParentBinding()
A binding element might belong to another complex element . |
boolean |
isBound()
Determines if this Cobol element is bound to a Jaxb property. |
boolean |
isSet()
When a binding value has been explicitly set, this method will return true. |
void |
setObjectValue(Object value)
Sets the binding internal value. |
| Method Detail |
|---|
String getBindingName()
ICobolComplexBinding getParentBinding()
String getJaxbName()
Class<?> getJaxbType()
void accept(CobolElementVisitor cev)
throws HostException
cev - The visitor
HostException - visitor request cannot be acceptedint calcByteLength()
void setObjectValue(Object value)
throws HostException
value - the value to set the binding
HostException - if value is not compatible with binding type
Object getObjectValue(Class<?> type)
throws HostException
type - the type of object to produce
HostException - if value cannot be converted to the requested typeboolean isSet()
boolean isBound()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||