public class TypeRegistry<U> extends Object
| Constructor and Description |
|---|
TypeRegistry(Iterable<TypeEncoder<?,U>> normalizers) |
TypeRegistry(TypeEncoder<?,U>... normalizers) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(String alias,
U value) |
U |
encode(Object value) |
String |
getAlias(Object obj)
Gets a alias for a given java objects class.
|
Collection<TypeEncoder<?,U>> |
getAllEncoders() |
public TypeRegistry(TypeEncoder<?,U>... normalizers)
public TypeRegistry(Iterable<TypeEncoder<?,U>> normalizers)
public String getAlias(Object obj)
obj - public U encode(Object value) throws TypeEncodingException
TypeEncodingExceptionpublic Object decode(String alias, U value) throws TypeDecodingException
TypeDecodingExceptionpublic Collection<TypeEncoder<?,U>> getAllEncoders()
Copyright © 2014 Calrissian. All rights reserved.