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: InvocationTargetExceptionModelContext.java 4613 2012-09-22 10:07:08Z schulte $
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 throwing an exception on initialization.
50   *
51   * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0
52   * @version $JOMC: InvocationTargetExceptionModelContext.java 4613 2012-09-22 10:07:08Z schulte $
53   */
54  public final class InvocationTargetExceptionModelContext extends ModelContext
55  {
56  
57      public InvocationTargetExceptionModelContext()
58      {
59          super();
60          throw new UnsupportedOperationException();
61      }
62  
63      public InvocationTargetExceptionModelContext( final ClassLoader classLoader )
64      {
65          super( classLoader );
66          throw new UnsupportedOperationException();
67      }
68  
69      @Override
70      public Modlets findModlets() throws ModelException
71      {
72          throw new UnsupportedOperationException();
73      }
74  
75      @Override
76      public Model findModel( final String model ) throws ModelException
77      {
78          throw new UnsupportedOperationException();
79      }
80  
81      @Override
82      public Model findModel( final Model model ) throws ModelException
83      {
84          throw new UnsupportedOperationException();
85      }
86  
87      @Override
88      public EntityResolver createEntityResolver( final String model ) throws ModelException
89      {
90          throw new UnsupportedOperationException();
91      }
92  
93      @Override
94      public LSResourceResolver createResourceResolver( final String model ) throws ModelException
95      {
96          throw new UnsupportedOperationException();
97      }
98  
99      @Override
100     public Schema createSchema( final String model ) throws ModelException
101     {
102         throw new UnsupportedOperationException();
103     }
104 
105     @Override
106     public JAXBContext createContext( final String model ) throws ModelException
107     {
108         throw new UnsupportedOperationException();
109     }
110 
111     @Override
112     public Marshaller createMarshaller( final String model ) throws ModelException
113     {
114         throw new UnsupportedOperationException();
115     }
116 
117     @Override
118     public Unmarshaller createUnmarshaller( final String model ) throws ModelException
119     {
120         throw new UnsupportedOperationException();
121     }
122 
123     @Override
124     public Model processModel( final Model model ) throws ModelException
125     {
126         throw new UnsupportedOperationException();
127     }
128 
129     @Override
130     public ModelValidationReport validateModel( final Model model ) throws ModelException
131     {
132         throw new UnsupportedOperationException();
133     }
134 
135     @Override
136     public ModelValidationReport validateModel( final String model, final Source source ) throws ModelException
137     {
138         throw new UnsupportedOperationException();
139     }
140 
141     @Override
142     public <T> T createServiceObject( final Service service, final Class<T> type ) throws ModelException
143     {
144         throw new UnsupportedOperationException();
145     }
146 
147     @Override
148     public EntityResolver createEntityResolver( final URI publicId ) throws ModelException
149     {
150         throw new UnsupportedOperationException();
151     }
152 
153     @Override
154     public LSResourceResolver createResourceResolver( final URI publicId ) throws ModelException
155     {
156         throw new UnsupportedOperationException();
157     }
158 
159     @Override
160     public Schema createSchema( final URI publicId ) throws ModelException
161     {
162         throw new UnsupportedOperationException();
163     }
164 
165     @Override
166     public JAXBContext createContext( final URI publicId ) throws ModelException
167     {
168         throw new UnsupportedOperationException();
169     }
170 
171     @Override
172     public Marshaller createMarshaller( final URI publicId ) throws ModelException
173     {
174         throw new UnsupportedOperationException();
175     }
176 
177     @Override
178     public Unmarshaller createUnmarshaller( final URI publicId ) throws ModelException
179     {
180         throw new UnsupportedOperationException();
181     }
182 
183 }