kaos.xmlschema.repository
Interface XMLRepository

All Known Implementing Classes:
CorbaAgentDirectoryServiceProxy, CougaarAgentDirectoryServiceProxy, DirectoryServiceProxy, GridAgentDirectoryServiceProxy, GridDirectoryServicePolicyCert, KAoSAgentDirectoryServiceProxy, KAoSDirectoryService, TCPAgentDirectoryServiceProxy, TunnelClient, XMLRepositoryImpl

public interface XMLRepository


Method Summary
 java.util.List<XMLSchemaContainer> getAllSchema()
          Retrieve all schemas in the repository.
 java.util.List<java.lang.String> getSchema(java.lang.String dataName)
          Retrieve the schema for the given data type.
 void loadSchema(java.lang.String fileName)
          Load schema definitions of data types from a file.
 void putMultipleSchema(java.util.List<XMLSchemaContainer> schemaList)
          Store multiple schemas in the repository.
 void putSchema(java.lang.String dataName, java.lang.String dataSchema)
          Store the given schema definition under the name of that user defined data type
 void removeSchema(java.lang.String dataName)
          Remove the schema for the given data type from this repository.
 

Method Detail

putMultipleSchema

void putMultipleSchema(java.util.List<XMLSchemaContainer> schemaList)
                       throws DirectoryFailure
Store multiple schemas in the repository.

Parameters:
schemaList - a list containing XMLSchemaContainer objects.
Throws:
DirectoryFailure

getAllSchema

java.util.List<XMLSchemaContainer> getAllSchema()
                                                throws DirectoryFailure
Retrieve all schemas in the repository.

Returns:
list containing XMLSchemaContainer objects.
Throws:
DirectoryFailure

putSchema

void putSchema(java.lang.String dataName,
               java.lang.String dataSchema)
               throws DirectoryFailure
Store the given schema definition under the name of that user defined data type

Parameters:
dataName - the name of the defined data type
Throws:
DirectoryFailure

getSchema

java.util.List<java.lang.String> getSchema(java.lang.String dataName)
                                           throws DirectoryFailure,
                                                  org.relaxng.datatype.DatatypeException
Retrieve the schema for the given data type. Please note that a derived data type can have as its parent a data type which is also derived from some other data type. hence the method returns a vector, containing schema definitions for all such data types in the hierarchy.

Parameters:
dataName - the name of the data type to be retrieved
Returns:
a vector containing all the data type definitions in the chain of inheritance.
Throws:
DirectoryFailure
org.relaxng.datatype.DatatypeException

removeSchema

void removeSchema(java.lang.String dataName)
                  throws DirectoryFailure,
                         org.relaxng.datatype.DatatypeException
Remove the schema for the given data type from this repository.

Parameters:
dataName - the name of the data type to be removed.
Throws:
DirectoryFailure
org.relaxng.datatype.DatatypeException

loadSchema

void loadSchema(java.lang.String fileName)
                throws DirectoryFailure,
                       org.relaxng.datatype.DatatypeException
Load schema definitions of data types from a file.

Parameters:
fileName - the name of the file or the url that stores schema definitions
Throws:
DirectoryFailure
org.relaxng.datatype.DatatypeException