| java.lang.Object org.mmbase.util.xml.DocumentReader org.mmbase.storage.util.StorageReader
StorageReader | public class StorageReader extends DocumentReader (Code) | | author: Pierre van Rooden version: $Id: StorageReader.java,v 1.16 2008/02/18 14:09:42 michiel Exp $ since: MMBase-1.7 |
DTD_STORAGE | final public static String DTD_STORAGE(Code) | | DTD resource filename of the most Database DTD
|
DTD_STORAGE_1_0 | final public static String DTD_STORAGE_1_0(Code) | | DTD resource filename of the Database DTD version 1.0
|
PUBLIC_ID_STORAGE | final public static String PUBLIC_ID_STORAGE(Code) | | Public ID of the most recent Database DTD
|
PUBLIC_ID_STORAGE_1_0 | final public static String PUBLIC_ID_STORAGE_1_0(Code) | | Public ID of the Storage DTD version 1.0
|
factory | protected StorageManagerFactory factory(Code) | | The factory for which the reader reads the document.
The factory is used to verify whether the document is compatible, and is used to instantiate objects
that depend on factory information (such as schemes)
|
StorageReader | public StorageReader(StorageManagerFactory factory, InputSource source)(Code) | | Constructor.
Parameters: factory - the factory for which to read the storage configuration Parameters: source - to the xml document. since: MMBase-1.7 |
getAttributes | public Map<String, Object> getAttributes()(Code) | | Reads all attributes from the reader and returns them as a map.
This include options, as well as the following special attributes:
- option-disallowed-fields-case-sensitive : has the Boolean value TRUE if disallowed fields are case sensitive (default FALSE)
attributes as a map |
getDisallowedFields | public Map<String, String> getDisallowedFields()(Code) | | Returns all disallowed fields and their possible alternate values.
The fields are returned as name-value pairs, where the disallowedfieldname is the key, and
the alternate name is the value (null if no name is given).
disallowed fields as a map |
getSearchQueryHandlerClasses | public List<Class<?>> getSearchQueryHandlerClasses() throws StorageConfigurationException(Code) | | Attempt to obtain a list of SearchQueryHandler classes, using the classname as given in the configuration.
A List of Class objects, each being the SearchQueryHandler class, or an empty list if none was configured throws: StorageConfigurationException - if the class configured is invalid |
getStorageManagerClass | public Class<SM> getStorageManagerClass() throws StorageConfigurationException(Code) | | Attempt to load a StorageManager class, using the classname as given in the configuration.
The method verifies whether the instantiated class is of the correct version.
the storage manager Class, or null if none was configured throws: StorageConfigurationException - if the factory version did not match, or the class configured is invalid |
getStoreBinaryAsFileObjects | public List<String> getStoreBinaryAsFileObjects()(Code) | | since: MMBase-1.8.5 |
getTypeMappings | public List<TypeMapping> getTypeMappings()(Code) | | Returns all type mappings.
The mappings are returned in the order that they were given in the reader.
Calling code should sort this list if they want to use TypoMapping fuzzy matching.
a List of TypeMapping objects |
Methods inherited from org.mmbase.util.xml.DocumentReader | public static void appendChild(Element parent, Element newChild, String path)(Code)(Java Doc) public static String getAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc) public List<Element> getChildElements(String path)(Code)(Java Doc) public List<Element> getChildElements(Element e)(Code)(Java Doc) public List<Element> getChildElements(String path, String tag)(Code)(Java Doc) public List<Element> getChildElements(Element e, String tag)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder()(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc) public static DocumentBuilder getDocumentBuilder(boolean validating, boolean xsd, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc) public String getElementAttributeValue(String path, String attr)(Code)(Java Doc) public String getElementAttributeValue(Element e, String attr)(Code)(Java Doc) public Element getElementByPath(String path)(Code)(Java Doc) public Element getElementByPath(Element e, String path)(Code)(Java Doc) public String getElementName(Element e)(Code)(Java Doc) public String getElementValue(String path)(Code)(Java Doc) public String getElementValue(Element e)(Code)(Java Doc) public static String getNodeTextValue(Node n)(Code)(Java Doc) public static String getNodeTextValue(Node n, boolean trim)(Code)(Java Doc) public Element getRootElement()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public static boolean hasAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc) public static void main(String argv) throws Exception(Code)(Java Doc) public static void registerPublicIDs()(Code)(Java Doc) public static void setNodeTextValue(Node n, String value)(Code)(Java Doc) public static void setPrefix(Document d, String ns, String prefix)(Code)(Java Doc) public void setSystemId(String url)(Code)(Java Doc) public static Document toDocument(Element element)(Code)(Java Doc) final protected static boolean validate()(Code)(Java Doc) final protected static boolean validate(boolean requested)(Code)(Java Doc)
|
|
|