Class PropertyXmlInfo
java.lang.Object
org.apache.uima.resource.metadata.impl.PropertyXmlInfo
A simple class containing information on how to render a property in XML.
-
Field Summary
Modifier and TypeFieldDescriptionOnly used for properties with array values, this determines the tag name of each array element.boolean
If true, this property should be omitted from the XML entirely if its value is null.Name of the property (must correspond to a property on this bean according to the JavaBeans spec).Name if the XML element that represents this property in XML. -
Constructor Summary
ConstructorDescriptionPropertyXmlInfo
(String aPropName) Creates a new, default PropertyXmlInfo.PropertyXmlInfo
(String aPropName, boolean aOmitIfNull) Creates a new PropertyXmlInfo.PropertyXmlInfo
(String aPropName, String aXmlName) Creates a new PropertyXmlInfo.PropertyXmlInfo
(String aPropName, String aXmlName, boolean aOmitIfNull) Creates a new PropertyXmlInfo.PropertyXmlInfo
(String aPropName, String aXmlElementName, boolean aOmitIfNull, String aArrayElementTagName) Creates a new PropertyXmlInfo. -
Method Summary
-
Field Details
-
propertyName
Name of the property (must correspond to a property on this bean according to the JavaBeans spec). -
xmlElementName
Name if the XML element that represents this property in XML. Defaults to the same value aspropertyName
.If this is
null
, it indicates that this property is not represented by its own element tag in the XML. Instead, the value of the property determines the XML tag that is generated. -
omitIfNull
public boolean omitIfNullIf true, this property should be omitted from the XML entirely if its value is null. Defaults to true. -
arrayElementTagName
Only used for properties with array values, this determines the tag name of each array element. As withaXmlName
, this may be null, which will cause each array element to have a tag determined by its class.
-
-
Constructor Details
-
PropertyXmlInfo
Creates a new, default PropertyXmlInfo. The XML name is assumed to be the same as the property name, omitIfNull is true, and arrayElementTagName is null.- Parameters:
aPropName
- name of the property
-
PropertyXmlInfo
Creates a new PropertyXmlInfo.- Parameters:
aPropName
- name of the propertyaOmitIfNull
- if true, this property should be omitted entirely from the XML if its value is null
-
PropertyXmlInfo
Creates a new PropertyXmlInfo.- Parameters:
aPropName
- name of the propertyaXmlName
- name of xml element that represents this property (may be null - seexmlElementName
).
-
PropertyXmlInfo
Creates a new PropertyXmlInfo.- Parameters:
aPropName
- name of the propertyaXmlName
- name of xml element that represents this property (may be null - seexmlElementName
.aOmitIfNull
- if true, this property should be omitted entirely from the XML if its value is null
-
PropertyXmlInfo
public PropertyXmlInfo(String aPropName, String aXmlElementName, boolean aOmitIfNull, String aArrayElementTagName) Creates a new PropertyXmlInfo.- Parameters:
aPropName
- name of the propertyaXmlElementName
- name of xml element that represents this property (may be null - seexmlElementName
.aOmitIfNull
- if true, this property should be omitted entirely from the XML if its value is nullaArrayElementTagName
- only used for properties with array values, this determines the tag name of each array element. As withaXmlName
, this may be null, which will cause each array element to have a tag determined by its class.
-