kaos.xmlschema.repository
Interface XMLRepository

All Known Implementing Classes:
GridDirectoryServicePolicyCert, KAoSDirectoryService, TunnelClient, XMLRepositoryImpl

public interface XMLRepository


Method Summary
 java.util.List getAllSchema()
          to retrieve all schemas in the repositiry.
 java.util.Vector getSchema(java.lang.String dataName)
          to retrieve the schema for the given data type.
 void loadSchema(java.lang.String fileName)
          to load schema definitions of data types from a file.
 void putMultipleSchema(java.util.List schemaList)
          to store multiple schemas in the repositiry.
 void putSchema(java.lang.String dataName, java.lang.String dataSchema)
          to store the given schema definition under the name of that user defined data type
 void removeSchema(java.lang.String dataName)
          to remove the schema for the given data type from this repository.
 

Method Detail

putMultipleSchema

void putMultipleSchema(java.util.List schemaList)
                       throws DirectoryFailure
to store multiple schemas in the repositiry.

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

getAllSchema

java.util.List getAllSchema()
                            throws DirectoryFailure
to retrieve all schemas in the repositiry.

Throws:
DirectoryFailure

putSchema

void putSchema(java.lang.String dataName,
               java.lang.String dataSchema)
               throws DirectoryFailure
to 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.Vector getSchema(java.lang.String dataName)
                           throws DirectoryFailure,
                                  DatatypeException
to 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 dervied 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
DatatypeException

removeSchema

void removeSchema(java.lang.String dataName)
                  throws DirectoryFailure,
                         DatatypeException
to remove the schema for the given data type from this repository.

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

loadSchema

void loadSchema(java.lang.String fileName)
                throws DirectoryFailure,
                       DatatypeException
to 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
DatatypeException