|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.sixdml.excelon.xlnSixdmlResource
ExcelonSixdmlResource.java This class represents an XML document that can be stored in the eXcelon DXE database. Unlike eXcelon's XMLDocument class, this class is not kept consistent with the persistent version in the database but instead the class is only stored in the database when requested explicitly. Created: Thu Jan 10 23:31:07 2002
| Field Summary | |
private String |
name
The name of the resource, which should be the same as the filename of XML file. |
private Collection |
parent
The parent collection of this resource. |
private com.exln.dxe.dom.XlnDOMTransientDocument |
xlnDoc
The DOM document that holds the XML in the resource. |
| Fields inherited from interface org.xmldb.api.modules.XMLResource |
RESOURCE_TYPE |
| Constructor Summary | |
private |
xlnSixdmlResource()
Default constructor private because an instance of this class must always be instantiated with an underlying DOM document . |
(package private) |
xlnSixdmlResource(com.exln.dxe.dom.XlnDOMTransientDocument doc,
String name,
org.sixdml.excelon.xlnSixdmlCollection parent)
Creates a resource from an eXcelon DXE XlnDOMTransientDocument. |
(package private) |
xlnSixdmlResource(com.exln.dxe.filesystem.XMLDocument doc,
org.sixdml.excelon.xlnSixdmlCollection parent)
Creates a resource from an eXcelon DXE XMLDocument. |
| Method Summary | |
Object |
getContent()
Retrieves the content from the resource. |
Node |
getContentAsDOM()
Returns the content of the Resource as a DOM Node by making a deep copy of the DOM document used internally by this resource. |
void |
getContentAsSAX(ContentHandler handler)
Gets the content of the Resource using SAX ContentHandler as the source. |
String |
getDocumentId()
Returns the unique id for the parent document to this Resource. |
String |
getId()
Returns the unique id for this Resource or null if the Resource is anonymous. |
String |
getName()
Gets the name of the resource. |
Collection |
getParentCollection()
Returns the Collection instance that this resource is associated with. |
String |
getResourceType()
Returns the resource type for this Resource. |
(package private) String |
getXML()
Returns the contents of this resource as an XML string. |
void |
setContent(Object value)
Sets the content for this resource. |
void |
setContentAsDOM(Node content)
Sets the content of the Resource using a DOM Node as the source. |
ContentHandler |
setContentAsSAX()
Sets the content of the Resource using a SAX ContentHandler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Collection parent
private String name
private com.exln.dxe.dom.XlnDOMTransientDocument xlnDoc
| Constructor Detail |
private xlnSixdmlResource()
xlnSixdmlResource(com.exln.dxe.filesystem.XMLDocument doc,
org.sixdml.excelon.xlnSixdmlCollection parent)
doc - XML document to obtain XML for resource from.parent - the parent collection.
xlnSixdmlResource(com.exln.dxe.dom.XlnDOMTransientDocument doc,
String name,
org.sixdml.excelon.xlnSixdmlCollection parent)
doc - The transient XML document to obtain XML for resource from.name - The name of the resource.parent - the parent collection.| Method Detail |
public void setContentAsDOM(Node content)
throws XMLDBException
setContentAsDOM in interface XMLResourcecontent - The new content value
XMLDBException - if the DOM node is not an Element node.ErrorMessages.WRONG_CONTENT_TYPE_ELEM_NODEpublic Node getContentAsDOM()
getContentAsDOM in interface XMLResource
public void getContentAsSAX(ContentHandler handler)
throws XMLDBException
getContentAsSAX in interface XMLResourcehandler - the SAX content handler
XMLDBException - always.ErrorMessages.NOT_IMPLEMENTED
public ContentHandler setContentAsSAX()
throws XMLDBException
setContentAsSAX in interface XMLResourceXMLDBException - always.ErrorMessages.NOT_IMPLEMENTEDpublic String getName()
getName in interface SixdmlResourcepublic String getDocumentId()
getDocumentId in interface XMLResourcepublic void setContent(Object value)
setContent in interface Resourcevalue - the content value to set for the resource.public Object getContent()
getContent in interface Resourcepublic String getResourceType()
getResourceType in interface Resourcepublic String getId()
getId in interface Resourcepublic Collection getParentCollection()
getParentCollection in interface ResourceString getXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||