org.lsc.jndi
Class ScriptableObject

java.lang.Object
  extended by org.lsc.jndi.ScriptableObject
Direct Known Subclasses:
ScriptableJndiServices

public class ScriptableObject
extends Object

Based on rhino, this class is able to understand your LQL requests.

Author:
Sebastien Bahloul <seb@lsc-project.org>

Constructor Summary
ScriptableObject()
           
 
Method Summary
 List<String> getList(Object a)
          Convert objects to Strings list
 List<String> wrap(String methodName, Object a, Object b, boolean listable)
           
 List<String> wrapList(String methodName, Object a, Object b)
           
 List<String> wrapString(String methodName, Object a, Object b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptableObject

public ScriptableObject()
Method Detail

wrap

public List<String> wrap(String methodName,
                         Object a,
                         Object b,
                         boolean listable)
                  throws NamingException
Throws:
NamingException

getList

public List<String> getList(Object a)
Convert objects to Strings list

Parameters:
a - the original object
Returns:
the strings list

wrapList

public List<String> wrapList(String methodName,
                             Object a,
                             Object b)
                      throws NamingException
Throws:
NamingException

wrapString

public List<String> wrapString(String methodName,
                               Object a,
                               Object b)
                        throws NamingException
Throws:
NamingException


Copyright © 2005-2010 LSC project. All Rights Reserved.