com.cafesoft.core.util
Class TokenDelimiterSpec

java.lang.Object
  extended by com.cafesoft.core.util.TokenDelimiterSpec

public class TokenDelimiterSpec
extends Object

TokenDelimiterSpec specifies parameters used to delimit parseable tokens. This class was designed to support tokens that are delimited by a starting character sequence, and ending characters sequence and may contain a name with or without a namespace delimiter. Examples include:

The interpretation and use of the start token delimiter, end token delimiter, and namespace delimiter are left to the parser implementation.

Since:
04/02/2009

Field Summary
static String DEFAULT_END_TOKEN_DELIMITER
          The default end token delimiter.
static String DEFAULT_NAMESPACE_TOKEN_DELIMITER
          The default namespace token delimiter.
static String DEFAULT_START_TOKEN_DELIMITER
          The default start token delimiter.
static TokenDelimiterSpec DEFAULT_TOKEN_DELIMITER_SPEC
          The default TokenDelmiterSpec.
 
Constructor Summary
TokenDelimiterSpec()
          Create a TokenDelmiterSpec with default delimiter values.
TokenDelimiterSpec(String startDelimiter, String endDelimiter, String namespaceDelimiter)
          Create a TokenDelmiterSpec with custom delimiter values.
 
Method Summary
 String getEndDelimiter()
          Get the end of token delimiter.
 String getNamespaceDelimiter()
          Get the namespace token delimiter.
 String getStartDelimiter()
          Get the start of token delimiter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_START_TOKEN_DELIMITER

public static final String DEFAULT_START_TOKEN_DELIMITER
The default start token delimiter.

See Also:
Constant Field Values

DEFAULT_END_TOKEN_DELIMITER

public static final String DEFAULT_END_TOKEN_DELIMITER
The default end token delimiter.

See Also:
Constant Field Values

DEFAULT_NAMESPACE_TOKEN_DELIMITER

public static final String DEFAULT_NAMESPACE_TOKEN_DELIMITER
The default namespace token delimiter.

See Also:
Constant Field Values

DEFAULT_TOKEN_DELIMITER_SPEC

public static final TokenDelimiterSpec DEFAULT_TOKEN_DELIMITER_SPEC
The default TokenDelmiterSpec.

Constructor Detail

TokenDelimiterSpec

public TokenDelimiterSpec()
Create a TokenDelmiterSpec with default delimiter values.


TokenDelimiterSpec

public TokenDelimiterSpec(String startDelimiter,
                          String endDelimiter,
                          String namespaceDelimiter)
Create a TokenDelmiterSpec with custom delimiter values.

Parameters:
startDelimiter - the start of token delimiter;
endDelimiter - the end of token delimiter;
namespaceDelimiter - the namespace token delimiter;
Method Detail

getStartDelimiter

public String getStartDelimiter()
Get the start of token delimiter.

Returns:
the start of token delimiter.

getEndDelimiter

public String getEndDelimiter()
Get the end of token delimiter.

Returns:
the end of token delimiter.

getNamespaceDelimiter

public String getNamespaceDelimiter()
Get the namespace token delimiter.

Returns:
the namespace token delimiter.


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.