Class ContentTest

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

public class ContentTest extends Object implements Serializable
A model class that has only XMl attributes fields and exactly one field with Content type.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • content

      private String content
      The field of the class with Content type.
    • attr

      private String attr
      An XML attribute.
    • attr2

      private int attr2
      A 2nd XML attribute.
  • Constructor Details

  • Method Details

    • getAttr

      public String getAttr()
      Get an XML attribute.
      Returns:
      String
    • getAttr2

      public int getAttr2()
      Get a 2nd XML attribute.
      Returns:
      int
    • getContent

      public String getContent()
      Get the field of the class with Content type.
      Returns:
      String
    • setAttr

      public void setAttr(String attr)
      Set an XML attribute.
      Parameters:
      attr - a attr object.
    • setAttr2

      public void setAttr2(int attr2)
      Set a 2nd XML attribute.
      Parameters:
      attr2 - a attr2 object.
    • setContent

      public void setContent(String content)
      Set the field of the class with Content type.
      Parameters:
      content - a content object.