Class XSD
- java.lang.Object
-
- nl.nn.adapterframework.validation.XSD
-
- All Implemented Interfaces:
Comparable<XSD>
,IXSD
,Schema
- Direct Known Subclasses:
ResourceXsd
,StringXsd
public abstract class XSD extends Object implements IXSD, Comparable<XSD>
The representation of a XSD.- Author:
- Michiel Meeuwissen, Jaco de Groot
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
useBaseImportedSchemaLocationsToIgnore
-
Constructor Summary
Constructors Modifier Constructor Description protected
XSD()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.nn.adapterframework.validation.IXSD
hasDependency
-
-
-
-
Method Detail
-
setImportedNamespacesToIgnore
public void setImportedNamespacesToIgnore(String toIgnore)
-
setImportedSchemaLocationsToIgnore
public void setImportedSchemaLocationsToIgnore(Set<String> toIgnore)
-
setImportedSchemaLocationsToIgnore
public void setImportedSchemaLocationsToIgnore(String toIgnore)
-
initNoNamespace
protected void initNoNamespace(IScopeProvider scopeProvider, String resourceRef) throws ConfigurationException
- Throws:
ConfigurationException
-
initNamespace
protected void initNamespace(String namespace, IScopeProvider scopeProvider, String resourceRef) throws ConfigurationException
- Throws:
ConfigurationException
-
initFromXsds
public void initFromXsds(String namespace, IScopeProvider scopeProvider, Set<IXSD> sourceXsds) throws ConfigurationException
- Throws:
ConfigurationException
-
getResourceBase
public String getResourceBase()
- Specified by:
getResourceBase
in interfaceIXSD
-
compareTo
public int compareTo(XSD other)
- Specified by:
compareTo
in interfaceComparable<XSD>
-
compareToByReferenceOrContents
protected int compareToByReferenceOrContents(XSD x)
-
compareToByContents
public int compareToByContents(IXSD x)
- Specified by:
compareToByContents
in interfaceIXSD
-
getXsdsRecursive
public static Set<IXSD> getXsdsRecursive(Set<IXSD> xsds) throws ConfigurationException
- Throws:
ConfigurationException
-
getXsdsRecursive
public static Set<IXSD> getXsdsRecursive(Set<IXSD> xsds, boolean supportRedefine) throws ConfigurationException
- Throws:
ConfigurationException
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceSchema
-
addTargetNamespace
public String addTargetNamespace() throws ConfigurationException
convenience method to test adding namespaces to schemas, in the same way that SchemaUtils.mergeXsdsGroupedByNamespaceToSchemasWithoutIncludes() does this.- Throws:
ConfigurationException
-
getScopeProvider
public IScopeProvider getScopeProvider()
- Specified by:
getScopeProvider
in interfaceIXSD
-
setResourceInternalReference
public void setResourceInternalReference(String resourceInternalReference)
-
getResourceTarget
public String getResourceTarget()
- Specified by:
getResourceTarget
in interfaceIXSD
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceIXSD
-
isAddNamespaceToSchema
public boolean isAddNamespaceToSchema()
- Specified by:
isAddNamespaceToSchema
in interfaceIXSD
-
setAddNamespaceToSchema
public void setAddNamespaceToSchema(boolean addNamespaceToSchema)
-
getImportedSchemaLocationsToIgnore
public Set<String> getImportedSchemaLocationsToIgnore()
- Specified by:
getImportedSchemaLocationsToIgnore
in interfaceIXSD
-
isUseBaseImportedSchemaLocationsToIgnore
public boolean isUseBaseImportedSchemaLocationsToIgnore()
- Specified by:
isUseBaseImportedSchemaLocationsToIgnore
in interfaceIXSD
-
setUseBaseImportedSchemaLocationsToIgnore
public void setUseBaseImportedSchemaLocationsToIgnore(boolean useBaseImportedSchemaLocationsToIgnore)
-
getImportedNamespacesToIgnore
public Set<String> getImportedNamespacesToIgnore()
- Specified by:
getImportedNamespacesToIgnore
in interfaceIXSD
-
getParentLocation
public String getParentLocation()
- Specified by:
getParentLocation
in interfaceIXSD
-
setParentLocation
public void setParentLocation(String parentLocation)
-
isRootXsd
public boolean isRootXsd()
-
setRootXsd
public void setRootXsd(boolean rootXsd)
-
getTargetNamespace
public String getTargetNamespace()
- Specified by:
getTargetNamespace
in interfaceIXSD
-
setTargetNamespace
public void setTargetNamespace(String targetNamespace)
-
getRootTags
public List<String> getRootTags()
- Specified by:
getRootTags
in interfaceIXSD
-
getImportedNamespaces
public Set<String> getImportedNamespaces()
- Specified by:
getImportedNamespaces
in interfaceIXSD
-
getXsdTargetNamespace
public String getXsdTargetNamespace()
- Specified by:
getXsdTargetNamespace
in interfaceIXSD
-
getXsdDefaultNamespace
public String getXsdDefaultNamespace()
- Specified by:
getXsdDefaultNamespace
in interfaceIXSD
-
getImportParent
@Nullable public IXSD getImportParent()
- Specified by:
getImportParent
in interfaceIXSD
-
setImportParent
public void setImportParent(IXSD importParent)
-
-