java.lang.Objectorg.apache.xmlbeans.XmlDocumentProperties
Direct Known Subclasses:
DocProps
For example, suppose you wanted to associate a filename with the document containing an xml object "xobj". This could be done via the following code:
tokenSource.documentProperties().set(XmlDocumentProperties.NAME, "MyFilename.xml");
To fetch the filename later, given an xobj2 anywhere in the same document, you can write:
filename = (String)tokenSource.documentProperties().get(XmlDocumentProperties.NAME);
| Field Summary | ||
|---|---|---|
| public static final Object | SOURCE_NAME | Used to store the original name (a String) for the source from which the XML document was loaded. This name, if present, is used to identify the document when reporting validation or comilation errors. XmlObject.Factory.parse(File) and SchemaTypeLoader.loadInstance(File) both automatically set this value to the filename. |
| public static final Object | ENCODING | Document encoding |
| public static final Object | VERSION | Document version |
| public static final Object | STANDALONE | Document standlone |
| public static final Object | DOCTYPE_NAME | Doc type name |
| public static final Object | DOCTYPE_PUBLIC_ID | Doc type public id |
| public static final Object | DOCTYPE_SYSTEM_ID | Doc type system id |
| public static final Object | MESSAGE_DIGEST | SHA message digest |
| Method from org.apache.xmlbeans.XmlDocumentProperties Summary: |
|---|
| get, getDoctypeName, getDoctypePublicId, getDoctypeSystemId, getEncoding, getMessageDigest, getSourceName, getStandalone, getVersion, put, remove, setDoctypeName, setDoctypePublicId, setDoctypeSystemId, setEncoding, setMessageDigest, setSourceName, setStandalone, setVersion |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.xmlbeans.XmlDocumentProperties Detail: |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|