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 OwPropertyclone in class Objectpublic int compareTo(Object obj_p)
compareTo in interface Comparableobj_p - the Object to be compared.public OwPropertyClass getPropertyClass() throws Exception
getPropertyClass in interface OwPropertyExceptionpublic OwFieldDefinition getFieldDefinition() throws Exception
getFieldDefinition in interface OwFieldExceptionpublic Object getValue() throws Exception
public void setValue(Object oValue_p) throws Exception
public boolean isReadOnly(int iContext_p)
throws Exception
isReadOnly in interface OwPropertyiContext_p - Context in which the property is read-only as defined by CONTEXT_...Exceptionpublic boolean isHidden(int iContext_p)
throws Exception
isHidden in interface OwPropertyiContext_p - Context in which the property is read-only as defined by CONTEXT_...Exceptionpublic Object getNativeObject() throws Exception
getNativeObject in interface OwPropertyExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.