|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcometa.exist.MetadataDB
public class MetadataDB
This class contains all the method that allow to communicate with the metadata database (we are using eXist, for more information plese refer to the database documentation.) Note: the fields of this class must be configured when the framework is installed.
Constructor Summary | |
---|---|
MetadataDB()
It creates a new instance of |
Method Summary | |
---|---|
java.util.ArrayList<java.lang.String> |
getAllMethods()
Returns all the methods stored in the metadata database. |
org.xmldb.api.base.Collection |
getCollection(java.lang.String collection)
Returns a database collection (a set of XML documents). |
org.xmldb.api.modules.XMLResource |
getDocument(java.lang.String doc,
org.xmldb.api.base.Collection col)
Returns a document in the eXist XMLResource format. |
static java.lang.String |
getLogFile()
|
static java.lang.String |
getMethodCollection()
|
Method |
getMethodObject(org.xmldb.api.modules.XMLResource xmlMethod,
boolean validateXML)
Transforms a method XMLResource into a method object (JAXB). |
Method |
getMethodObjectWithID(java.lang.String methodID,
boolean validateXML)
Returns a method instance (thanks to the JAXB architecture), given its ID (String). |
static java.lang.String |
getMethodSchema()
|
org.xmldb.api.modules.XMLResource |
getMethodWithID(java.lang.String methodID)
Returns a method in the eXist XMLResource format, given its ID (String). |
Product |
getProductObject(org.xmldb.api.modules.XMLResource xmlProduct,
boolean validateXML)
Transforms a product XMLResource into a product object (JAXB). |
Product |
getProductObjectWithID(java.lang.String productID,
boolean validateXML)
Returns a product instance (thanks to the JAXB architecture), given its ID (String). |
static java.lang.String |
getProductSchema()
|
static java.lang.String |
getProductsCollection()
|
org.xmldb.api.modules.XMLResource |
getProductWithID(java.lang.String productID)
Returns a product in the eXist XMLResource format, given its ID (String). |
static java.lang.String |
getResultsCollection()
|
static java.lang.String |
getURI()
|
static java.lang.String |
getValidationCollection()
|
static java.lang.String |
getValidationDirectory()
|
static ValidateXML |
getValidator()
|
static java.lang.String |
getXmlFilesWorkingDirectory()
|
static void |
setValidator(ValidateXML aValidator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataDB()
MetadataDB.
Method Detail |
---|
public org.xmldb.api.modules.XMLResource getDocument(java.lang.String doc, org.xmldb.api.base.Collection col)
doc
- The document name.col
- The collection name.
XMLResourcefor the required document.
public org.xmldb.api.base.Collection getCollection(java.lang.String collection)
collection
- The collection's name.
public java.util.ArrayList<java.lang.String> getAllMethods()
public org.xmldb.api.modules.XMLResource getMethodWithID(java.lang.String methodID)
methodID
- The ID of the required method.
XMLResourcefor the required ID.
public Method getMethodObjectWithID(java.lang.String methodID, boolean validateXML)
methodID
- The method ID.validateXML
- A boolean value that indicates wether the method metadata has to be checked against the corresponding
XML Schema or not.
public org.xmldb.api.modules.XMLResource getProductWithID(java.lang.String productID)
productID
- The product ID.
XMLResourcefor the required ID.
public Product getProductObjectWithID(java.lang.String productID, boolean validateXML)
productID
- The product ID.validateXML
- A boolean value that indicates wether the product metadata has to be checked against the corresponding
XML Schema or not.
public Method getMethodObject(org.xmldb.api.modules.XMLResource xmlMethod, boolean validateXML)
xmlMethod
- The XML Resourcefor the method to be translated.
validateXML
- A boolean value that indicates wether the method metadata has to be checked against the corresponding
XML Schema or not.
public Product getProductObject(org.xmldb.api.modules.XMLResource xmlProduct, boolean validateXML)
xmlProduct
- The XML Resourcefor the product to be translated.
validateXML
- A boolean value that indicates wether the product metadata has to be checked against the corresponding
XML Schema or not.
public static java.lang.String getMethodCollection()
public static java.lang.String getProductsCollection()
public static java.lang.String getResultsCollection()
public static java.lang.String getXmlFilesWorkingDirectory()
public static java.lang.String getURI()
public static java.lang.String getValidationCollection()
public static java.lang.String getProductSchema()
public static java.lang.String getMethodSchema()
public static ValidateXML getValidator()
public static void setValidator(ValidateXML aValidator)
public static java.lang.String getValidationDirectory()
public static java.lang.String getLogFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |