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: NoSuchMethodExceptionModelContext.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 without constructor taking a class loader.
050 *
051 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 1.0
052 * @version $JOMC: NoSuchMethodExceptionModelContext.java 4613 2012-09-22 10:07:08Z schulte $
053 */
054public final class NoSuchMethodExceptionModelContext extends ModelContext
055{
056
057    public NoSuchMethodExceptionModelContext()
058    {
059        super( null );
060    }
061
062    @Override
063    public Modlets findModlets() throws ModelException
064    {
065        throw new UnsupportedOperationException();
066    }
067
068    @Override
069    public Model findModel( final String model ) throws ModelException
070    {
071        throw new UnsupportedOperationException();
072    }
073
074    @Override
075    public Model findModel( final Model model ) throws ModelException
076    {
077        throw new UnsupportedOperationException();
078    }
079
080    @Override
081    public EntityResolver createEntityResolver( final String model ) throws ModelException
082    {
083        throw new UnsupportedOperationException();
084    }
085
086    @Override
087    public LSResourceResolver createResourceResolver( final String model ) throws ModelException
088    {
089        throw new UnsupportedOperationException();
090    }
091
092    @Override
093    public Schema createSchema( final String model ) throws ModelException
094    {
095        throw new UnsupportedOperationException();
096    }
097
098    @Override
099    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}