1 package com.thoughtworks.xstream.mapper; 2 3 public interface Mapper { 4 5 8 String serializedClass(Class type); 9 10 13 Class realClass(String elementName); 14 15 18 String serializedMember(Class type, String memberName); 19 20 23 String realMember(Class type, String serialized); 24 25 29 boolean isImmutableValueType(Class type); 30 31 Class defaultImplementationOf(Class type); 32 33 String attributeForImplementationClass(); 34 35 String attributeForClassDefiningField(); 36 37 String attributeForReadResolveField(); 38 39 String attributeForEnumType(); 40 41 48 String getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName); 49 50 Class getItemTypeForItemFieldName(Class definedIn, String itemFieldName); 51 52 ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName); 53 54 59 boolean shouldSerializeMember(Class definedIn, String fieldName); 60 61 interface ImplicitCollectionMapping { 62 String getFieldName(); 63 String getItemFieldName(); 64 Class getItemType(); 65 } 66 67 } 68 | Popular Tags |