com.wewebu.ow.server.ecmimpl.cmis.propertyclasses
Class OwCMISInternalPropertyClass

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwCMISInternalPropertyClass
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwPropertyClass, OwCMISPropertyClass, com.wewebu.ow.server.field.OwFieldDefinition
Direct Known Subclasses:
OwCMISMappedInternalPropertyClass, OwCMISObjectClassDescription, OwCMISObjectName, OwCMISObjectPath

public abstract class OwCMISInternalPropertyClass
extends Object
implements OwCMISPropertyClass

OwCMISInternalPropertyClass.

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


Field Summary
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwPropertyClass
CONTEXT_MAX, CONTEXT_NORMAL, CONTEXT_ON_CHECKIN, CONTEXT_ON_CREATE
 
Constructor Summary
OwCMISInternalPropertyClass(com.wewebu.ow.server.ecm.OwPropertyClass delegatePropertyClass_p, OwCMISObjectClass objectClass_p)
           
 
Method Summary
abstract  OwCMISInternalProperty createProperty(OwCMISObject object_p)
           
 boolean equals(Object obj_p)
           
 String getCategory()
           
 String getClassName()
           
 List getComplexChildClasses()
           
 Object getDefaultValue()
           
 String getDescription(Locale locale_p)
           
 String getDisplayName(Locale locale_p)
           
 com.wewebu.ow.server.field.OwEnumCollection getEnums()
           
 com.wewebu.ow.server.field.OwFormat getFormat()
           
 String getFullQualifiedName()
          Returns the full qualified name which is created from the OwCMISPropertyClass.getObjectClass() class name and the OwCMISPropertyClass.getNonQualifiedName(), separated with an '.' (dot) between the names.
 String getJavaClassName()
           
 Object getMaxValue()
           
 Object getMinValue()
           
 Object getNativeType()
           
 Node getNodeFromValue(Object value_p, Document doc_p)
           
 String getNonQualifiedName()
          Returns the non qualified name ( the CMIS definition name of this property)
 OwCMISObjectClass getObjectClass()
          Get the ObjectClassName which is parent of this property.
 Collection getOperators()
           
 Object getValueFromNode(Node node_p)
           
 Object getValueFromString(String text_p)
           
 int hashCode()
           
 boolean isArray()
           
 boolean isComplex()
           
 boolean isEnum()
           
 boolean isHidden(int context_p)
           
 boolean isNameProperty()
           
 boolean isReadOnly(int context_p)
           
 boolean isRequired()
           
 boolean isSystemProperty()
           
 OwCMISProperty newProperty(OwCMISObject object_p, Object value_p, OwCMISNetwork network_p)
          Create a new Instance of the specific OwCMISProperty depending on the current OwCMISPropertyClass.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwCMISPropertyClass
getQueryName, isOrderable, isQueryable
 

Constructor Detail

OwCMISInternalPropertyClass

public OwCMISInternalPropertyClass(com.wewebu.ow.server.ecm.OwPropertyClass delegatePropertyClass_p,
                                   OwCMISObjectClass objectClass_p)
Method Detail

newProperty

public OwCMISProperty newProperty(OwCMISObject object_p,
                                  Object value_p,
                                  OwCMISNetwork network_p)
                           throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISPropertyClass
Create a new Instance of the specific OwCMISProperty depending on the current OwCMISPropertyClass.

Specified by:
newProperty in interface OwCMISPropertyClass
Parameters:
object_p - OwCMISObject to be used, can be null
value_p - Object the initial value which should be set, can be null
network_p - current network
Returns:
OwCMISProperty with given value, depending on the current property class.
Throws:
com.wewebu.ow.server.exceptions.OwException - if creation of OwCMISProperty failed

createProperty

public abstract OwCMISInternalProperty createProperty(OwCMISObject object_p)
                                               throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getObjectClass

public final OwCMISObjectClass getObjectClass()
Description copied from interface: OwCMISPropertyClass
Get the ObjectClassName which is parent of this property.

Specified by:
getObjectClass in interface OwCMISPropertyClass
Returns:
String id/name of object class

getCategory

public String getCategory()
                   throws Exception
Specified by:
getCategory in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
Exception

getClassName

public String getClassName()
Specified by:
getClassName in interface com.wewebu.ow.server.field.OwFieldDefinition

getComplexChildClasses

public List getComplexChildClasses()
                            throws Exception
Specified by:
getComplexChildClasses in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getDefaultValue

public Object getDefaultValue()
                       throws Exception
Specified by:
getDefaultValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getDescription

public String getDescription(Locale locale_p)
Specified by:
getDescription in interface com.wewebu.ow.server.field.OwFieldDefinition

getDisplayName

public String getDisplayName(Locale locale_p)
Specified by:
getDisplayName in interface com.wewebu.ow.server.field.OwFieldDefinition

getEnums

public com.wewebu.ow.server.field.OwEnumCollection getEnums()
                                                     throws Exception
Specified by:
getEnums in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getFormat

public com.wewebu.ow.server.field.OwFormat getFormat()
Specified by:
getFormat in interface com.wewebu.ow.server.field.OwFieldDefinition

getJavaClassName

public String getJavaClassName()
Specified by:
getJavaClassName in interface com.wewebu.ow.server.field.OwFieldDefinition

getMaxValue

public Object getMaxValue()
                   throws Exception
Specified by:
getMaxValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getMinValue

public Object getMinValue()
                   throws Exception
Specified by:
getMinValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getNativeType

public Object getNativeType()
                     throws Exception
Specified by:
getNativeType in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getNodeFromValue

public Node getNodeFromValue(Object value_p,
                             Document doc_p)
                      throws Exception
Specified by:
getNodeFromValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getOperators

public Collection getOperators()
                        throws Exception
Specified by:
getOperators in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getValueFromNode

public Object getValueFromNode(Node node_p)
                        throws Exception
Specified by:
getValueFromNode in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

getValueFromString

public Object getValueFromString(String text_p)
                          throws Exception
Specified by:
getValueFromString in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

isArray

public boolean isArray()
                throws Exception
Specified by:
isArray in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

isComplex

public boolean isComplex()
Specified by:
isComplex in interface com.wewebu.ow.server.field.OwFieldDefinition

isEnum

public boolean isEnum()
               throws Exception
Specified by:
isEnum in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

isHidden

public boolean isHidden(int context_p)
                 throws Exception
Specified by:
isHidden in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
Exception

isNameProperty

public boolean isNameProperty()
                       throws Exception
Specified by:
isNameProperty in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
Exception

isReadOnly

public boolean isReadOnly(int context_p)
                   throws Exception
Specified by:
isReadOnly in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
Exception

isRequired

public boolean isRequired()
                   throws Exception
Specified by:
isRequired in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
Exception

isSystemProperty

public boolean isSystemProperty()
                         throws Exception
Specified by:
isSystemProperty in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
Exception

getFullQualifiedName

public String getFullQualifiedName()
Description copied from interface: OwCMISPropertyClass
Returns the full qualified name which is created from the OwCMISPropertyClass.getObjectClass() class name and the OwCMISPropertyClass.getNonQualifiedName(), separated with an '.' (dot) between the names.

Specified by:
getFullQualifiedName in interface OwCMISPropertyClass
Returns:
String representing the full qualified name

getNonQualifiedName

public String getNonQualifiedName()
Description copied from interface: OwCMISPropertyClass
Returns the non qualified name ( the CMIS definition name of this property)

Specified by:
getNonQualifiedName in interface OwCMISPropertyClass
Returns:
String representing the full qualified name

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.