com.wewebu.ow.server.ecmimpl.opencmis.property
Class OwCMISAbstractProperty<O,C extends OwCMISPropertyClass<O>>

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.property.OwCMISAbstractProperty<O,C>
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwProperty, OwCMISProperty<O>, com.wewebu.ow.server.field.OwField, Cloneable, Comparable
Direct Known Subclasses:
OwCMISAbstractVirtualProperty, OwCMISNativePropertyImpl

public abstract class OwCMISAbstractProperty<O,C extends OwCMISPropertyClass<O>>
extends Object
implements OwCMISProperty<O>

OwCMISAbstractProperty.

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


Constructor Summary
OwCMISAbstractProperty(C propertyClass_p)
           
 
Method Summary
abstract  OwCMISProperty<O> clone()
           
 int compareTo(Object o_p)
           
protected abstract  void fromArrayValue(O[] value_p)
           
protected abstract  void fromValue(O value_p)
           
 com.wewebu.ow.server.field.OwFieldDefinition getFieldDefinition()
           
 C getPropertyClass()
           
 Object getValue()
           
 boolean isHidden(int iContext_p)
           
 boolean isReadOnly(int iContext_p)
           
 void setValue(Object value_p)
           
protected abstract  O[] toArrayValue()
           
 String toString()
           
protected abstract  O toValue()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecmimpl.opencmis.property.OwCMISProperty
getNativeObject
 

Constructor Detail

OwCMISAbstractProperty

public OwCMISAbstractProperty(C propertyClass_p)
Method Detail

isReadOnly

public boolean isReadOnly(int iContext_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isReadOnly in interface com.wewebu.ow.server.ecm.OwProperty
Throws:
com.wewebu.ow.server.exceptions.OwException

isHidden

public boolean isHidden(int iContext_p)
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isHidden in interface com.wewebu.ow.server.ecm.OwProperty
Throws:
com.wewebu.ow.server.exceptions.OwException

toValue

protected abstract O toValue()
                      throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

toArrayValue

protected abstract O[] toArrayValue()
                             throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

fromValue

protected abstract void fromValue(O value_p)
                           throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

fromArrayValue

protected abstract void fromArrayValue(O[] value_p)
                                throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getValue

public final Object getValue()
                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getValue in interface OwCMISProperty<O>
Specified by:
getValue in interface com.wewebu.ow.server.field.OwField
Throws:
com.wewebu.ow.server.exceptions.OwException

setValue

public final void setValue(Object value_p)
                    throws com.wewebu.ow.server.exceptions.OwException
Specified by:
setValue in interface OwCMISProperty<O>
Specified by:
setValue in interface com.wewebu.ow.server.field.OwField
Throws:
com.wewebu.ow.server.exceptions.OwException

getPropertyClass

public C getPropertyClass()
Specified by:
getPropertyClass in interface com.wewebu.ow.server.ecm.OwProperty

compareTo

public int compareTo(Object o_p)
Specified by:
compareTo in interface Comparable

getFieldDefinition

public com.wewebu.ow.server.field.OwFieldDefinition getFieldDefinition()
                                                                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getFieldDefinition in interface OwCMISProperty<O>
Specified by:
getFieldDefinition in interface com.wewebu.ow.server.field.OwField
Throws:
com.wewebu.ow.server.exceptions.OwException

clone

public abstract OwCMISProperty<O> clone()
                                 throws CloneNotSupportedException
Specified by:
clone in interface com.wewebu.ow.server.ecm.OwProperty
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.