Package org.eclipse.persistence.jaxb
Class DefaultXMLNameTransformer
java.lang.Object
org.eclipse.persistence.jaxb.DefaultXMLNameTransformer
- All Implemented Interfaces:
XMLNameTransformer
Class called to transform Java names to XML names.
Implements the XMLNameTransformer interface.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransformAttributeName
(String name) By default do not make changes to attribute namestransformElementName
(String name) By default do not make changes to element namestransformRootElementName
(String className) By default convert class names to xml names based the rules defined in the JAXB specificationtransformTypeName
(String className) By default convert class names to xml names based the rules defined in the JAXB specification
-
Constructor Details
-
DefaultXMLNameTransformer
public DefaultXMLNameTransformer()
-
-
Method Details
-
transformRootElementName
By default convert class names to xml names based the rules defined in the JAXB specification- Specified by:
transformRootElementName
in interfaceXMLNameTransformer
- Parameters:
className
- - The fully qualified class name as taken from theClass.getName()
-
transformTypeName
By default convert class names to xml names based the rules defined in the JAXB specification- Specified by:
transformTypeName
in interfaceXMLNameTransformer
- Parameters:
className
- - The fully qualified class name as taken from theClass.getName()
-
transformElementName
By default do not make changes to element names- Specified by:
transformElementName
in interfaceXMLNameTransformer
- Parameters:
name
- - 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"
-
transformAttributeName
By default do not make changes to attribute names- Specified by:
transformAttributeName
in interfaceXMLNameTransformer
- Parameters:
name
- - attribute name from the class
-