Package org.apache.juneau.xml
Class XmlClassMeta
java.lang.Object
org.apache.juneau.ExtendedMeta
org.apache.juneau.ExtendedClassMeta
org.apache.juneau.xml.XmlClassMeta
Metadata on classes specific to the XML serializers and parsers pulled from the
@Xml
annotation on the
class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the@Xml(childName)
annotation defined on the class.protected XmlFormat
Returns the@Xml(format)
annotation defined on the class.Returns the XML namespace associated with this class.Methods inherited from class org.apache.juneau.ExtendedClassMeta
getClassMeta, getInnerClass
-
Constructor Details
-
XmlClassMeta
Constructor.- Parameters:
cm
- The class that this annotation is defined on.mp
- XML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getFormat
Returns the@Xml(format)
annotation defined on the class.- Returns:
- The value of the annotation, or
XmlFormat.DEFAULT
if not specified.
-
getChildName
Returns the@Xml(childName)
annotation defined on the class.- Returns:
- The value of the annotation, or
null if not specified.
-
getNamespace
Returns the XML namespace associated with this class.Namespace is determined in the following order of
@Xml(prefix)
annotation:- Class.
- Package.
- Superclasses.
- Superclass packages.
- Interfaces.
- Interface packages.
- Returns:
- The namespace associated with this class, or
null if no namespace is associated with it.
-