public class OwFieldPropertyClassWrapper extends Object implements OwPropertyClass
Property class wrapper for OwFields.
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
| Type | Property and Description |
|---|---|
boolean |
isName
check if property is identical the the OwObject.getName Property
|
boolean |
isSystem
check if property is a internal system property and contains no custom object information
|
CONTEXT_MAX, CONTEXT_NORMAL, CONTEXT_ON_CHECKIN, CONTEXT_ON_CREATE| Constructor and Description |
|---|
OwFieldPropertyClassWrapper(OwFieldDefinition fielddefinition_p)
create a property class out of a field definition
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
get the property category, or an empty string of no category is set
|
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 ECM 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
|
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 |
isHidden(int context_p)
check if property is visible to the user
|
boolean |
isNameProperty()
check if property is identical the the OwObject.getName Property
|
boolean |
isReadOnly(int context_p)
check if property is read only on the class level.
|
boolean |
isRequired()
check if property is required, i.e.
|
boolean |
isSystemProperty()
check if property is a internal system property and contains no custom object information
|
isNameProperty in interface OwPropertyClassExceptionisSystemProperty in interface OwPropertyClassExceptionpublic OwFieldPropertyClassWrapper(OwFieldDefinition fielddefinition_p)
fielddefinition_p - public String getDisplayName(Locale locale_p)
getDisplayName in interface OwFieldDefinitionlocale_p - Locale to usepublic String getDescription(Locale locale_p)
getDescription in interface OwFieldDefinitionlocale_p - Locale to usepublic String getCategory() throws Exception
OwPropertyClassgetCategory in interface OwPropertyClassExceptionpublic boolean isHidden(int context_p)
throws Exception
OwPropertyClassisHidden in interface OwPropertyClasscontext_p - Context in which the property is read-only as defined by CONTEXT_...Exceptionpublic boolean isNameProperty()
throws Exception
OwPropertyClassisNameProperty in interface OwPropertyClassExceptionpublic boolean isReadOnly(int context_p)
throws Exception
OwPropertyClassisReadOnly in interface OwPropertyClasscontext_p - Context in which the property is read-only as defined by CONTEXT_...Exceptionpublic boolean isSystemProperty()
throws Exception
OwPropertyClassisSystemProperty in interface OwPropertyClassExceptionpublic String getClassName()
OwFieldDefinitiongetClassName in interface OwFieldDefinitionpublic Object getDefaultValue() throws Exception
OwFieldDefinitiongetDefaultValue in interface OwFieldDefinitionExceptionpublic 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 isEnum()
throws Exception
OwFieldDefinitionisEnum in interface OwFieldDefinitionExceptionpublic boolean isRequired()
throws Exception
OwFieldDefinitionisRequired in interface OwFieldDefinitionExceptionpublic boolean isComplex()
OwFieldDefinitionisComplex in interface OwFieldDefinitionOwFieldDefinition.getComplexChildClasses()public List getComplexChildClasses() throws Exception
OwFieldDefinitiongetComplexChildClasses in interface OwFieldDefinitionExceptionOwFieldDefinition.isComplex()Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.