public class OwStandardProperty extends Object implements OwProperty, Cloneable
Standard Implementation for object properties.
A property contains the name and value of a object property.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
protected OwPropertyClass |
m_PropertyClass
class description of the property
|
protected Object |
m_Value
value of the property
|
Constructor and Description |
---|
OwStandardProperty(Object value_p,
OwPropertyClass propertyClass_p)
construct Property Object and set members
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
create a copy of the object
|
int |
compareTo(Object obj_p)
implementation of java.lang.Comparable interface Compares this object with the specified object for order.
|
OwFieldDefinition |
getFieldDefinition()
get the corresponding field definition of the field
|
Object |
getNativeObject()
get the native object from the ECM system
WARNING: The returned object is Opaque.
|
OwPropertyClass |
getPropertyClass()
get the class description of the property
|
Object |
getValue()
get the value of the property.
|
boolean |
isHidden(int iContext_p)
check if property is visible to the user
|
boolean |
isReadOnly(int iContext_p)
check if property is read only on the instance level
NOTE: isReadOnly is also defined in OwPropertyClass on the class level.
|
void |
setValue(Object oValue_p)
set the value of the property.
|
String |
toString() |
protected Object m_Value
protected OwPropertyClass m_PropertyClass
public OwStandardProperty(Object value_p, OwPropertyClass propertyClass_p)
public Object clone()
clone
in interface OwProperty
clone
in class Object
public int compareTo(Object obj_p)
compareTo
in interface Comparable
obj_p
- the Object to be compared.public OwPropertyClass getPropertyClass() throws Exception
getPropertyClass
in interface OwProperty
Exception
public OwFieldDefinition getFieldDefinition() throws Exception
getFieldDefinition
in interface OwField
Exception
public Object getValue() throws Exception
public void setValue(Object oValue_p) throws Exception
public boolean isReadOnly(int iContext_p) throws Exception
isReadOnly
in interface OwProperty
iContext_p
- Context in which the property is read-only as defined by CONTEXT_...Exception
public boolean isHidden(int iContext_p) throws Exception
isHidden
in interface OwProperty
iContext_p
- Context in which the property is read-only as defined by CONTEXT_...Exception
public Object getNativeObject() throws Exception
getNativeObject
in interface OwProperty
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.