org.alfresco.repo.search
Class QueryParameterDefImpl

java.lang.Object
  extended by org.alfresco.repo.search.QueryParameterDefImpl
All Implemented Interfaces:
NamedQueryParameterDefinition, QueryParameterDefinition

public class QueryParameterDefImpl
extends java.lang.Object
implements QueryParameterDefinition


Constructor Summary
QueryParameterDefImpl(QName qName, DataTypeDefinition dataTypeDefintion, boolean hasDefaultValue, java.lang.String defaultValue)
           
QueryParameterDefImpl(QName qName, PropertyDefinition propertyDefinition, boolean hasDefaultValue, java.lang.String defaultValue)
          QueryParameterDefImpl
 
Method Summary
static QueryParameterDefinition createParameterDefinition(org.dom4j.Element element, DictionaryService dictionaryService, NamespacePrefixResolver nspr)
           
 DataTypeDefinition getDataTypeDefinition()
          Get the property type definition for this parameter.
 java.lang.String getDefault()
          There may be a default value which is null ie the empty string or no entry at all for no default value
static org.dom4j.QName getElementQName()
           
 PropertyDefinition getPropertyDefinition()
          This parameter may apply to a well known property type.
 QName getQName()
          Get the name of this parameter.
 QueryParameterDefinition getQueryParameterDefinition()
          Get the query parameter definition
 boolean hasDefaultValue()
          Has this parameter got a default value?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParameterDefImpl

public QueryParameterDefImpl(QName qName,
                             PropertyDefinition propertyDefinition,
                             boolean hasDefaultValue,
                             java.lang.String defaultValue)
QueryParameterDefImpl

Parameters:
qName -
propertyDefinition -
hasDefaultValue -
defaultValue -

QueryParameterDefImpl

public QueryParameterDefImpl(QName qName,
                             DataTypeDefinition dataTypeDefintion,
                             boolean hasDefaultValue,
                             java.lang.String defaultValue)
Parameters:
qName -
dataTypeDefintion -
hasDefaultValue -
defaultValue -
Method Detail

getQName

public QName getQName()
Description copied from interface: NamedQueryParameterDefinition
Get the name of this parameter. It could be used as the well known name for the parameter. Not null

Specified by:
getQName in interface NamedQueryParameterDefinition
Returns:

getPropertyDefinition

public PropertyDefinition getPropertyDefinition()
Description copied from interface: QueryParameterDefinition
This parameter may apply to a well known property type. May be null

Specified by:
getPropertyDefinition in interface QueryParameterDefinition
Returns:

getDataTypeDefinition

public DataTypeDefinition getDataTypeDefinition()
Description copied from interface: QueryParameterDefinition
Get the property type definition for this parameter. It could come from the property type definition if there is one Not null

Specified by:
getDataTypeDefinition in interface QueryParameterDefinition
Returns:

createParameterDefinition

public static QueryParameterDefinition createParameterDefinition(org.dom4j.Element element,
                                                                 DictionaryService dictionaryService,
                                                                 NamespacePrefixResolver nspr)

getElementQName

public static org.dom4j.QName getElementQName()

getQueryParameterDefinition

public QueryParameterDefinition getQueryParameterDefinition()
Description copied from interface: NamedQueryParameterDefinition
Get the query parameter definition

Specified by:
getQueryParameterDefinition in interface NamedQueryParameterDefinition
Returns:

getDefault

public java.lang.String getDefault()
There may be a default value which is null ie the empty string or no entry at all for no default value

Specified by:
getDefault in interface QueryParameterDefinition
Returns:

hasDefaultValue

public boolean hasDefaultValue()
Description copied from interface: QueryParameterDefinition
Has this parameter got a default value?

Specified by:
hasDefaultValue in interface QueryParameterDefinition
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.