com.eviware.soapui.impl.support.definition.support
Class AbstractDefinitionContext<T extends AbstractInterface<?>,T2 extends DefinitionLoader,T3 extends AbstractInterfaceDefinition<T>>

java.lang.Object
  extended by com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext<T,T2,T3>
All Implemented Interfaces:
DefinitionContext<T>
Direct Known Subclasses:
WadlDefinitionContext, WsdlContext

public abstract class AbstractDefinitionContext<T extends AbstractInterface<?>,T2 extends DefinitionLoader,T3 extends AbstractInterfaceDefinition<T>>
extends java.lang.Object
implements DefinitionContext<T>

Holder for InterfaceDefinitions and related SchemaTypeLoader types

Author:
Ole.Matzura

Constructor Summary
AbstractDefinitionContext(java.lang.String url)
           
AbstractDefinitionContext(java.lang.String url, T iface)
           
 
Method Summary
protected abstract  T2 createDefinitionLoader(DefinitionCache definitionCache)
           
protected abstract  T2 createDefinitionLoader(java.lang.String url)
           
 DefinitionCache getDefinitionCache()
           
 java.util.List<InterfaceDefinitionPart> getDefinitionParts()
           
 T getInterface()
           
 T3 getInterfaceDefinition()
           
 SchemaException getSchemaException()
           
 org.apache.xmlbeans.SchemaTypeLoader getSchemaTypeLoader()
           
 org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem()
           
 java.lang.String getUrl()
           
 boolean hasSchemaTypes()
           
 boolean isCached()
           
 boolean isLoaded()
           
 boolean load()
           
 boolean load(T2 wsdlLoader)
           
protected abstract  T3 loadDefinition(T2 loader)
           
 boolean loadIfNecessary()
           
 void release()
           
 void reload()
           
 void setDefinition(java.lang.String url, boolean updateCache)
           
 void setInterface(T iface)
           
static void uncache(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.impl.support.DefinitionContext
export
 

Constructor Detail

AbstractDefinitionContext

public AbstractDefinitionContext(java.lang.String url,
                                 T iface)

AbstractDefinitionContext

public AbstractDefinitionContext(java.lang.String url)
Method Detail

getInterface

public T getInterface()
Specified by:
getInterface in interface DefinitionContext<T extends AbstractInterface<?>>

getInterfaceDefinition

public T3 getInterfaceDefinition()
                                                                 throws java.lang.Exception
Specified by:
getInterfaceDefinition in interface DefinitionContext<T extends AbstractInterface<?>>
Throws:
java.lang.Exception

isLoaded

public boolean isLoaded()

loadIfNecessary

public boolean loadIfNecessary()
                        throws java.lang.Exception
Specified by:
loadIfNecessary in interface DefinitionContext<T extends AbstractInterface<?>>
Throws:
java.lang.Exception

setDefinition

public void setDefinition(java.lang.String url,
                          boolean updateCache)
                   throws java.lang.Exception
Throws:
java.lang.Exception

load

public boolean load()
             throws java.lang.Exception
Throws:
java.lang.Exception

load

public boolean load(T2 wsdlLoader)
             throws java.lang.Exception
Throws:
java.lang.Exception

getSchemaTypeLoader

public org.apache.xmlbeans.SchemaTypeLoader getSchemaTypeLoader()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

getSchemaException

public SchemaException getSchemaException()

createDefinitionLoader

protected abstract T2 createDefinitionLoader(DefinitionCache definitionCache)

createDefinitionLoader

protected abstract T2 createDefinitionLoader(java.lang.String url)

loadDefinition

protected abstract T3 loadDefinition(T2 loader)
                                                                     throws java.lang.Exception
Throws:
java.lang.Exception

release

public void release()

getSchemaTypeSystem

public org.apache.xmlbeans.SchemaTypeSystem getSchemaTypeSystem()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

hasSchemaTypes

public boolean hasSchemaTypes()
Specified by:
hasSchemaTypes in interface DefinitionContext<T extends AbstractInterface<?>>

getUrl

public java.lang.String getUrl()

setInterface

public void setInterface(T iface)

uncache

public static void uncache(java.lang.String url)

reload

public void reload()
            throws java.lang.Exception
Throws:
java.lang.Exception

isCached

public boolean isCached()
Specified by:
isCached in interface DefinitionContext<T extends AbstractInterface<?>>

getDefinitionParts

public java.util.List<InterfaceDefinitionPart> getDefinitionParts()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getDefinitionCache

public DefinitionCache getDefinitionCache()
                                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005-2010 eviware.com. All Rights Reserved.