Package org.frankframework.validation
Class AbstractXSD
java.lang.Object
org.frankframework.validation.AbstractXSD
- All Implemented Interfaces:
Comparable<IXSD>
,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 TypeMethodDescriptionasString()
int
int
compareToByContents
(IXSD other) 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
-
AbstractXSD
protected AbstractXSD()
-
-
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<IXSD>
-
compareToByReferenceOrContents
-
compareToByContents
- Specified by:
compareToByContents
in interfaceIXSD
-
asString
- Specified by:
asString
in interfaceIXSD
- Throws:
IOException
-
getXsdsRecursive
- Throws:
ConfigurationException
-
getXsdsRecursive
public static Set<IXSD> getXsdsRecursive(Set<IXSD> xsds, boolean supportRedefine) throws ConfigurationException - Throws:
ConfigurationException
-
getSystemId
- Specified by:
getSystemId
in interfaceSchema
-
getImportParent
- Specified by:
getImportParent
in interfaceIXSD
-
getScopeProvider
- Specified by:
getScopeProvider
in interfaceIXSD
-
setResourceInternalReference
-
getResourceTarget
- Specified by:
getResourceTarget
in interfaceIXSD
-
isAddNamespaceToSchema
public boolean isAddNamespaceToSchema()- Specified by:
isAddNamespaceToSchema
in interfaceIXSD
-
setAddNamespaceToSchema
public void setAddNamespaceToSchema(boolean addNamespaceToSchema) -
getNamespace
- Specified by:
getNamespace
in interfaceIXSD
-
getTargetNamespace
- Specified by:
getTargetNamespace
in interfaceIXSD
-
setTargetNamespace
-
getXsdTargetNamespace
- Specified by:
getXsdTargetNamespace
in interfaceIXSD
-
getXsdDefaultNamespace
- Specified by:
getXsdDefaultNamespace
in interfaceIXSD
-
isUseBaseImportedSchemaLocationsToIgnore
public boolean isUseBaseImportedSchemaLocationsToIgnore()- Specified by:
isUseBaseImportedSchemaLocationsToIgnore
in interfaceIXSD
-
setUseBaseImportedSchemaLocationsToIgnore
public void setUseBaseImportedSchemaLocationsToIgnore(boolean useBaseImportedSchemaLocationsToIgnore) -
getImportedSchemaLocationsToIgnore
- Specified by:
getImportedSchemaLocationsToIgnore
in interfaceIXSD
-
getImportedNamespacesToIgnore
- Specified by:
getImportedNamespacesToIgnore
in interfaceIXSD
-
getParentLocation
- Specified by:
getParentLocation
in interfaceIXSD
-
setParentLocation
-
isRootXsd
public boolean isRootXsd() -
setRootXsd
public void setRootXsd(boolean rootXsd) -
getRootTags
- Specified by:
getRootTags
in interfaceIXSD
-
getImportedNamespaces
- Specified by:
getImportedNamespaces
in interfaceIXSD
-
setImportParent
-