Class PackageTypeChoice

java.lang.Object
org.exolab.castor.builder.binding.xml.PackageTypeChoice
All Implemented Interfaces:
Serializable

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

    • PackageTypeChoice

      public PackageTypeChoice()
  • Method Details

    • getNamespace

      public String getNamespace()
      Returns the value of field 'namespace'.
      Returns:
      the value of field 'Namespace'.
    • getSchemaLocation

      public String getSchemaLocation()
      Returns the value of field 'schemaLocation'.
      Returns:
      the value of field 'SchemaLocation'.
    • 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
    • setNamespace

      public void setNamespace(String namespace)
      Sets the value of field 'namespace'.
      Parameters:
      namespace - the value of field 'namespace'.
    • setSchemaLocation

      public void setSchemaLocation(String schemaLocation)
      Sets the value of field 'schemaLocation'.
      Parameters:
      schemaLocation - the value of field 'schemaLocation'.
    • unmarshalPackageTypeChoice

      public static PackageTypeChoice unmarshalPackageTypeChoice(Reader reader) throws MarshalException, ValidationException
      Method unmarshalPackageTypeChoice.
      Parameters:
      reader -
      Returns:
      the unmarshaled org.exolab.castor.builder.binding.xml.PackageTypeChoice
      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