Class Container

java.lang.Object
org.exolab.castor.mapping.xml.Container
All Implemented Interfaces:
Serializable

public class Container extends Object implements Serializable
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Container

      public Container()
  • Method Details

    • deleteDirect

      public void deleteDirect()
    • deleteRequired

      public void deleteRequired()
    • getCreateMethod

      public String getCreateMethod()
      Returns the value of field 'createMethod'.
      Returns:
      the value of field 'CreateMethod'.
    • getDescription

      public String getDescription()
      Returns the value of field 'description'.
      Returns:
      the value of field 'Description'.
    • getDirect

      public boolean getDirect()
      Returns the value of field 'direct'.
      Returns:
      the value of field 'Direct'.
    • getFieldMapping

      public FieldMapping getFieldMapping()
      Returns the value of field 'fieldMapping'. The field 'fieldMapping' has the following description: The 'field' element is used to describe the property of a Java object.
      Returns:
      the value of field 'FieldMapping'.
    • getGetMethod

      public String getGetMethod()
      Returns the value of field 'getMethod'.
      Returns:
      the value of field 'GetMethod'.
    • getName

      public String getName()
      Returns the value of field 'name'.
      Returns:
      the value of field 'Name'.
    • getRequired

      public boolean getRequired()
      Returns the value of field 'required'.
      Returns:
      the value of field 'Required'.
    • getSetMethod

      public String getSetMethod()
      Returns the value of field 'setMethod'.
      Returns:
      the value of field 'SetMethod'.
    • getType

      public String getType()
      Returns the value of field 'type'.
      Returns:
      the value of field 'Type'.
    • hasDirect

      public boolean hasDirect()
      Method hasDirect.
      Returns:
      true if at least one Direct has been added
    • hasRequired

      public boolean hasRequired()
      Method hasRequired.
      Returns:
      true if at least one Required has been added
    • isDirect

      public boolean isDirect()
      Returns the value of field 'direct'.
      Returns:
      the value of field 'Direct'.
    • isRequired

      public boolean isRequired()
      Returns the value of field 'required'.
      Returns:
      the value of field 'Required'.
    • isValid

      public boolean isValid()
      Method isValid.
      Returns:
      true if this object is valid according to the schema
    • marshal

      public void marshal(Writer out) throws MarshalException, ValidationException
      Parameters:
      out -
      Throws:
      MarshalException - if object is null or if any SAXException is thrown during marshaling
      ValidationException - if this object is an invalid instance according to the schema
    • marshal

      public void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
      Parameters:
      handler -
      Throws:
      IOException - if an IOException occurs during marshaling
      ValidationException - if this object is an invalid instance according to the schema
      MarshalException - if object is null or if any SAXException is thrown during marshaling
    • setCreateMethod

      public void setCreateMethod(String createMethod)
      Sets the value of field 'createMethod'.
      Parameters:
      createMethod - the value of field 'createMethod'.
    • setDescription

      public void setDescription(String description)
      Sets the value of field 'description'.
      Parameters:
      description - the value of field 'description'.
    • setDirect

      public void setDirect(boolean direct)
      Sets the value of field 'direct'.
      Parameters:
      direct - the value of field 'direct'.
    • setFieldMapping

      public void setFieldMapping(FieldMapping fieldMapping)
      Sets the value of field 'fieldMapping'. The field 'fieldMapping' has the following description: The 'field' element is used to describe the property of a Java object.
      Parameters:
      fieldMapping - the value of field 'fieldMapping'.
    • setGetMethod

      public void setGetMethod(String getMethod)
      Sets the value of field 'getMethod'.
      Parameters:
      getMethod - the value of field 'getMethod'.
    • setName

      public void setName(String name)
      Sets the value of field 'name'.
      Parameters:
      name - the value of field 'name'.
    • setRequired

      public void setRequired(boolean required)
      Sets the value of field 'required'.
      Parameters:
      required - the value of field 'required'.
    • setSetMethod

      public void setSetMethod(String setMethod)
      Sets the value of field 'setMethod'.
      Parameters:
      setMethod - the value of field 'setMethod'.
    • setType

      public void setType(String type)
      Sets the value of field 'type'.
      Parameters:
      type - the value of field 'type'.
    • unmarshal

      public static Container unmarshal(Reader reader) throws MarshalException, ValidationException
      Method unmarshal.
      Parameters:
      reader -
      Returns:
      the unmarshaled org.exolab.castor.mapping.xml.Container
      Throws:
      MarshalException - if object is null or if any SAXException is thrown during marshaling
      ValidationException - if this object is an invalid instance according to the schema
    • validate

      public void validate() throws ValidationException
      Throws:
      ValidationException - if this object is an invalid instance according to the schema