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