public abstract class OwStandardDecoratorFieldDefinition extends Object implements OwFieldDefinition
OwFieldDefinition wrapper to implement a decorator pattern.
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 and Description |
|---|
OwStandardDecoratorFieldDefinition() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
get the name of the class
|
List |
getComplexChildClasses()
get child properties classes of a complex property class
|
Object |
getDefaultValue()
get the default value
|
String |
getDescription(Locale locale_p)
get the description defined by the DMS System
|
String |
getDisplayName(Locale locale_p)
get the displayable name of the type as defined by the DMS System
can be identical to getClassName
|
OwEnumCollection |
getEnums()
get a list of enum objects for the enum type (see isEnum)
|
OwFormat |
getFormat()
get the formatter object for string representation
|
String |
getJavaClassName()
get the java class name of java object associated with this property
|
Object |
getMaxValue()
get the max allowed value, or Integer len for String or null if not defined
|
Object |
getMinValue()
get the min allowed value, or Integer len for String or null if not defined
|
Object |
getNativeType()
get the native type which is defined by the underlying system
WARNING: The returned object is opaque.
|
Node |
getNodeFromValue(Object value_p,
Document doc_p)
create a XML serialization of the given field value
|
Collection |
getOperators()
get a collection of possible filter / search operators for the field
|
Object |
getValueFromNode(Node node_p)
create a value for the field described by this class with the given XML Node serialization
|
Object |
getValueFromString(String text_p)
create a value for the field described by this class with the given String serialization
|
abstract OwFieldDefinition |
getWrappedFieldDefinition()
get the decorated object, to be implemented be overridden classes
|
boolean |
isArray()
check if property contains a list of values
|
boolean |
isComplex()
check if the property is a component that contains another child properties
|
boolean |
isEnum()
check if property is a enum type (see getEnums)
|
boolean |
isRequired()
check if property is required, i.e.
|
public abstract OwFieldDefinition getWrappedFieldDefinition()
public String getClassName()
OwFieldDefinitiongetClassName in interface OwFieldDefinitionpublic List getComplexChildClasses() throws Exception
OwFieldDefinitiongetComplexChildClasses in interface OwFieldDefinitionExceptionOwFieldDefinition.isComplex()public Object getDefaultValue() throws Exception
OwFieldDefinitiongetDefaultValue in interface OwFieldDefinitionExceptionpublic String getDescription(Locale locale_p)
OwFieldDefinitiongetDescription in interface OwFieldDefinitionlocale_p - Locale to usepublic String getDisplayName(Locale locale_p)
OwFieldDefinitiongetDisplayName in interface OwFieldDefinitionlocale_p - Locale to usepublic OwEnumCollection getEnums() throws Exception
OwFieldDefinitiongetEnums in interface OwFieldDefinitionExceptionpublic OwFormat getFormat()
OwFieldDefinitiongetFormat in interface OwFieldDefinitionpublic String getJavaClassName()
OwFieldDefinitiongetJavaClassName in interface OwFieldDefinitionpublic Object getMaxValue() throws Exception
OwFieldDefinitiongetMaxValue in interface OwFieldDefinitionExceptionpublic Object getMinValue() throws Exception
OwFieldDefinitiongetMinValue in interface OwFieldDefinitionExceptionpublic Object getNativeType() throws Exception
OwFieldDefinitiongetNativeType in interface OwFieldDefinitionExceptionpublic Node getNodeFromValue(Object value_p, Document doc_p) throws Exception
OwFieldDefinitiongetNodeFromValue in interface OwFieldDefinitionvalue_p - Object with field valuedoc_p - DOM Document to add toExceptionpublic Collection getOperators() throws Exception
OwFieldDefinitiongetOperators in interface OwFieldDefinitionExceptionpublic Object getValueFromNode(Node node_p) throws Exception
OwFieldDefinitiongetValueFromNode in interface OwFieldDefinitionnode_p - the serialized value as a XML DOM NodeExceptionpublic Object getValueFromString(String text_p) throws Exception
OwFieldDefinitiongetValueFromString in interface OwFieldDefinitiontext_p - String the serialized valueExceptionpublic boolean isArray()
throws Exception
OwFieldDefinitionisArray in interface OwFieldDefinitionExceptionpublic boolean isComplex()
OwFieldDefinitionisComplex in interface OwFieldDefinitionOwFieldDefinition.getComplexChildClasses()public boolean isEnum()
throws Exception
OwFieldDefinitionisEnum in interface OwFieldDefinitionExceptionpublic boolean isRequired()
throws Exception
OwFieldDefinitionisRequired in interface OwFieldDefinitionExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.