|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A repository for XML documents, schemas, DTDs, transforms and templates. The repository can also be used as a SAX EntityResolver.
Field Summary | |
static java.lang.String |
DTD
Type key for XML Document Type Definitions. |
static java.lang.String |
SERVICE_NAME
|
static java.lang.String |
VM
Type key for Velocity templates. |
static java.lang.String |
WSDL
Type key for Web Services Description Language. |
static java.lang.String |
XML
Type key for XML document instances. |
static java.lang.String |
XSD
Type key for XML Schemas. |
static java.lang.String |
XSL
Type key for XML Stylesheets and Transformations. |
Method Summary | |
void |
createEntity(ResourceMetaData entity)
Registers an XML entity. |
void |
deleteEntity(java.lang.String id)
Unregisters an XML entity. |
java.io.InputStream |
findEntity(java.lang.String id)
Opens an XML entity for reading. |
ResourceMetaData[] |
findXMLMetaData(boolean includeContent)
Finds meta-data for all entities. |
ResourceMetaData |
findXMLMetaData(java.lang.String id,
boolean includeContent)
Finds meta-data for an XML entity. |
ResourceMetaData |
findXMLType(java.lang.String type,
java.lang.String locale)
Returns information about the specified XML type. |
ResourceMetaData[] |
findXMLTypes(java.lang.String locale)
Finds all entity types known to the repository. |
void |
updateEntity(ResourceMetaData entity)
Updates an XML entity. |
Methods inherited from interface org.obe.spi.WorkflowService |
exit, getServiceManager, getServiceName, init |
Methods inherited from interface org.xml.sax.EntityResolver |
resolveEntity |
Methods inherited from interface javax.xml.transform.URIResolver |
resolve |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String XML
public static final java.lang.String DTD
public static final java.lang.String XSD
public static final java.lang.String XSL
public static final java.lang.String WSDL
public static final java.lang.String VM
Method Detail |
public ResourceMetaData[] findXMLTypes(java.lang.String locale) throws RepositoryException
locale
- The locale in which the results should be formatted.
RepositoryException
- if an error occurred.public ResourceMetaData findXMLType(java.lang.String type, java.lang.String locale) throws RepositoryException
type
- The entity type: XML
, DTD
, XSD
,
XSL
, VM
.locale
- The locale in which the results should be formatted.
ObjectNotFoundException
- if the entity type is unknown.
RepositoryException
- if some other error occurred.public void createEntity(ResourceMetaData entity) throws RepositoryException
entity
meta-data must contain
non-null content
.
entity
- The entity definition.
ObjectAlreadyExistsException
- if the entity ID is already
registered.
RepositoryException
- if the entity could not be registered some
other reason.public void deleteEntity(java.lang.String id) throws RepositoryException
id
- The entity ID (publicId if it has one, otherwise systemId).
ObjectNotFoundException
- if the entity ID is not registered.
RepositoryException
- if the entity could not be unregistered for
some other reason.public void updateEntity(ResourceMetaData entity) throws RepositoryException
entity
meta-data contains
non-null content
, the repository
persists the updated content. Otherwise, any existing content remains
intact.
entity
- The entity definition.
ObjectNotFoundException
- if the entity ID is not registered.
RepositoryException
- if the entity could not be updated for some
other reason.public ResourceMetaData[] findXMLMetaData(boolean includeContent) throws RepositoryException
includeContent
- true
if the
content
property of the returned
meta-data objects should be populated with the content of the XML
entities.
RepositoryException
- if an error occurred.public ResourceMetaData findXMLMetaData(java.lang.String id, boolean includeContent) throws RepositoryException
id
- The entity ID.includeContent
- true
if the
content
property of the returned
meta-data object should be populated with the content of the XML entity.
ObjectNotFoundException
- if the entity ID is not registered.
RepositoryException
- if some other error occurred.public java.io.InputStream findEntity(java.lang.String id) throws RepositoryException
id
- The entity ID.
ObjectNotFoundException
- if the entity ID is not registered.
RepositoryException
- if some other error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |