| java.lang.Object org.jibx.binding.def.PassThroughComponent org.jibx.binding.def.ObjectBinding
ObjectBinding | public class ObjectBinding extends PassThroughComponent implements IComponent,IContextObj(Code) | | Binding modifiers that apply to a class reference. This adds the methods used
for handling binding operations to the object class, then generates calls to
the added methods as this binding definition is used.
author: Dennis M. Sosnoski version: 1.0 |
ObjectBinding | public ObjectBinding(IContainer contain, IContextObj objc, String type, String fact, String pres, String posts, String pget, String ctype) throws JiBXException(Code) | | Constructor. This initializes the definition context to be the same as
the parent's. Subclasses may change this definition context if
appropriate.
Parameters: contain - containing binding definition component Parameters: objc - current object context Parameters: type - fully qualified class name for bound object Parameters: fact - user new instance factory method Parameters: pres - user preset method for unmarshalling Parameters: posts - user postset method for unmarshalling Parameters: pget - user preget method for marshalling Parameters: ctype - type to use for creating new instance (null ifnot specified) throws: JiBXException - if method not found |
ObjectBinding | public ObjectBinding(ObjectBinding base)(Code) | | Abstract binding copy constructor. This is used to create a variation of
the object binding for a mapping which will be used for "this"
references. The "this" reference handling differs only in the code
generation, where it skips adding the source tracking interfaces and
does not push an instance of the object on the marshalling or
unmarshalling stack (since the object will already be there). This method
is only to be used before code generation.
Parameters: base - original object binding |
ObjectBinding | public ObjectBinding(IContainer contain, ObjectBinding base)(Code) | | Copy constructor. This is used in handling abstract mappings, where the
properties of the mapping definition object binding need to be copied for
each use of that binding.
Parameters: contain - binding definition component containing copy |
hasId | public boolean hasId()(Code) | | |
isOptional | public boolean isOptional()(Code) | | |
print | public void print(int depth)(Code) | | |
|
|