|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.xstream.mapper.MapperWrapper flattree.xstream.CamelCaseMapper
public class CamelCaseMapper
A Mapper
replacing upper case characters in Class
and
property names with hyphens.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
---|
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null |
Constructor Summary | |
---|---|
CamelCaseMapper(com.thoughtworks.xstream.mapper.Mapper mapper,
Package filter)
|
Method Summary | |
---|---|
protected static String |
dehyphenize(String string)
|
protected static String |
hyphenize(String string)
|
Class |
realClass(String string)
|
String |
realMember(Class clazz,
String member)
|
String |
serializedClass(Class clazz)
|
String |
serializedMember(Class clazz,
String realMember)
|
protected static String |
startLowerCase(String string)
|
protected static String |
startUpperCase(String string)
|
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
---|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, shouldSerializeMember |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CamelCaseMapper(com.thoughtworks.xstream.mapper.Mapper mapper, Package filter)
Method Detail |
---|
public String serializedClass(Class clazz)
serializedClass
in interface com.thoughtworks.xstream.mapper.Mapper
serializedClass
in class com.thoughtworks.xstream.mapper.MapperWrapper
public Class realClass(String string)
realClass
in interface com.thoughtworks.xstream.mapper.Mapper
realClass
in class com.thoughtworks.xstream.mapper.MapperWrapper
public String realMember(Class clazz, String member)
realMember
in interface com.thoughtworks.xstream.mapper.Mapper
realMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
public String serializedMember(Class clazz, String realMember)
serializedMember
in interface com.thoughtworks.xstream.mapper.Mapper
serializedMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
protected static String startLowerCase(String string)
protected static String startUpperCase(String string)
protected static String hyphenize(String string)
protected static String dehyphenize(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |