org.kefirsf.bb.conf
Class Constant

java.lang.Object
  extended by org.kefirsf.bb.conf.Constant
All Implemented Interfaces:
PatternElement, TemplateElement

public class Constant
extends Object
implements TemplateElement, PatternElement

Define constants.

Author:
Vitaliy Samolovskih aka Kefir

Constructor Summary
Constant()
          Default constructor.
Constant(String value)
          Create constant with value.
Constant(String value, boolean ignoreCase)
          Create constant.
 
Method Summary
 boolean equals(Object o)
           
 String getValue()
           
 int hashCode()
           
 boolean isIgnoreCase()
          Ignore case or no.
 void setIgnoreCase(boolean ignoreCase)
          Set ignore case behavior.
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant()
Default constructor.


Constant

public Constant(String value)
Create constant with value. Ignore case is false by default.

Parameters:
value - constant value.

Constant

public Constant(String value,
                boolean ignoreCase)
Create constant.

Parameters:
value - constant value
ignoreCase - ignore case or no
Method Detail

getValue

public String getValue()
Returns:
constant value

setValue

public void setValue(String value)
Parameters:
value - constant value

isIgnoreCase

public boolean isIgnoreCase()
Ignore case or no. If is true then processor will be ignore text case.

Returns:
true if ignore case, false otherwise.

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)
Set ignore case behavior.

Parameters:
ignoreCase - true if ignore case, false otherwise.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.