IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model
Class DefaultResolver

java.lang.Object
  extended by com.ibm.btt.model.DefaultResolver
All Implemented Interfaces:
IResolver

public class DefaultResolver
extends java.lang.Object
implements IResolver

The implementation of resolver, used to resolve the expression language Support nested way. Support indexed element. Support mapped element.


Constructor Summary
DefaultResolver()
          Default Constructor.
 
Method Summary
 int getIndex(java.lang.String expression)
          Return the index value from the property expression or -1.
 java.lang.String getKey(java.lang.String expression)
          Return the map key from the property expression or null.
 java.lang.String getProperty(java.lang.String expression)
          Return the property name from the property expression.
 boolean hasNested(java.lang.String expression)
          Indicates whether or not the expression contains nested property expressions or not.
 boolean isIndexed(java.lang.String expression)
          Indicate whether the expression is for an indexed property or not.
 boolean isMapped(java.lang.String expression)
          Indicate whether the expression is for a mapped property or not.
 java.lang.String next(java.lang.String expression)
          Extract the next property expression from the current expression.
 java.lang.String remove(java.lang.String expression)
          Remove the last property expression from the current expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResolver

public DefaultResolver()
Default Constructor.

Method Detail

getIndex

public int getIndex(java.lang.String expression)
Return the index value from the property expression or -1.

Specified by:
getIndex in interface IResolver
Parameters:
expression - The property expression
Returns:
The index value or -1 if the property is not indexed
Throws:
java.lang.IllegalArgumentException - If the indexed property is illegally formed or has an invalid (non-numeric) value.

getKey

public java.lang.String getKey(java.lang.String expression)
Return the map key from the property expression or null.

Specified by:
getKey in interface IResolver
Parameters:
expression - The property expression
Returns:
The index value
Throws:
java.lang.IllegalArgumentException - If the mapped property is illegally formed.

getProperty

public java.lang.String getProperty(java.lang.String expression)
Return the property name from the property expression.

Specified by:
getProperty in interface IResolver
Parameters:
expression - The property expression
Returns:
The property name

hasNested

public boolean hasNested(java.lang.String expression)
Indicates whether or not the expression contains nested property expressions or not.

Specified by:
hasNested in interface IResolver
Parameters:
expression - The property expression
Returns:
The next property expression

isIndexed

public boolean isIndexed(java.lang.String expression)
Indicate whether the expression is for an indexed property or not.

Specified by:
isIndexed in interface IResolver
Parameters:
expression - The property expression
Returns:
true if the expression is indexed, otherwise false

isMapped

public boolean isMapped(java.lang.String expression)
Indicate whether the expression is for a mapped property or not.

Specified by:
isMapped in interface IResolver
Parameters:
expression - The property expression
Returns:
true if the expression is mapped, otherwise false

next

public java.lang.String next(java.lang.String expression)
Extract the next property expression from the current expression.

Specified by:
next in interface IResolver
Parameters:
expression - The property expression
Returns:
The next property expression

remove

public java.lang.String remove(java.lang.String expression)
Remove the last property expression from the current expression.

Specified by:
remove in interface IResolver
Parameters:
expression - The property expression
Returns:
The new expression value, with first property expression removed - null if there are no more expressions

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010