Class XmlFeatures

java.lang.Object
org.codehaus.modello.test.features.XmlFeatures
All Implemented Interfaces:
Serializable

public class XmlFeatures extends Object implements Serializable
Test of XML specific parameters: see XmlMetadataPlugin class.
Version:
$Revision$ $Date$
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • addExplodeProperty

      public void addExplodeProperty(String key, String value)
      Method addExplodeProperty.
      Parameters:
      key - a key object.
      value - a value object.
    • addInlineProperty

      public void addInlineProperty(String key, String value)
      Method addInlineProperty.
      Parameters:
      key - a key object.
      value - a value object.
    • addXmlAssociationTagName

      public void addXmlAssociationTagName(Reference reference)
      Method addXmlAssociationTagName.
      Parameters:
      reference - a reference object.
    • addXmlFlatAssociationTagName

      public void addXmlFlatAssociationTagName(Reference reference)
      Method addXmlFlatAssociationTagName.
      Parameters:
      reference - a reference object.
    • addXmlItemsStyleFlat

      public void addXmlItemsStyleFlat(Reference reference)
      Method addXmlItemsStyleFlat.
      Parameters:
      reference - a reference object.
    • addXmlTagNameAssociation

      public void addXmlTagNameAssociation(Reference reference)
      Method addXmlTagNameAssociation.
      Parameters:
      reference - a reference object.
    • addXmlTagNameAssociationTagName

      public void addXmlTagNameAssociationTagName(Reference reference)
      Method addXmlTagNameAssociationTagName.
      Parameters:
      reference - a reference object.
    • getAttributes

      Get the attributes field.
      Returns:
      XmlAttributes
    • getAttributesDefault

      Get the attributesDefault field.
      Returns:
      XmlAttributes
    • getContent

      Get the content field.
      Returns:
      XmlContent
    • getDateLong

      public Date getDateLong()
      Get <field xml.format="long">: a Date field as a long value in XML.
      Returns:
      Date
    • getDateXmlFormat

      Get <field xml.format="SimpleDateFormat specification">: a Date field with a specified format.
      Returns:
      Date
    • getDom

      public Object getDom()
      Get <field><type>DOM-></type>: a DOM field, by default with trimming (each element in the DOM tree).
      Returns:
      Object
    • getDomNoTrim

      public Object getDomNoTrim()
      Get <field xml.trim="false"><type>DOM-></type>: a DOM field without trimming.
      Returns:
      Object
    • getExplodeProperties

      Method getExplodeProperties.
      Returns:
      Properties
    • getFieldName

      public String getFieldName()
      Get <field xml.tagName="tag-name">: a field with an XML name different from the field name.
      Returns:
      String
    • getFieldNameAttribute

      Get <field xml.attribute="true" xml.tagName="tag-name.attribute">
      Returns:
      String
    • getFieldNoTrim

      Get <field xml.trim="false">: a text field without trimming.
      Returns:
      String
    • getFieldTrim

      public String getFieldTrim()
      Get <field>: a text field, by default with trimming.
      Returns:
      String
    • getInlineProperties

      Method getInlineProperties.
      Returns:
      Properties
    • getXmlAssociationTagNames

      Method getXmlAssociationTagNames.
      Returns:
      List
    • getXmlFieldsOrder

      Get the xmlFieldsOrder field.
      Returns:
      XmlFieldsOrder
    • getXmlFlatAssociationTagNames

      Method getXmlFlatAssociationTagNames.
      Returns:
      List
    • getXmlItemsStyleFlats

      Method getXmlItemsStyleFlats.
      Returns:
      List
    • getXmlTagNameAssociation

      Method getXmlTagNameAssociation.
      Returns:
      List
    • getXmlTagNameAssociationTagNames

      Method getXmlTagNameAssociationTagNames.
      Returns:
      List
    • getXmlTransientFields

      Get the xmlTransientFields field.
      Returns:
      XmlTransientFields
    • getXsdFeatures

      Get the xsdFeatures field.
      Returns:
      XsdFeatures
    • removeXmlAssociationTagName

      public void removeXmlAssociationTagName(Reference reference)
      Method removeXmlAssociationTagName.
      Parameters:
      reference - a reference object.
    • removeXmlFlatAssociationTagName

      public void removeXmlFlatAssociationTagName(Reference reference)
      Method removeXmlFlatAssociationTagName.
      Parameters:
      reference - a reference object.
    • removeXmlItemsStyleFlat

      public void removeXmlItemsStyleFlat(Reference reference)
      Method removeXmlItemsStyleFlat.
      Parameters:
      reference - a reference object.
    • removeXmlTagNameAssociation

      public void removeXmlTagNameAssociation(Reference reference)
      Method removeXmlTagNameAssociation.
      Parameters:
      reference - a reference object.
    • removeXmlTagNameAssociationTagName

      Method removeXmlTagNameAssociationTagName.
      Parameters:
      reference - a reference object.
    • setAttributes

      public void setAttributes(XmlAttributes attributes)
      Set the attributes field.
      Parameters:
      attributes - a attributes object.
    • setAttributesDefault

      public void setAttributesDefault(XmlAttributes attributesDefault)
      Set the attributesDefault field.
      Parameters:
      attributesDefault - a attributesDefault object.
    • setContent

      public void setContent(XmlContent content)
      Set the content field.
      Parameters:
      content - a content object.
    • setDateLong

      public void setDateLong(Date dateLong)
      Set <field xml.format="long">: a Date field as a long value in XML.
      Parameters:
      dateLong - a dateLong object.
    • setDateXmlFormat

      public void setDateXmlFormat(Date dateXmlFormat)
      Set <field xml.format="SimpleDateFormat specification">: a Date field with a specified format.
      Parameters:
      dateXmlFormat - a dateXmlFormat object.
    • setDom

      public void setDom(Object dom)
      Set <field><type>DOM-></type>: a DOM field, by default with trimming (each element in the DOM tree).
      Parameters:
      dom - a dom object.
    • setDomNoTrim

      public void setDomNoTrim(Object domNoTrim)
      Set <field xml.trim="false"><type>DOM-></type>: a DOM field without trimming.
      Parameters:
      domNoTrim - a domNoTrim object.
    • setExplodeProperties

      public void setExplodeProperties(Properties explodeProperties)
      Set <type>Properties</type><association xml.mapStyle="explode">.
      Parameters:
      explodeProperties - a explodeProperties object.
    • setFieldName

      public void setFieldName(String fieldName)
      Set <field xml.tagName="tag-name">: a field with an XML name different from the field name.
      Parameters:
      fieldName - a fieldName object.
    • setFieldNameAttribute

      public void setFieldNameAttribute(String fieldNameAttribute)
      Set <field xml.attribute="true" xml.tagName="tag-name.attribute">
      Parameters:
      fieldNameAttribute - a fieldNameAttribute object.
    • setFieldNoTrim

      public void setFieldNoTrim(String fieldNoTrim)
      Set <field xml.trim="false">: a text field without trimming.
      Parameters:
      fieldNoTrim - a fieldNoTrim object.
    • setFieldTrim

      public void setFieldTrim(String fieldTrim)
      Set <field>: a text field, by default with trimming.
      Parameters:
      fieldTrim - a fieldTrim object.
    • setInlineProperties

      public void setInlineProperties(Properties inlineProperties)
      Set <type>Properties</type><association xml.mapStyle="inline"> (default).
      Parameters:
      inlineProperties - a inlineProperties object.
    • setXmlAssociationTagNames

      public void setXmlAssociationTagNames(List<Reference> xmlAssociationTagNames)
      Set <field><association xml.tagName="association.tag-name"></field>: a list with an XML name different from calculated singular of tag name.
      Parameters:
      xmlAssociationTagNames - a xmlAssociationTagNames object
    • setXmlFieldsOrder

      public void setXmlFieldsOrder(XmlFieldsOrder xmlFieldsOrder)
      Set the xmlFieldsOrder field.
      Parameters:
      xmlFieldsOrder - a xmlFieldsOrder object.
    • setXmlFlatAssociationTagNames

      public void setXmlFlatAssociationTagNames(List<Reference> xmlFlatAssociationTagNames)
      Set <field><association xml.itemsStyle="flat" xml.tagName="association.tag-name"></field>: a flat list with an XML name different from calculated singular of tag name.
      Parameters:
      xmlFlatAssociationTagNames - a xmlFlatAssociationTagNames object.
    • setXmlItemsStyleFlats

      public void setXmlItemsStyleFlats(List<Reference> xmlItemsStyleFlats)
      Set <field><association xml.itemsStyle="flat"/></field>: a "flat" list, ie without enclosing tag.
      Parameters:
      xmlItemsStyleFlats - a xmlItemsStyleFlats object.
    • setXmlTagNameAssociation

      public void setXmlTagNameAssociation(List<Reference> xmlTagNameAssociation)
      Set <field xml.tagName="field.tag-names"><association></field>: a list with an XML name different from field name.
      Parameters:
      xmlTagNameAssociation - a xmlTagNameAssociation object.
    • setXmlTagNameAssociationTagNames

      public void setXmlTagNameAssociationTagNames(List<Reference> xmlTagNameAssociationTagNames)
      Set <field xml.tagName="field.tag-name"><association xml.tagName="association.tag-name"></field>: a list with an XML name different from field name and an XML name different from calculated singular of tag name.
      Parameters:
      xmlTagNameAssociationTagNames - a xmlTagNameAssociationTagNames object.
    • setXmlTransientFields

      public void setXmlTransientFields(XmlTransientFields xmlTransientFields)
      Set the xmlTransientFields field.
      Parameters:
      xmlTransientFields - a xmlTransientFields object.
    • setXsdFeatures

      public void setXsdFeatures(XsdFeatures xsdFeatures)
      Set the xsdFeatures field.
      Parameters:
      xsdFeatures - a xsdFeatures object.