|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.field.OwSearchCriteria
com.wewebu.ow.server.field.OwStandardDecoratorSearchCriteria
public abstract class OwStandardDecoratorSearchCriteria
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
| Field Summary |
|---|
| Fields inherited from class com.wewebu.ow.server.field.OwSearchCriteria |
|---|
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 Summary | |
|---|---|
OwStandardDecoratorSearchCriteria()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.wewebu.ow.server.field.OwSearchCriteria |
|---|
canValidate, getComplexChildClasses, ignoreDate, isComplex, isIgnoreDate, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OwStandardDecoratorSearchCriteria()
| Method Detail |
|---|
public abstract OwSearchCriteria getWrappedCriteria()
public boolean canWildCard()
OwSearchCriteria
canWildCard in class OwSearchCriteriapublic int getAttributes()
OwSearchCriteria
getAttributes in class OwSearchCriteriapublic String getClassName()
OwFieldDefinition
getClassName in interface OwFieldDefinitiongetClassName in class OwSearchCriteria
public Object getDefaultValue()
throws Exception
OwSearchCriteria
getDefaultValue in interface OwFieldDefinitiongetDefaultValue in class OwSearchCriteriaExceptionpublic String getDescription(Locale locale_p)
OwFieldDefinition
getDescription in interface OwFieldDefinitiongetDescription in class OwSearchCriterialocale_p - Locale to use
public String getDisplayName(Locale locale_p)
OwFieldDefinition
getDisplayName in interface OwFieldDefinitiongetDisplayName in class OwSearchCriterialocale_p - Locale to use
public OwEnumCollection getEnums()
throws Exception
OwFieldDefinition
getEnums in interface OwFieldDefinitiongetEnums in class OwSearchCriteriaException
public OwFieldDefinition getFieldDefinition()
throws Exception
OwSearchCriteria
getFieldDefinition in interface OwFieldgetFieldDefinition in class OwSearchCriteriaExceptionpublic OwFormat getFormat()
OwSearchCriteria
getFormat in interface OwFieldDefinitiongetFormat in class OwSearchCriteriapublic String getInstruction()
OwSearchCriteria
getInstruction in class OwSearchCriteriapublic String getJavaClassName()
OwFieldDefinition
getJavaClassName in interface OwFieldDefinitiongetJavaClassName in class OwSearchCriteria
public Object getMaxValue()
throws Exception
OwFieldDefinition
getMaxValue in interface OwFieldDefinitiongetMaxValue in class OwSearchCriteriaException
public Object getMinValue()
throws Exception
OwFieldDefinition
getMinValue in interface OwFieldDefinitiongetMinValue in class OwSearchCriteriaException
public Object getNativeType()
throws Exception
OwFieldDefinition
getNativeType in interface OwFieldDefinitiongetNativeType in class OwSearchCriteriaException
public Node getNodeFromValue(Object value_p,
Document doc_p)
throws Exception
OwFieldDefinition
getNodeFromValue in interface OwFieldDefinitiongetNodeFromValue in class OwSearchCriteriavalue_p - Object with field valuedoc_p - DOM Document to add to
Exceptionpublic int getOperator()
OwSearchCriteria
getOperator in class OwSearchCriteriapublic String getOperatorDisplayName(Locale locale_p)
OwSearchCriteria
getOperatorDisplayName in class OwSearchCriteria
public Collection getOperators()
throws Exception
OwFieldDefinition
getOperators in interface OwFieldDefinitiongetOperators in class OwSearchCriteriaExceptionpublic String getOriginalJavaClassName()
OwSearchCriteria
getOriginalJavaClassName in class OwSearchCriteriaStringpublic OwSearchCriteria getSecondRangeCriteria()
OwSearchCriteria
getSecondRangeCriteria in class OwSearchCriteriapublic Format getTextFormat(int fieldProviderType_p)
OwSearchCriteria
getTextFormat in interface OwFormatgetTextFormat in class OwSearchCriteriafieldProviderType_p - int as defined in OwFieldProvider.TYPE_...
public String getUniqueName()
OwSearchCriteria
getUniqueName in class OwSearchCriteriapublic Object getValue()
OwSearchCriteria
getValue in interface OwFieldgetValue in class OwSearchCriteria
public Object getValueFromNode(Node node_p)
throws Exception
OwFieldDefinition
getValueFromNode in interface OwFieldDefinitiongetValueFromNode in class OwSearchCriterianode_p - the serialized value as a XML DOM Node
Exception
public Object getValueFromString(String text_p)
throws Exception
OwSearchCriteria
getValueFromString in interface OwFieldDefinitiongetValueFromString in class OwSearchCriteriatext_p - String the serialized value
Exceptionpublic Collection getWildCardDefinitions()
OwSearchCriteria
getWildCardDefinitions in class OwSearchCriteriapublic boolean ignoreTime()
OwFormat
ignoreTime in interface OwFormatignoreTime in class OwSearchCriteriapublic boolean isAllowWildcard()
OwSearchCriteria
isAllowWildcard in class OwSearchCriteria
public boolean isArray()
throws Exception
OwFieldDefinition
isArray in interface OwFieldDefinitionisArray in class OwSearchCriteriaExceptionpublic boolean isCriteriaOperatorRange()
OwSearchCriteria
isCriteriaOperatorRange in class OwSearchCriteriapublic boolean isDateType()
OwSearchCriteria
isDateType in class OwSearchCriteria
public boolean isEnum()
throws Exception
OwFieldDefinition
isEnum in interface OwFieldDefinitionisEnum in class OwSearchCriteriaExceptionpublic boolean isHidden()
OwSearchCriteria
isHidden in class OwSearchCriteriapublic boolean isIgnoreTime()
OwSearchCriteria
isIgnoreTime in class OwSearchCriteriapublic boolean isReadonly()
OwSearchCriteria
isReadonly in class OwSearchCriteriapublic boolean isRequired()
OwSearchCriteria
isRequired in interface OwFieldDefinitionisRequired in class OwSearchCriteria
public boolean isType(Class base_p)
throws ClassNotFoundException
OwSearchCriteria
isType in class OwSearchCriteriabase_p - a Class
ClassNotFoundExceptionpublic void setInitialAndDefaultValue(Object value_p)
OwSearchCriteria
setInitialAndDefaultValue in class OwSearchCriteriapublic void setOperator(int op_p)
OwSearchCriteria
setOperator in class OwSearchCriteriapublic void setValue(Object value_p)
OwSearchCriteria
setValue 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)
OwSearchCriteria
setWildCardDefinitions in class OwSearchCriteriawildcarddefinitions_p - Collection of OwWildCardDefinition, or null if no wildcards are allowed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||