org.apache.camel.component.jcr
Class JcrConverter

java.lang.Object
  extended by org.apache.camel.component.jcr.JcrConverter

public class JcrConverter
extends Object

A helper class to transform Object into JCR Value implementations


Constructor Summary
JcrConverter()
           
 
Method Summary
 javax.jcr.Value toValue(Boolean bool)
          Converts a Boolean into a Value
 javax.jcr.Value toValue(Calendar calendar)
          Converts a Calendar into a Value
 javax.jcr.Value toValue(InputStream stream)
          Converts an InputStream into a Value
 javax.jcr.Value toValue(String value)
          Converts a String into a Value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrConverter

public JcrConverter()
Method Detail

toValue

public javax.jcr.Value toValue(Boolean bool)
Converts a Boolean into a Value

Parameters:
bool - the boolean
Returns:
the value

toValue

public javax.jcr.Value toValue(InputStream stream)
Converts an InputStream into a Value

Parameters:
stream - the input stream
Returns:
the value

toValue

public javax.jcr.Value toValue(Calendar calendar)
Converts a Calendar into a Value

Parameters:
calendar - the calendar
Returns:
the value

toValue

public javax.jcr.Value toValue(String value)
Converts a String into a Value

Parameters:
value - the string
Returns:
the value


Apache CAMEL