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