public class DefaultXMLNameTransformer extends Object implements XMLNameTransformer
| Constructor and Description |
|---|
DefaultXMLNameTransformer() |
| Modifier and Type | Method and Description |
|---|---|
String |
transformAttributeName(String name)
By default do not make changes to attribute names
|
String |
transformElementName(String name)
By default do not make changes to element names
|
String |
transformRootElementName(String className)
By default convert class names to xml names based the rules defined in
the JAXB specification
|
String |
transformTypeName(String className)
By default convert class names to xml names based the rules defined in
the JAXB specification
|
public String transformRootElementName(String className)
transformRootElementName in interface XMLNameTransformerclassName - - The fully qualified class name as taken from theClass.getName()public String transformTypeName(String className)
transformTypeName in interface XMLNameTransformerclassName - - The fully qualified class name as taken from theClass.getName()public String transformElementName(String name)
transformElementName in interface XMLNameTransformername - - unmodified field name or if this was from a getter or setter method
the "get" or "set" will be automatically removed and the first letter will be made lowercase
Example: if the method getFirstName was annotated with @XmlElement the name passed in to this method would be "firstName"public String transformAttributeName(String name)
transformAttributeName in interface XMLNameTransformername - - attribute name from the classCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.