public class ComhandlePropertyRef extends comhandle
All writing is done to both the OO member and the local comhandle
's private value
.
On instantiation, the current property value is saved in the comhandle
's private
value
, and this instance will be used for reading until assign(com.goldencode.p2j.comauto.ComObject)
or
setUnknown()
is called again.
BaseDataType.Type, BaseDataType.WrapperHandler
Modifier and Type | Field and Description |
---|---|
private PropertyReference |
propertyRef
The property referenced by this instance.
|
EMPTY, value, ZERO_RESOURCE
Constructor and Description |
---|
ComhandlePropertyRef(object<? extends _BaseObject_> instance,
java.lang.String property)
Constructor.
|
ComhandlePropertyRef(object<? extends _BaseObject_> instance,
java.lang.String property,
int index)
Constructor.
|
ComhandlePropertyRef(object<? extends _BaseObject_> instance,
java.lang.String property,
int64 index)
Constructor.
|
ComhandlePropertyRef(java.lang.String className,
java.lang.String property)
Constructor.
|
ComhandlePropertyRef(java.lang.String className,
java.lang.String property,
int index)
Constructor.
|
ComhandlePropertyRef(java.lang.String className,
java.lang.String property,
int64 index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(BaseDataType value)
Sets the state (data and unknown value) of this instance based on the state of the passed
instance.
|
void |
assign(ComObject newVal)
Dedicated assignment method for loading a
ComObject into this comhandle . |
private void |
init(object<? extends _BaseObject_> instance)
Initialize this instance.
|
void |
setUnknown()
Sets the state of this instance's
unknown value flag or state to true . |
_isValid, assign, assign, call, chain, chainCall, compareTo, defaultFormatString, duplicate, fromResourceId, fromString, getIndexedProperty, getName, getProperty, getResource, getType, hashCode, instantiateUnknown, isUnknown, isValid, readExternal, removeResource, resourceId, setIndexedProperty, setName, setProperty, showAccessError, toString, toString, toStringExport, toStringMessage, unwrapComObject, writeExternal
assign, calcFormatLength, createProxy, createProxy, deepCopy, elementsOfType, equals, fallback, formatLength, fromTypeName, generateDefault, generateUnknown, getAssigner, getSize, getTypeName, incompatibleTypesOnConversion, initialize, initializeDefaultExtent, instantiateDefault, instantiateDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isIncompatibleTypesOnConversion, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variable
changed, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobal
private final PropertyReference propertyRef
public ComhandlePropertyRef(java.lang.String className, java.lang.String property)
className
- The class name in case of static property access.property
- Name of class property member.public ComhandlePropertyRef(object<? extends _BaseObject_> instance, java.lang.String property)
instance
- The class instance, for instance property access.property
- Name of class property member.public ComhandlePropertyRef(java.lang.String className, java.lang.String property, int64 index)
className
- The class name in case of static property access.property
- Name of class property member.index
- Index to pass to property's getter method at resolve time.public ComhandlePropertyRef(java.lang.String className, java.lang.String property, int index)
className
- The class name in case of static property access.property
- Name of class property member.index
- Index to pass to property's getter method at resolve time.public ComhandlePropertyRef(object<? extends _BaseObject_> instance, java.lang.String property, int64 index)
instance
- The class instance, for instance property access.property
- Name of class property member.index
- Index to pass to property's getter method at resolve time.public ComhandlePropertyRef(object<? extends _BaseObject_> instance, java.lang.String property, int index)
instance
- The class instance, for instance property access.property
- Name of class property member.index
- Index to pass to property's getter method at resolve time.public void assign(ComObject newVal)
ComObject
into this comhandle
.
This method is only called by ComServer.create(java.lang.String, com.goldencode.p2j.util.comhandle)
. Stores
a newly created ComObject
into this handle.
Also updates the propertyRef
with the new state of this comhandle instance.
public void assign(BaseDataType value)
Also updates the propertyRef
with the new state of this comhandle instance.
public void setUnknown()
unknown value
flag or state to true
.
Warning: the data stored in this instance may be invalid after calling this method.
Also updates the propertyRef
with the new state of this handle instance.
setUnknown
in class comhandle
private void init(object<? extends _BaseObject_> instance)
instance
- non-null for instance property member.