java.lang.Object
com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext<T,T2,T3>
- All Implemented Interfaces:
- DefinitionContext
- 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
Holder for InterfaceDefinitions and related SchemaTypeLoader types
- Author:
- Ole.Matzura
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDefinitionContext
public AbstractDefinitionContext(java.lang.String url,
T iface)
AbstractDefinitionContext
public AbstractDefinitionContext(java.lang.String url)
getInterface
public T getInterface()
- Specified by:
getInterface
in interface DefinitionContext
getInterfaceDefinition
public T3 getInterfaceDefinition()
throws java.lang.Exception
- Specified by:
getInterfaceDefinition
in interface DefinitionContext
- Throws:
java.lang.Exception
isLoaded
public boolean isLoaded()
loadIfNecessary
public boolean loadIfNecessary()
throws java.lang.Exception
- Specified by:
loadIfNecessary
in interface DefinitionContext
- 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
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
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-2009 eviware.com. All Rights Reserved.