Package org.apache.juneau.xml
Class XmlBeanMeta
java.lang.Object
org.apache.juneau.ExtendedMeta
org.apache.juneau.ExtendedBeanMeta
org.apache.juneau.xml.XmlBeanMeta
Metadata on beans specific to the XML serializers and parsers pulled from the
@Xml
annotation on the
class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe list of properties that should be rendered as XML attributes.The list of names of properties that should be rendered as XML attributes.protected BeanPropertyMeta
The property that returns a map of XML attributes as key/value pairs.protected String
The name of the property that returns a map of XML attributes as key/value pairs.protected Map<String,
BeanPropertyMeta> The list of properties that should be rendered as collapsed child elements.The list of names of properties that should be rendered as collapsed child elements.Returns the format of the inner XML content of this bean.The property that represents the inner XML content of this bean.protected String
The name of the property that represents the inner XML content of this bean.protected Map<String,
BeanPropertyMeta> The list of properties that should be rendered as child elements.The list of names of properties that should be rendered as child elements.protected BeanPropertyMeta
getPropertyMeta
(String fieldName) Returns bean property meta with the specified name.Methods inherited from class org.apache.juneau.ExtendedBeanMeta
getBeanMeta
-
Constructor Details
-
XmlBeanMeta
Constructor.- Parameters:
beanMeta
- The metadata on the bean that this metadata applies to.mp
- XML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getAttrProperties
The list of properties that should be rendered as XML attributes.- Returns:
- Map of property names to property metadata.
-
getAttrPropertyNames
The list of names of properties that should be rendered as XML attributes.- Returns:
- Set of property names.
-
getElementProperties
The list of properties that should be rendered as child elements.- Returns:
- Map of property names to property metadata.
-
getElementPropertyNames
The list of names of properties that should be rendered as child elements.- Returns:
- Set of property names.
-
getCollapsedProperties
The list of properties that should be rendered as collapsed child elements.
See@Xml(childName)
- Returns:
- Map of property names to property metadata.
-
getCollapsedPropertyNames
The list of names of properties that should be rendered as collapsed child elements.- Returns:
- Set of property names.
-
getAttrsProperty
The property that returns a map of XML attributes as key/value pairs.- Returns:
- The bean property metadata, or
null if there is no such method.
-
getAttrsPropertyName
The name of the property that returns a map of XML attributes as key/value pairs.- Returns:
- The bean property name, or
null if there is no such method.
-
getContentProperty
The property that represents the inner XML content of this bean.- Returns:
- The bean property metadata, or
null if there is no such method.
-
getContentPropertyName
The name of the property that represents the inner XML content of this bean.- Returns:
- The bean property name, or
null if there is no such method.
-
getContentFormat
Returns the format of the inner XML content of this bean.Can be one of the following:
- Returns:
- The format of the inner XML content of this bean.
-
getPropertyMeta
Returns bean property meta with the specified name.This is identical to calling
BeanMeta.getPropertyMeta(String)
except it first retrieves the bean property meta based on the child name (e.g. a property whose name is "people", but whose child name is "person").- Parameters:
fieldName
- The bean property name.- Returns:
- The property metadata.
-