public class XmlBeanMeta extends BeanMetaExtended
@Xml
annotation on the
class.Constructor and Description |
---|
XmlBeanMeta(BeanMeta<?> beanMeta)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,BeanPropertyMeta> |
getAttrProperties()
The list of properties that should be rendered as XML attributes.
|
protected Set<String> |
getAttrPropertyNames()
The list of names of properties that should be rendered as XML attributes.
|
protected BeanPropertyMeta |
getAttrsProperty()
The property that returns a map of XML attributes as key/value pairs.
|
protected String |
getAttrsPropertyName()
The name of the property that returns a map of XML attributes as key/value pairs.
|
protected Map<String,BeanPropertyMeta> |
getCollapsedProperties()
The list of properties that should be rendered as collapsed child elements.
|
protected Set<String> |
getCollapsedPropertyNames()
The list of names of properties that should be rendered as collapsed child elements.
|
protected XmlFormat |
getContentFormat()
Returns the format of the inner XML content of this bean.
|
protected BeanPropertyMeta |
getContentProperty()
The property that represents the inner XML content of this bean.
|
protected String |
getContentPropertyName()
The name of the property that represents the inner XML content of this bean.
|
protected Map<String,BeanPropertyMeta> |
getElementProperties()
The list of properties that should be rendered as child elements.
|
protected Set<String> |
getElementPropertyNames()
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.
|
getBeanMeta
public XmlBeanMeta(BeanMeta<?> beanMeta)
beanMeta
- The metadata on the bean that this metadata applies to.protected Map<String,BeanPropertyMeta> getAttrProperties()
protected Set<String> getAttrPropertyNames()
protected Map<String,BeanPropertyMeta> getElementProperties()
protected Set<String> getElementPropertyNames()
protected Map<String,BeanPropertyMeta> getCollapsedProperties()
@Xml.childName()
protected Set<String> getCollapsedPropertyNames()
protected BeanPropertyMeta getAttrsProperty()
protected String getAttrsPropertyName()
protected BeanPropertyMeta getContentProperty()
protected String getContentPropertyName()
protected XmlFormat getContentFormat()
Can be one of the following:
protected BeanPropertyMeta getPropertyMeta(String fieldName)
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").
fieldName
- The bean property name.Copyright © 2018 Apache. All rights reserved.