|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.validation.internal.DatabaseResources
public class DatabaseResources
Helper class for accessing grammars.
| Field Summary | |
|---|---|
static String |
CATALOG
|
static String |
FIND_DTD_IN_CATALOG
|
static String |
FIND_PUBLICID_IN_CATALOGS
|
static String |
FIND_XSD
|
static String |
FIND_XSD_IN_CATALOG
|
static String |
PUBLICID
|
static String |
TARGETNAMESPACE
|
| Constructor Summary | |
|---|---|
DatabaseResources(BrokerPool pool)
Creates a new instance of DatabaseResources. |
|
| Method Summary | |
|---|---|
Sequence |
executeQuery(XmldbURI collection,
Map params,
String queryPath)
Execute query with supplied parameters. |
List |
getAllResults(Sequence sequence)
Convert sequence into list of strings. |
static String |
getCollectionPath(String path)
Get collection pathname from path. |
static String |
getDocumentName(String path)
Get document name from path. |
String |
getDtdPath(XmldbURI collection,
String publicId)
Find document catalogPath of DTD describing a publicId. |
String |
getDtdPathFromCatalog(XmldbURI collection,
String docName,
String publicId)
Get DTD path information from catalog. |
String |
getFirstResult(Sequence sequence)
Get first entry of sequence as String. |
byte[] |
getResource(String documentPath)
Get document from database. |
String |
getSchemaPath(XmldbURI collection,
String namespace)
Find document path of XSD describing a namespace. |
String |
getSchemaPathFromCatalog(XmldbURI collection,
String docName,
String namespace)
Get schema path information from catalog. |
boolean |
insertResource(String documentPath,
byte[] grammar)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String FIND_XSD
public static String FIND_PUBLICID_IN_CATALOGS
public static String FIND_XSD_IN_CATALOG
public static String FIND_DTD_IN_CATALOG
public static String PUBLICID
public static String TARGETNAMESPACE
public static String CATALOG
| Constructor Detail |
|---|
public DatabaseResources(BrokerPool pool)
pool - Instance shared broker pool.| Method Detail |
|---|
public List getAllResults(Sequence sequence)
sequence - Result of query.
public String getFirstResult(Sequence sequence)
sequence - Result of query.
public Sequence executeQuery(XmldbURI collection,
Map params,
String queryPath)
collection - Collection in which query is executed.params - Map of parameters used in cqueryqueryPath - Path to xquery in classpath
public String getSchemaPath(XmldbURI collection,
String namespace)
collection - Start point for search, e.g. '/db'.namespace - Namespace that needs to be found.
public String getDtdPath(XmldbURI collection,
String publicId)
collection - Start point for search, e.g. '/db'.publicId - PublicID that needs to be found.
public byte[] getResource(String documentPath)
documentPath - Path to the resource.
public boolean insertResource(String documentPath,
byte[] grammar)
public static String getDocumentName(String path)
path - The Path
public static String getCollectionPath(String path)
path - The Path
public String getSchemaPathFromCatalog(XmldbURI collection,
String docName,
String namespace)
collection - Collection containing the catalog filedocName - Catalog filenamenamespace - This namespace needs to be resolved
public String getDtdPathFromCatalog(XmldbURI collection,
String docName,
String publicId)
collection - Collection containing the catalog filedocName - Catalog filenamepublicId - This publicId needs to be resolved
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||