X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbinding%2FUserColourScheme.java;h=79ea637090bdb3cb3161d53f0687e46ae385f51b;hb=23d3cb8d0e4c227224587135f41132d436dc1178;hp=6d6c265b7b77a80175eac673725f395f0989c876;hpb=efc31b4a8d5cee63555586804a2b79c06bdb5a14;p=jalview.git diff --git a/src/jalview/binding/UserColourScheme.java b/src/jalview/binding/UserColourScheme.java index 6d6c265..79ea637 100755 --- a/src/jalview/binding/UserColourScheme.java +++ b/src/jalview/binding/UserColourScheme.java @@ -1,5 +1,5 @@ /* - * This class was automatically generated with + * This class was automatically generated with * Castor 0.9.6, using an XML * Schema. * $Id$ @@ -7,110 +7,112 @@ package jalview.binding; -//---------------------------------/ -//- Imported classes and packages -/ + //---------------------------------/ + //- Imported classes and packages -/ //---------------------------------/ -import org.exolab.castor.xml.*; +import java.io.IOException; +import java.io.Reader; +import java.io.Serializable; +import java.io.Writer; +import org.exolab.castor.xml.MarshalException; +import org.exolab.castor.xml.Marshaller; +import org.exolab.castor.xml.Unmarshaller; +import org.exolab.castor.xml.ValidationException; +import org.xml.sax.ContentHandler; /** * Class UserColourScheme. - * + * * @version $Revision$ $Date$ */ -public class UserColourScheme - extends JalviewUserColours implements java.io.Serializable +public class UserColourScheme extends JalviewUserColours +implements java.io.Serializable { - //----------------/ - //- Constructors -/ - //----------------/ - public UserColourScheme() - { - super(); - } //-- jalview.binding.UserColourScheme() + //----------------/ + //- Constructors -/ + //----------------/ - //-----------/ - //- Methods -/ - //-----------/ + public UserColourScheme() { + super(); + } //-- jalview.binding.UserColourScheme() - /** - * Method isValid - * - * - * - * @return boolean - */ - public boolean isValid() - { - try - { - validate(); - } - catch (org.exolab.castor.xml.ValidationException vex) - { - return false; - } - return true; - } //-- boolean isValid() - /** - * Method marshal - * - * - * - * @param out - */ - public void marshal(java.io.Writer out) - throws org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { + //-----------/ + //- Methods -/ + //-----------/ - Marshaller.marshal(this, out); - } //-- void marshal(java.io.Writer) + /** + * Method isValid + * + * + * + * @return boolean + */ + public boolean isValid() + { + try { + validate(); + } + catch (org.exolab.castor.xml.ValidationException vex) { + return false; + } + return true; + } //-- boolean isValid() - /** - * Method marshal - * - * - * - * @param handler - */ - public void marshal(org.xml.sax.ContentHandler handler) - throws java.io.IOException, org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { + /** + * Method marshal + * + * + * + * @param out + */ + public void marshal(java.io.Writer out) + throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException + { + + Marshaller.marshal(this, out); + } //-- void marshal(java.io.Writer) - Marshaller.marshal(this, handler); - } //-- void marshal(org.xml.sax.ContentHandler) + /** + * Method marshal + * + * + * + * @param handler + */ + public void marshal(org.xml.sax.ContentHandler handler) + throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException + { + + Marshaller.marshal(this, handler); + } //-- void marshal(org.xml.sax.ContentHandler) - /** - * Method unmarshal - * - * - * - * @param reader - * @return Object - */ - public static java.lang.Object unmarshal(java.io.Reader reader) - throws org.exolab.castor.xml.MarshalException, - org.exolab.castor.xml.ValidationException - { - return (jalview.binding.UserColourScheme) Unmarshaller.unmarshal(jalview. - binding.UserColourScheme.class, reader); - } //-- java.lang.Object unmarshal(java.io.Reader) + /** + * Method unmarshal + * + * + * + * @param reader + * @return Object + */ + public static java.lang.Object unmarshal(java.io.Reader reader) + throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException + { + return (jalview.binding.UserColourScheme) Unmarshaller.unmarshal(jalview.binding.UserColourScheme.class, reader); + } //-- java.lang.Object unmarshal(java.io.Reader) - /** - * Method validate - * - */ - public void validate() - throws org.exolab.castor.xml.ValidationException - { - org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml. - Validator(); - validator.validate(this); - } //-- void validate() + /** + * Method validate + * + */ + public void validate() + throws org.exolab.castor.xml.ValidationException + { + org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); + validator.validate(this); + } //-- void validate() }