com.wewebu.ow.server.field
Class OwStandardWildCardDefinition

java.lang.Object
  extended by com.wewebu.ow.server.field.OwStandardWildCardDefinition
All Implemented Interfaces:
OwWildCardDefinition

public class OwStandardWildCardDefinition
extends Object
implements OwWildCardDefinition

Standard implementation of Interface for Wild character definitions used in searches.

To be implemented with the specific ECM system.

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.field.OwWildCardDefinition
WILD_CARD_TYPE_CUSTOM_START, WILD_CARD_TYPE_MULTI_CHAR, WILD_CARD_TYPE_SINGLE_CHAR
 
Constructor Summary
OwStandardWildCardDefinition(String sNativeWildcard_p, String wildcard_p, int type_p, OwString1 description_p)
          create a wildcard definition
 
Method Summary
 String getDescription(Locale locale_p)
          get a description of this wild character to be displayed in the client
 String getNativeWildCard()
          get the native wildcard character that is used internally by the system
 int getType()
          get the type of wildcard defined by this character
 String getWildCard()
          get the wildcard character that is used by the client and will be replaced by the native wildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwStandardWildCardDefinition

public OwStandardWildCardDefinition(String sNativeWildcard_p,
                                    String wildcard_p,
                                    int type_p,
                                    OwString1 description_p)
create a wildcard definition

Parameters:
sNativeWildcard_p - the native wildcard character
wildcard_p - the wildcard character that is used by the client and needs to be replaced by the native wildcard
type_p -
description_p -
Method Detail

getWildCard

public String getWildCard()
get the wildcard character that is used by the client and will be replaced by the native wildcard

Specified by:
getWildCard in interface OwWildCardDefinition
Returns:
String the wildcard character placeholder i.g. "*"

getNativeWildCard

public String getNativeWildCard()
get the native wildcard character that is used internally by the system

Specified by:
getNativeWildCard in interface OwWildCardDefinition
Returns:
String the wildcard character placeholder i.g. "*"

getType

public int getType()
get the type of wildcard defined by this character

Specified by:
getType in interface OwWildCardDefinition
Returns:
int as defined with WILD_CARD_TYPE_...

getDescription

public String getDescription(Locale locale_p)
get a description of this wild character to be displayed in the client

Specified by:
getDescription in interface OwWildCardDefinition


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.