View Javadoc

1   /*
2    *   Copyright (C) Christian Schulte, 2005-206
3    *   All rights reserved.
4    *
5    *   Redistribution and use in source and binary forms, with or without
6    *   modification, are permitted provided that the following conditions
7    *   are met:
8    *
9    *     o Redistributions of source code must retain the above copyright
10   *       notice, this list of conditions and the following disclaimer.
11   *
12   *     o Redistributions in binary form must reproduce the above copyright
13   *       notice, this list of conditions and the following disclaimer in
14   *       the documentation and/or other materials provided with the
15   *       distribution.
16   *
17   *   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
18   *   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
19   *   AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
20   *   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
21   *   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22   *   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23   *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24   *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25   *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26   *   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27   *
28   *   $JOMC: NoSuchMethodExceptionModelContext.java 4256 2012-02-13 06:32:10Z schulte2005 $
29   *
30   */
31  package org.jomc.modlet.test.support;
32  
33  import java.net.URI;
34  import javax.xml.bind.JAXBContext;
35  import javax.xml.bind.Marshaller;
36  import javax.xml.bind.Unmarshaller;
37  import javax.xml.transform.Source;
38  import javax.xml.validation.Schema;
39  import org.jomc.modlet.Model;
40  import org.jomc.modlet.ModelContext;
41  import org.jomc.modlet.ModelException;
42  import org.jomc.modlet.ModelValidationReport;
43  import org.jomc.modlet.Modlets;
44  import org.jomc.modlet.Service;
45  import org.w3c.dom.ls.LSResourceResolver;
46  import org.xml.sax.EntityResolver;
47  
48  /**
49   * {@code ModelContext} implementation without constructor taking a class loader.
50   *
51   * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0
52   * @version $JOMC: NoSuchMethodExceptionModelContext.java 4256 2012-02-13 06:32:10Z schulte2005 $
53   */
54  public final class NoSuchMethodExceptionModelContext extends ModelContext
55  {
56  
57      public NoSuchMethodExceptionModelContext()
58      {
59          super( null );
60      }
61  
62      @Override
63      public Modlets findModlets() throws ModelException
64      {
65          throw new UnsupportedOperationException();
66      }
67  
68      @Override
69      public Model findModel( final String model ) throws ModelException
70      {
71          throw new UnsupportedOperationException();
72      }
73  
74      @Override
75      public Model findModel( final Model model ) throws ModelException
76      {
77          throw new UnsupportedOperationException();
78      }
79  
80      @Override
81      public EntityResolver createEntityResolver( final String model ) throws ModelException
82      {
83          throw new UnsupportedOperationException();
84      }
85  
86      @Override
87      public LSResourceResolver createResourceResolver( final String model ) throws ModelException
88      {
89          throw new UnsupportedOperationException();
90      }
91  
92      @Override
93      public Schema createSchema( final String model ) throws ModelException
94      {
95          throw new UnsupportedOperationException();
96      }
97  
98      @Override
99      public JAXBContext createContext( final String model ) throws ModelException
100     {
101         throw new UnsupportedOperationException();
102     }
103 
104     @Override
105     public Marshaller createMarshaller( final String model ) throws ModelException
106     {
107         throw new UnsupportedOperationException();
108     }
109 
110     @Override
111     public Unmarshaller createUnmarshaller( final String model ) throws ModelException
112     {
113         throw new UnsupportedOperationException();
114     }
115 
116     @Override
117     public Model processModel( final Model model ) throws ModelException
118     {
119         throw new UnsupportedOperationException();
120     }
121 
122     @Override
123     public ModelValidationReport validateModel( final Model model ) throws ModelException
124     {
125         throw new UnsupportedOperationException();
126     }
127 
128     @Override
129     public ModelValidationReport validateModel( final String model, final Source source ) throws ModelException
130     {
131         throw new UnsupportedOperationException();
132     }
133 
134     @Override
135     public <T> T createServiceObject( final Service service, final Class<T> type ) throws ModelException
136     {
137         throw new UnsupportedOperationException();
138     }
139 
140     @Override
141     public EntityResolver createEntityResolver( final URI publicId ) throws ModelException
142     {
143         throw new UnsupportedOperationException();
144     }
145 
146     @Override
147     public LSResourceResolver createResourceResolver( final URI publicId ) throws ModelException
148     {
149         throw new UnsupportedOperationException();
150     }
151 
152     @Override
153     public Schema createSchema( final URI publicId ) throws ModelException
154     {
155         throw new UnsupportedOperationException();
156     }
157 
158     @Override
159     public JAXBContext createContext( final URI publicId ) throws ModelException
160     {
161         throw new UnsupportedOperationException();
162     }
163 
164     @Override
165     public Marshaller createMarshaller( final URI publicId ) throws ModelException
166     {
167         throw new UnsupportedOperationException();
168     }
169 
170     @Override
171     public Unmarshaller createUnmarshaller( final URI publicId ) throws ModelException
172     {
173         throw new UnsupportedOperationException();
174     }
175 
176 }