Package org.apache.juneau.xml
Class XmlBeanPropertyMeta
java.lang.Object
org.apache.juneau.ExtendedMeta
org.apache.juneau.ExtendedBeanPropertyMeta
org.apache.juneau.xml.XmlBeanPropertyMeta
Metadata on bean properties specific to the XML serializers and parsers pulled from the
@Xml
annotation
on the bean property.
See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the child element of this property from theXml.childName()
annotation on this bean property.Returns the XML namespace associated with this bean property.Returns the XML format of this property from theXml.format()
annotation on this bean property.Methods inherited from class org.apache.juneau.ExtendedBeanPropertyMeta
getBeanPropertyMeta
-
Field Details
-
DEFAULT
Default instance.
-
-
Constructor Details
-
XmlBeanPropertyMeta
Constructor.- Parameters:
bpm
- The metadata of the bean property of this additional metadata.mp
- XML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getNamespace
Returns the XML namespace associated with this bean property.Namespace is determined in the following order of
@Xml(prefix)
annotation:- Bean property field.
- Bean getter.
- Bean setter.
- Bean class.
- Bean package.
- Bean superclasses.
- Bean superclass packages.
- Bean interfaces.
- Bean interface packages.
- Returns:
- The namespace associated with this bean property, or
null if no namespace is associated with it.
-
getXmlFormat
Returns the XML format of this property from theXml.format()
annotation on this bean property.- Returns:
- The XML format, or
XmlFormat.DEFAULT
if annotation not specified.
-
getChildName
Returns the child element of this property from theXml.childName()
annotation on this bean property.- Returns:
- The child element, or
null if annotation not specified.
-