|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.registry.jdbc.mediatypes.utils.SchemaFileProcessor
public class SchemaFileProcessor
Constructor Summary | |
---|---|
SchemaFileProcessor(DefaultMediaTypeHandler defaultMediaTypeHandler)
|
Method Summary | |
---|---|
void |
calculateNewSchemaNames(org.apache.ws.commons.schema.XmlSchema xmlSchema,
java.util.Map processedSchemaMap,
java.util.Set visitedSchemas,
boolean isWSDLInlineSchema,
boolean processIncludes)
calculate the new schema file names to save the schema. |
java.lang.String |
saveSchemaFileToRegistry(java.lang.String location,
java.util.Map processedSchemaMap,
java.lang.String registryBasePath,
boolean processIncludes,
Resource metadata)
Import a schema file to the registry after saving all its includes and imports to the registry and updating the schema locations accordingly. |
java.lang.String |
saveSchemaFileToRegistry(java.lang.String location,
java.lang.String registryBasePath,
boolean processIncludes,
Resource metadata)
Import a schema file to the registry after saving all its includes and imports to the registry and updating the schema locations accordingly. |
void |
saveSchemaFileToRegistry(org.apache.ws.commons.schema.XmlSchema xmlSchema,
java.util.Map processedSchemaMap,
java.util.Map changeSchemaNames,
java.util.Set visitedSchemas,
boolean isWSDLInlineSchema,
java.lang.String registryBasePath,
boolean processIncludes,
Resource metadata)
Save the schemas to the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaFileProcessor(DefaultMediaTypeHandler defaultMediaTypeHandler)
Method Detail |
---|
public java.lang.String saveSchemaFileToRegistry(java.lang.String location, java.lang.String registryBasePath, boolean processIncludes, Resource metadata) throws RegistryException
location
- the original schema locationregistryBasePath
- base path of the registryprocessIncludes
- true if we should recurse through includesmetadata
- template Resource from which to obtain media-type, description, etc.
RegistryException
public java.lang.String saveSchemaFileToRegistry(java.lang.String location, java.util.Map processedSchemaMap, java.lang.String registryBasePath, boolean processIncludes, Resource metadata) throws RegistryException
location
- the original schema locationprocessedSchemaMap
- a Map from original URI (String) to new schema location (String)registryBasePath
- base path of the registryprocessIncludes
- true if we should recurse through includesmetadata
- template Resource from which to obtain media-type, description,
etc.
RegistryException
public void calculateNewSchemaNames(org.apache.ws.commons.schema.XmlSchema xmlSchema, java.util.Map processedSchemaMap, java.util.Set visitedSchemas, boolean isWSDLInlineSchema, boolean processIncludes)
xmlSchema
- the schema to we'd like to save into the registryprocessedSchemaMap
- a Map from original URI (String) to new schema location (String)visitedSchemas
- a Set of previously visited schema source urisisWSDLInlineSchema
- true if the given schema is an inline schema of a wsdl - if so, we
do not need to calculate a name for itprocessIncludes
- true if we should process includespublic void saveSchemaFileToRegistry(org.apache.ws.commons.schema.XmlSchema xmlSchema, java.util.Map processedSchemaMap, java.util.Map changeSchemaNames, java.util.Set visitedSchemas, boolean isWSDLInlineSchema, java.lang.String registryBasePath, boolean processIncludes, Resource metadata) throws RegistryException
xmlSchema
- the schema to saveprocessedSchemaMap
- a Map from original URI (String) to new schema location (String)changeSchemaNames
- a Map from original URIs to changed URIs. Used to update the WSDL
inline schema imports/includes when saving WSDLs.visitedSchemas
- a Set of schema URIs (Strings) that we've already visitedisWSDLInlineSchema
- true if this is an inline schema from a WSDLregistryBasePath
- the base path of the registryprocessIncludes
- true if we should recurse into includes of this schemametadata
- template Resource for metadata (media-type, description)
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |