|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.repository.server.RepositoryBase org.xiruss.repository.schema_aware.SchemaAwareRepositoryBase
public class SchemaAwareRepositoryBase
Implements a multi-user, schema-aware repository.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
|
protected java.util.Map |
schemaRegistry
|
Fields inherited from class org.xiruss.repository.server.RepositoryBase |
---|
branchesById, branchesByName, defaultStorageManager, dependenciesById, id, interfaceToClassMap, mutableSnapshots, nullBranch, nullMutableSnapshot, nullRepositoryObject, nullResource, nullSnapshot, objectsById, properties, resourcesByAlias, resourcesById, snapshotIdCtr, snapshotsById, usersByAlias, usersById, verIdCtr, versionsByAlias, versionsById |
Fields inherited from interface org.xiruss.repository.api.Repository |
---|
builtinContainerNames, nullDependencyLink, nullDependencyMap, nullRepository, nullResolutionPolicy, nullResourceMap, nullSnapshotMap, nullStorageManager, nullVersion, nullVersionByResourceMap, nullVersionMap |
Constructor Summary | |
---|---|
SchemaAwareRepositoryBase()
|
Method Summary | |
---|---|
Resource |
getSchemaResource(java.lang.String schemaUri)
Returns the resource of the specified schema. |
boolean |
hasSchema(java.lang.String schemaUri)
Returns true if the specified schema URI has been registered. |
void |
registerSchema(java.lang.String schemaUri,
Resource schema)
Registers a schema URI and its location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map schemaRegistry
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public SchemaAwareRepositoryBase() throws RepositoryException
RepositoryException
Method Detail |
---|
public void registerSchema(java.lang.String schemaUri, Resource schema)
registerSchema
in interface SchemaAwareRepository
schemaUri
- The URI (namespace name) of the schema, that is, the namespace that this
schema governs.schema
- The repository resource for the schema as it exists within the repository.public boolean hasSchema(java.lang.String schemaUri)
hasSchema
in interface SchemaAwareRepository
schemaUri
- The URI (namespace name) of the schema.
public Resource getSchemaResource(java.lang.String schemaUri)
getSchemaResource
in interface SchemaAwareRepository
schemaUri
- The schema to get.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |