001/*
002 *   Copyright (C) Christian Schulte, 2005-206
003 *   All rights reserved.
004 *
005 *   Redistribution and use in source and binary forms, with or without
006 *   modification, are permitted provided that the following conditions
007 *   are met:
008 *
009 *     o Redistributions of source code must retain the above copyright
010 *       notice, this list of conditions and the following disclaimer.
011 *
012 *     o Redistributions in binary form must reproduce the above copyright
013 *       notice, this list of conditions and the following disclaimer in
014 *       the documentation and/or other materials provided with the
015 *       distribution.
016 *
017 *   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
018 *   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
019 *   AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
020 *   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
021 *   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
022 *   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
023 *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
024 *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
025 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
026 *   THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
027 *
028 *   $JOMC: InvocationTargetExceptionModelContext.java 4613 2012-09-22 10:07:08Z schulte $
029 *
030 */
031package org.jomc.modlet.test.support;
032
033import java.net.URI;
034import javax.xml.bind.JAXBContext;
035import javax.xml.bind.Marshaller;
036import javax.xml.bind.Unmarshaller;
037import javax.xml.transform.Source;
038import javax.xml.validation.Schema;
039import org.jomc.modlet.Model;
040import org.jomc.modlet.ModelContext;
041import org.jomc.modlet.ModelException;
042import org.jomc.modlet.ModelValidationReport;
043import org.jomc.modlet.Modlets;
044import org.jomc.modlet.Service;
045import org.w3c.dom.ls.LSResourceResolver;
046import org.xml.sax.EntityResolver;
047
048/**
049 * {@code ModelContext} implementation throwing an exception on initialization.
050 *
051 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0
052 * @version $JOMC: InvocationTargetExceptionModelContext.java 4613 2012-09-22 10:07:08Z schulte $
053 */
054public final class InvocationTargetExceptionModelContext extends ModelContext
055{
056
057    public InvocationTargetExceptionModelContext()
058    {
059        super();
060        throw new UnsupportedOperationException();
061    }
062
063    public InvocationTargetExceptionModelContext( final ClassLoader classLoader )
064    {
065        super( classLoader );
066        throw new UnsupportedOperationException();
067    }
068
069    @Override
070    public Modlets findModlets() throws ModelException
071    {
072        throw new UnsupportedOperationException();
073    }
074
075    @Override
076    public Model findModel( final String model ) throws ModelException
077    {
078        throw new UnsupportedOperationException();
079    }
080
081    @Override
082    public Model findModel( final Model model ) throws ModelException
083    {
084        throw new UnsupportedOperationException();
085    }
086
087    @Override
088    public EntityResolver createEntityResolver( final String model ) throws ModelException
089    {
090        throw new UnsupportedOperationException();
091    }
092
093    @Override
094    public LSResourceResolver createResourceResolver( final String model ) throws ModelException
095    {
096        throw new UnsupportedOperationException();
097    }
098
099    @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}