Package org.robwork.sdurw_core
Class PropertyBasePtr
- java.lang.Object
-
- org.robwork.sdurw_core.PropertyBasePtr
-
public class PropertyBasePtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PropertyBasePtr()
Default constructor yielding a NULL-pointer.PropertyBasePtr(long cPtr, boolean cMemoryOwn)
PropertyBasePtr(PropertyBase ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyBase
__ref__()
Dereferencing operator.PropertyBase
clone()
Construct a clone of the property.PropertyBaseCPtr
cptr()
void
delete()
PropertyBase
deref()
The pointer stored in the object.boolean
equals(PropertyBase p)
static long
getCPtr(PropertyBasePtr obj)
PropertyBase
getDeref()
Member access operator.java.lang.String
getDescription()
Returns descriptionjava.lang.String
getIdentifier()
Returns the Property identifierPropertyValueBase
getPropertyValue()
returns reference to the property valuePropertyType
getType()
Returns the PropertyTypeboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setDescription(java.lang.String desc)
Set description.void
setDescription(java.lang.String desc, boolean fireChangedEvent)
Set description.
-
-
-
Constructor Detail
-
PropertyBasePtr
public PropertyBasePtr(long cPtr, boolean cMemoryOwn)
-
PropertyBasePtr
public PropertyBasePtr()
Default constructor yielding a NULL-pointer.
-
PropertyBasePtr
public PropertyBasePtr(PropertyBase ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PropertyBasePtr obj)
-
delete
public void delete()
-
deref
public PropertyBase deref()
The pointer stored in the object.
-
__ref__
public PropertyBase __ref__()
Dereferencing operator.
-
getDeref
public PropertyBase getDeref()
Member access operator.
-
equals
public boolean equals(PropertyBase p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
cptr
public PropertyBaseCPtr cptr()
-
getIdentifier
public java.lang.String getIdentifier()
Returns the Property identifier- Returns:
- string identifier
-
getDescription
public java.lang.String getDescription()
Returns description- Returns:
- string description
-
setDescription
public void setDescription(java.lang.String desc, boolean fireChangedEvent)
Set description.- Parameters:
desc
- [in] the new description.fireChangedEvent
- [in] (optional) fire changed event.
-
setDescription
public void setDescription(java.lang.String desc)
Set description.- Parameters:
desc
- [in] the new description.
-
clone
public PropertyBase clone()
Construct a clone of the property.
-
getPropertyValue
public PropertyValueBase getPropertyValue()
returns reference to the property value- Returns:
- value
-
getType
public PropertyType getType()
Returns the PropertyType- Returns:
- the PropertyType
-
-