|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface for managing schemas. This interface is common for client and server side. Note: uriFullName is the name of the schema including the absolute resource folder path under which the schema is stored. The minimal uriFullName is /SysSchema followed by the schema name. Deeper folder structures can be used and in many cases have to be used when loading groups of schemas that include each other.
| Method Summary | |
void |
addSchema(URI uriSrc,
URI uriFullName)
add the named schema into global schema storage and save it's file and supporting files to disk. |
boolean |
doesExist(URI uriFullName)
Does this schema exist. |
Vector |
getBindings(URI uriFullName)
get the roots which this schema is bound to. |
SchemaInfo |
getSchemaInfo(URI uriFullName)
Returns SchemaInfo specified by schemaName. |
Iterator |
getSchemaNameIterator()
Return an iterator of the names of schemas. |
void |
refresh()
Either loads all the schemas from server or marks them as stale so they will be reloaded when they are subsequently retrieved via getSchemaInfo etc. |
void |
removeAll()
Remove all the schemas from XDB. |
void |
removeSchema(URI uriFullName)
Removes a schema from the system. |
| Method Detail |
public void addSchema(URI uriSrc,
URI uriFullName)
throws XDBException
uriSrc - URI of the source file, to be interpretted by the subclass.uriFullName - URI of the to be saved full name. eg: /SysSchema/foo.xsd.
If this URI contains folders that are not created then they will be automatically.
If you wish to create folders by hand then
use the resource API and create categories under /SysSchema.
Schemas with the extension .dtd will be treated as DTDs all others will be treated as
W3C Schema documents.
XDBException - - EC_DuplicatedSchema: This schema is already added.public SchemaInfo getSchemaInfo(URI uriFullName)
uriFullName - eg: /SysSchema/foo.xsd. The name of the schema (fullName), as provided when the schema was added.
SysException - - SysErr.EC_SchemaNotFound
public void removeSchema(URI uriFullName)
throws XDBException
uriFullName - eg: /SysSchema/foo.xsd. The full name of the schema to remove.
XDBException - - XDBErr.EC_RootSchemaIntegrity: this schema is bound to any root.public boolean doesExist(URI uriFullName)
uriFullName - eg: /SysSchema/foo.xsd. The full name of the schema.
public void refresh()
throws XDBException
XDBException - thrown if an error occurs during the refresh operation.
public void removeAll()
throws XDBException
XDBException - - XDBErr.EC_RootSchemaIntegrity: any schema is bound to any root.
public Iterator getSchemaNameIterator()
throws XDBException
XDBException
public Vector getBindings(URI uriFullName)
throws XDBException
uriFullName -
XDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||