org.apache.portals.graffito.jcr.persistence.atomictypeconverter.impl
Class StringTypeConverterImpl

java.lang.Object
  extended by org.apache.portals.graffito.jcr.persistence.atomictypeconverter.impl.StringTypeConverterImpl
All Implemented Interfaces:
AtomicTypeConverter

public class StringTypeConverterImpl
extends java.lang.Object
implements AtomicTypeConverter

String Type Converter

Author:
Christophe Lombart, Alexandru Popescu

Constructor Summary
StringTypeConverterImpl()
           
 
Method Summary
 java.lang.Object getObject(javax.jcr.Value value)
          Convert a jcr property value into an object
 java.lang.String getStringValue(java.lang.Object object)
          Get the string converted value
 javax.jcr.Value getValue(javax.jcr.ValueFactory valueFactory, java.lang.Object propValue)
          Convert an object into a JCR value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTypeConverterImpl

public StringTypeConverterImpl()
Method Detail

getValue

public javax.jcr.Value getValue(javax.jcr.ValueFactory valueFactory,
                                java.lang.Object propValue)
Description copied from interface: AtomicTypeConverter
Convert an object into a JCR value.

Specified by:
getValue in interface AtomicTypeConverter
propValue - The object to convert
Returns:
the corresponding JCR value
See Also:
org.apache.portals.graffito.jcr.persistence.atomictypeconverter.AtomicTypeConverter#getValue(java.lang.Object)

getObject

public java.lang.Object getObject(javax.jcr.Value value)
Description copied from interface: AtomicTypeConverter
Convert a jcr property value into an object

Specified by:
getObject in interface AtomicTypeConverter
Parameters:
value - The JCR property value
Returns:
the corresponding object
See Also:
AtomicTypeConverter.getObject(javax.jcr.Value)

getStringValue

public java.lang.String getStringValue(java.lang.Object object)
Description copied from interface: AtomicTypeConverter
Get the string converted value

Specified by:
getStringValue in interface AtomicTypeConverter
Parameters:
object - The object value
Returns:
The string converted value
See Also:
AtomicTypeConverter.getStringValue(java.lang.Object)


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.