2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.binding;
23 //---------------------------------/
24 //- Imported classes and packages -/
25 //---------------------------------/
27 import org.exolab.castor.xml.Marshaller;
28 import org.exolab.castor.xml.Unmarshaller;
33 * @version $Revision$ $Date$
35 public class Pdbids extends Pdbentry implements java.io.Serializable
54 * @return true if this object is valid according to the schema
56 public boolean isValid()
61 } catch (org.exolab.castor.xml.ValidationException vex)
72 * @throws org.exolab.castor.xml.MarshalException
73 * if object is null or if any SAXException is thrown during
75 * @throws org.exolab.castor.xml.ValidationException
76 * if this object is an invalid instance according to the schema
78 public void marshal(final java.io.Writer out)
79 throws org.exolab.castor.xml.MarshalException,
80 org.exolab.castor.xml.ValidationException
82 Marshaller.marshal(this, out);
89 * @throws java.io.IOException
90 * if an IOException occurs during marshaling
91 * @throws org.exolab.castor.xml.ValidationException
92 * if this object is an invalid instance according to the schema
93 * @throws org.exolab.castor.xml.MarshalException
94 * if object is null or if any SAXException is thrown during
97 public void marshal(final org.xml.sax.ContentHandler handler)
98 throws java.io.IOException,
99 org.exolab.castor.xml.MarshalException,
100 org.exolab.castor.xml.ValidationException
102 Marshaller.marshal(this, handler);
109 * @throws org.exolab.castor.xml.MarshalException
110 * if object is null or if any SAXException is thrown during
112 * @throws org.exolab.castor.xml.ValidationException
113 * if this object is an invalid instance according to the schema
114 * @return the unmarshaled jalview.binding.Pdbentry
116 public static jalview.binding.Pdbentry unmarshal(
117 final java.io.Reader reader)
118 throws org.exolab.castor.xml.MarshalException,
119 org.exolab.castor.xml.ValidationException
121 return (jalview.binding.Pdbentry) Unmarshaller.unmarshal(
122 jalview.binding.Pdbids.class, reader);
128 * @throws org.exolab.castor.xml.ValidationException
129 * if this object is an invalid instance according to the schema
131 public void validate() throws org.exolab.castor.xml.ValidationException
133 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
134 validator.validate(this);