|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecm.OwFieldPropertyClassWrapper
public class OwFieldPropertyClassWrapper
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
| Field Summary |
|---|
| Fields inherited from interface com.wewebu.ow.server.ecm.OwPropertyClass |
|---|
CONTEXT_MAX, CONTEXT_NORMAL, CONTEXT_ON_CHECKIN, CONTEXT_ON_CREATE |
| Constructor Summary | |
|---|---|
OwFieldPropertyClassWrapper(OwFieldDefinition fielddefinition_p)
create a property class out of a field definition |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OwFieldPropertyClassWrapper(OwFieldDefinition fielddefinition_p)
fielddefinition_p - | Method Detail |
|---|
public String getDisplayName(Locale locale_p)
getDisplayName in interface OwFieldDefinitionlocale_p - Locale to use
public String getDescription(Locale locale_p)
getDescription in interface OwFieldDefinitionlocale_p - Locale to use
public String getCategory()
throws Exception
OwPropertyClass
getCategory in interface OwPropertyClassException
public boolean isHidden(int context_p)
throws Exception
OwPropertyClass
isHidden in interface OwPropertyClasscontext_p - Context in which the property is read-only as defined by CONTEXT_...
Exception
public boolean isNameProperty()
throws Exception
OwPropertyClass
isNameProperty in interface OwPropertyClassException
public boolean isReadOnly(int context_p)
throws Exception
OwPropertyClass
isReadOnly in interface OwPropertyClasscontext_p - Context in which the property is read-only as defined by CONTEXT_...
Exception
public boolean isSystemProperty()
throws Exception
OwPropertyClass
isSystemProperty in interface OwPropertyClassExceptionpublic String getClassName()
OwFieldDefinition
getClassName in interface OwFieldDefinition
public Object getDefaultValue()
throws Exception
OwFieldDefinition
getDefaultValue in interface OwFieldDefinitionException
public OwEnumCollection getEnums()
throws Exception
OwFieldDefinition
getEnums in interface OwFieldDefinitionExceptionpublic OwFormat getFormat()
OwFieldDefinition
getFormat in interface OwFieldDefinitionpublic String getJavaClassName()
OwFieldDefinition
getJavaClassName in interface OwFieldDefinition
public Object getMaxValue()
throws Exception
OwFieldDefinition
getMaxValue in interface OwFieldDefinitionException
public Object getMinValue()
throws Exception
OwFieldDefinition
getMinValue in interface OwFieldDefinitionException
public Object getNativeType()
throws Exception
OwFieldDefinition
getNativeType in interface OwFieldDefinitionException
public Node getNodeFromValue(Object value_p,
Document doc_p)
throws Exception
OwFieldDefinition
getNodeFromValue in interface OwFieldDefinitionvalue_p - Object with field valuedoc_p - DOM Document to add to
Exception
public Collection getOperators()
throws Exception
OwFieldDefinition
getOperators in interface OwFieldDefinitionException
public Object getValueFromNode(Node node_p)
throws Exception
OwFieldDefinition
getValueFromNode in interface OwFieldDefinitionnode_p - the serialized value as a XML DOM Node
Exception
public Object getValueFromString(String text_p)
throws Exception
OwFieldDefinition
getValueFromString in interface OwFieldDefinitiontext_p - String the serialized value
Exception
public boolean isArray()
throws Exception
OwFieldDefinition
isArray in interface OwFieldDefinitionException
public boolean isEnum()
throws Exception
OwFieldDefinition
isEnum in interface OwFieldDefinitionException
public boolean isRequired()
throws Exception
OwFieldDefinition
isRequired in interface OwFieldDefinitionExceptionpublic boolean isComplex()
OwFieldDefinition
isComplex in interface OwFieldDefinitionOwFieldDefinition.getComplexChildClasses()
public List getComplexChildClasses()
throws Exception
OwFieldDefinition
getComplexChildClasses in interface OwFieldDefinitionExceptionOwFieldDefinition.isComplex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||