|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.metadata.impl.PropertyXmlInfo
public class PropertyXmlInfo
A simple class containing information on how to render a property in XML.
Field Summary | |
---|---|
java.lang.String |
arrayElementTagName
Only used for properties with array values, this determines the tag name of each array element. |
boolean |
omitIfNull
If true, this property should be ommitted from the XML entirely if its value is null. |
java.lang.String |
propertyName
Name of the property (must correspond to a property on this bean according to the JavaBeans spec). |
java.lang.String |
xmlElementName
Name if the XML element that represents this property in XML. |
Constructor Summary | |
---|---|
PropertyXmlInfo(java.lang.String aPropName)
Creates a new, default PropertyXmlInfo. |
|
PropertyXmlInfo(java.lang.String aPropName,
boolean aOmitIfNull)
Creates a new PropertyXmlInfo. |
|
PropertyXmlInfo(java.lang.String aPropName,
java.lang.String aXmlName)
Creates a new PropertyXmlInfo. |
|
PropertyXmlInfo(java.lang.String aPropName,
java.lang.String aXmlName,
boolean aOmitIfNull)
Creates a new PropertyXmlInfo. |
|
PropertyXmlInfo(java.lang.String aPropName,
java.lang.String aXmlElementName,
boolean aOmitIfNull,
java.lang.String aArrayElementTagName)
Creates a new PropertyXmlInfo. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String propertyName
public java.lang.String xmlElementName
propertyName
.
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.
public boolean omitIfNull
public java.lang.String arrayElementTagName
aXmlName
, this may be null, which will cause each array element to have
a tag determined by its class.
Constructor Detail |
---|
public PropertyXmlInfo(java.lang.String aPropName)
aPropName
- name of the propertypublic PropertyXmlInfo(java.lang.String aPropName, boolean aOmitIfNull)
aPropName
- name of the propertyaOmitIfNull
- if true, this property should be ommitted entirely from the XML if its value is nullpublic PropertyXmlInfo(java.lang.String aPropName, java.lang.String aXmlName)
aPropName
- name of the propertyaXmlElementName
- name of xml element that represents this property (may be null - see #xmlName
).public PropertyXmlInfo(java.lang.String aPropName, java.lang.String aXmlName, boolean aOmitIfNull)
aPropName
- name of the propertyaXmlElementName
- name of xml element that represents this property (may be null - see #xmlName
.aOmitIfNull
- if true, this property should be ommitted entirely from the XML if its value is nullpublic PropertyXmlInfo(java.lang.String aPropName, java.lang.String aXmlElementName, boolean aOmitIfNull, java.lang.String aArrayElementTagName)
aPropName
- name of the propertyaXmlElementName
- name of xml element that represents this property (may be null - see
xmlElementName
.aOmitIfNull
- if true, this property should be ommitted 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 with aXmlName
, this may be null, which will cause each
array element to have a tag determined by its class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |