org.castor.jdo.conf
Class Mapping

java.lang.Object
  extended by org.castor.jdo.conf.Mapping
All Implemented Interfaces:
Serializable

public class Mapping
extends Object
implements Serializable

Class Mapping.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Mapping()
           
 
Method Summary
 String getHref()
          Returns the value of field 'href'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setHref(String href)
          Sets the value of field 'href'.
static Mapping unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapping

public Mapping()
Method Detail

getHref

public String getHref()
Returns the value of field 'href'.

Returns:
the value of field 'Href'.

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

setHref

public void setHref(String href)
Sets the value of field 'href'.

Parameters:
href - the value of field 'href'.

unmarshal

public static Mapping unmarshal(Reader reader)
                         throws MarshalException,
                                ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.castor.jdo.conf.Mapping
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


Copyright © 2010. All Rights Reserved.