Package org.apache.juneau.marshall.xml
Class XmlClassMeta
java.lang.Object
org.apache.juneau.marshall.ExtendedMeta
org.apache.juneau.marshall.ExtendedClassMeta
org.apache.juneau.marshall.xml.XmlClassMeta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the@Xml(childName)annotation defined on the class.protected XmlFormatReturns the@Xml(format)annotation defined on the class.Returns the XML namespace associated with this class.Methods inherited from class org.apache.juneau.marshall.ExtendedClassMeta
getBeanInfo, getInnerClass
-
Constructor Details
-
XmlClassMeta
Constructor.- Parameters:
cm- The class that this annotation is defined on.
Can benull (no@Xml/@XmlSchemaannotations are looked up; namespace, format, and child-name default accordingly).mp- XML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
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.
-
getChildName
Returns the@Xml(childName)annotation defined on the class.- Returns:
- The value of the annotation, or
null if not specified.
-
getFormat
Returns the@Xml(format)annotation defined on the class.- Returns:
- The value of the annotation, or
XmlFormat.DEFAULTif not specified.
-