1 package org.jcr_blog.jcrmapping.converter;
2
3 import javax.jcr.RepositoryException;
4 import javax.jcr.Value;
5 import javax.jcr.ValueFactory;
6 import org.jcr_blog.jcrmapping.NodeConverterException;
7
8
9
10
11
12 public interface Converter {
13
14 public boolean isApplicableObjectToValue(Object object);
15 public Value toValue(Object object, ValueFactory valueFactory) throws NodeConverterException, RepositoryException;
16 public boolean isApplicableValueToObject(Class<?> clazz);
17 public Object toObject(Value value) throws NodeConverterException, RepositoryException;
18 }