public abstract class OwStandardDecoratorSearchCriteria extends OwSearchCriteria
OwSearchCriteria 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
ATTRIBUTE_ALLOWWILDCARD, ATTRIBUTE_HIDDEN, ATTRIBUTE_IGNORE_DATE, ATTRIBUTE_IGNORE_TIME, ATTRIBUTE_NONE, ATTRIBUTE_READONLY, ATTRIBUTE_REQUIRED, m_FieldDefinition, m_iAttributes, m_iOp, m_oDefaultValue, m_oValue, m_secondrangecriteria, m_strInstruction, m_strUniqueName, m_wildcarddefinitions| Constructor and Description |
|---|
OwStandardDecoratorSearchCriteria() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWildCard()
check if criteria allows the use of wildcards
|
int |
getAttributes()
get the flag indicating if the criteria can be edited in a search template view or if it is hidden
|
String |
getClassName()
get the name of the class
|
Object |
getDefaultValue()
get the default search 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)
|
OwFieldDefinition |
getFieldDefinition()
get the corresponding field definition of the field
|
OwFormat |
getFormat()
get the formatter object for string representation
|
String |
getInstruction()
get the instruction to the search criteria
|
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
|
int |
getOperator()
get the criteria operator which should be applied to the value as defined in OwSearchCriteria
|
String |
getOperatorDisplayName(Locale locale_p)
convert a operator ID to a displayable name
|
Collection |
getOperators()
get a collection of possible filter / search operators for the field
|
String |
getOriginalJavaClassName()
get the original class name, in case data type was overridden by allow wildcard
|
OwSearchCriteria |
getSecondRangeCriteria()
get a optional second child criteria for range searches
|
Format |
getTextFormat(int fieldProviderType_p)
get the optional formatter object for string representation, according to the given context type
|
String |
getUniqueName()
get a unique name that identifies this criteria
|
Object |
getValue()
get the compare value for the search
|
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
|
Collection |
getWildCardDefinitions()
get the wildcard definitions for this criteria
|
abstract OwSearchCriteria |
getWrappedCriteria()
get the decorated object, to be implemented be overridden classes
|
boolean |
ignoreTime()
check if the format should ignore time part of date values
|
boolean |
isAllowWildcard()
check if the criteria allows wildcard even if underlying type is number
|
boolean |
isArray()
check if property contains a list of values
|
boolean |
isCriteriaOperatorRange()
check if criteria has a second range criteria fo ranges
|
boolean |
isDateType()
check if criteria is a date criteria
|
boolean |
isEnum()
check if property is a enum type (see getEnums)
|
boolean |
isHidden()
check if the criteria can be edited in a search template view or if it is hidden
|
boolean |
isIgnoreTime()
check if the criteria ignores the time part
|
boolean |
isReadonly()
check if the criteria is visible but read-only
|
boolean |
isRequired()
check if the criteria must be set
|
boolean |
isType(Class base_p)
check if given java class name is base type
|
void |
setInitialAndDefaultValue(Object value_p)
set the initial/default value for the search
|
void |
setOperator(int op_p)
set the criteria operator which should be applied to the value as defined in OwSearchCriteria
|
void |
setValue(Object value_p)
set the compare value for the search
|
void |
setWildCardDefinitions(Collection wildcarddefinitions_p)
set the wildcard definitions for this criteria
|
canValidate, getComplexChildClasses, ignoreDate, isComplex, isIgnoreDate, toString, validatepublic abstract OwSearchCriteria getWrappedCriteria()
public boolean canWildCard()
OwSearchCriteriacanWildCard in class OwSearchCriteriapublic int getAttributes()
OwSearchCriteriagetAttributes in class OwSearchCriteriapublic String getClassName()
OwFieldDefinitiongetClassName in interface OwFieldDefinitiongetClassName in class OwSearchCriteriapublic Object getDefaultValue() throws Exception
OwSearchCriteriagetDefaultValue in interface OwFieldDefinitiongetDefaultValue in class OwSearchCriteriaExceptionpublic String getDescription(Locale locale_p)
OwFieldDefinitiongetDescription in interface OwFieldDefinitiongetDescription in class OwSearchCriterialocale_p - Locale to usepublic String getDisplayName(Locale locale_p)
OwFieldDefinitiongetDisplayName in interface OwFieldDefinitiongetDisplayName in class OwSearchCriterialocale_p - Locale to usepublic OwEnumCollection getEnums() throws Exception
OwFieldDefinitiongetEnums in interface OwFieldDefinitiongetEnums in class OwSearchCriteriaExceptionpublic OwFieldDefinition getFieldDefinition() throws Exception
OwSearchCriteriagetFieldDefinition in interface OwFieldgetFieldDefinition in class OwSearchCriteriaExceptionpublic OwFormat getFormat()
OwSearchCriteriagetFormat in interface OwFieldDefinitiongetFormat in class OwSearchCriteriapublic String getInstruction()
OwSearchCriteriagetInstruction in class OwSearchCriteriapublic String getJavaClassName()
OwFieldDefinitiongetJavaClassName in interface OwFieldDefinitiongetJavaClassName in class OwSearchCriteriapublic Object getMaxValue() throws Exception
OwFieldDefinitiongetMaxValue in interface OwFieldDefinitiongetMaxValue in class OwSearchCriteriaExceptionpublic Object getMinValue() throws Exception
OwFieldDefinitiongetMinValue in interface OwFieldDefinitiongetMinValue in class OwSearchCriteriaExceptionpublic Object getNativeType() throws Exception
OwFieldDefinitiongetNativeType in interface OwFieldDefinitiongetNativeType in class OwSearchCriteriaExceptionpublic Node getNodeFromValue(Object value_p, Document doc_p) throws Exception
OwFieldDefinitiongetNodeFromValue in interface OwFieldDefinitiongetNodeFromValue in class OwSearchCriteriavalue_p - Object with field valuedoc_p - DOM Document to add toExceptionpublic int getOperator()
OwSearchCriteriagetOperator in class OwSearchCriteriapublic String getOperatorDisplayName(Locale locale_p)
OwSearchCriteriagetOperatorDisplayName in class OwSearchCriteriapublic Collection getOperators() throws Exception
OwFieldDefinitiongetOperators in interface OwFieldDefinitiongetOperators in class OwSearchCriteriaExceptionpublic String getOriginalJavaClassName()
OwSearchCriteriagetOriginalJavaClassName in class OwSearchCriteriaStringpublic OwSearchCriteria getSecondRangeCriteria()
OwSearchCriteriagetSecondRangeCriteria in class OwSearchCriteriapublic Format getTextFormat(int fieldProviderType_p)
OwSearchCriteriagetTextFormat in interface OwFormatgetTextFormat in class OwSearchCriteriafieldProviderType_p - int as defined in OwFieldProvider.TYPE_...public String getUniqueName()
OwSearchCriteriagetUniqueName in class OwSearchCriteriapublic Object getValue()
OwSearchCriteriagetValue in interface OwFieldgetValue in class OwSearchCriteriapublic Object getValueFromNode(Node node_p) throws Exception
OwFieldDefinitiongetValueFromNode in interface OwFieldDefinitiongetValueFromNode in class OwSearchCriterianode_p - the serialized value as a XML DOM NodeExceptionpublic Object getValueFromString(String text_p) throws Exception
OwSearchCriteriagetValueFromString in interface OwFieldDefinitiongetValueFromString in class OwSearchCriteriatext_p - String the serialized valueExceptionpublic Collection getWildCardDefinitions()
OwSearchCriteriagetWildCardDefinitions in class OwSearchCriteriapublic boolean ignoreTime()
OwFormatignoreTime in interface OwFormatignoreTime in class OwSearchCriteriapublic boolean isAllowWildcard()
OwSearchCriteriaisAllowWildcard in class OwSearchCriteriapublic boolean isArray()
throws Exception
OwFieldDefinitionisArray in interface OwFieldDefinitionisArray in class OwSearchCriteriaExceptionpublic boolean isCriteriaOperatorRange()
OwSearchCriteriaisCriteriaOperatorRange in class OwSearchCriteriapublic boolean isDateType()
OwSearchCriteriaisDateType in class OwSearchCriteriapublic boolean isEnum()
throws Exception
OwFieldDefinitionisEnum in interface OwFieldDefinitionisEnum in class OwSearchCriteriaExceptionpublic boolean isHidden()
OwSearchCriteriaisHidden in class OwSearchCriteriapublic boolean isIgnoreTime()
OwSearchCriteriaisIgnoreTime in class OwSearchCriteriapublic boolean isReadonly()
OwSearchCriteriaisReadonly in class OwSearchCriteriapublic boolean isRequired()
OwSearchCriteriaisRequired in interface OwFieldDefinitionisRequired in class OwSearchCriteriapublic boolean isType(Class base_p) throws ClassNotFoundException
OwSearchCriteriaisType in class OwSearchCriteriabase_p - a ClassClassNotFoundExceptionpublic void setInitialAndDefaultValue(Object value_p)
OwSearchCriteriasetInitialAndDefaultValue in class OwSearchCriteriapublic void setOperator(int op_p)
OwSearchCriteriasetOperator in class OwSearchCriteriapublic void setValue(Object value_p)
OwSearchCriteriasetValue in interface OwFieldsetValue in class OwSearchCriteriavalue_p - value of field if field is scalar, or a java.io.List of objects if field is an arraypublic void setWildCardDefinitions(Collection wildcarddefinitions_p)
OwSearchCriteriasetWildCardDefinitions in class OwSearchCriteriawildcarddefinitions_p - Collection of OwWildCardDefinition, or null if no wildcards are allowedCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.