| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Log | |
| private static final int | NUMBER_OF_SCHEMAS
The expected number of XML schemas managed by this class. |
| private static final ConcurrentMap | |
| private static final QName | |
| private final XMLInputFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized XMLEventReader | |
| private StartElement | |
| public Schema | |
| public String | Returns: The value of the "version" attribute. For compatibility with BV 1.0, "1.0" will be returned if the given stream doesn't have a "version" attribute.The name of the represented XML resource. resourceName, XMLEventReader An STAX event reader xmlEventReader)Retrieves the schema version applying for the given XML input stream as represented by the "version" attribute of the root element of the stream. |
| private String | |
| private Schema | |
| private <T> T | run(PrivilegedAction<T> action)
Runs the given privileged action, using a privileged block if required. |
| private <T> T |
| DEFAULT_VERSION | back to summary |
|---|---|
| private static final String DEFAULT_VERSION | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| NUMBER_OF_SCHEMAS | back to summary |
|---|---|
| private static final int NUMBER_OF_SCHEMAS The expected number of XML schemas managed by this class. Used to set the initial cache size. | |
| schemaCache | back to summary |
|---|---|
| private static final ConcurrentMap<String, Schema> schemaCache | |
| VERSION_QNAME | back to summary |
|---|---|
| private static final QName VERSION_QNAME | |
| xmlInputFactory | back to summary |
|---|---|
| private final XMLInputFactory xmlInputFactory | |
| XmlParserHelper | back to summary |
|---|---|
| public XmlParserHelper() | |
| createXmlEventReader | back to summary |
|---|---|
| public synchronized XMLEventReader createXmlEventReader(String resourceName, InputStream xmlStream) | |
| getRootElement | back to summary |
|---|---|
| private StartElement getRootElement(XMLEventReader xmlEventReader) throws XMLStreamException | |
| getSchema | back to summary |
|---|---|
| public Schema getSchema(String schemaResource) Returns the XML schema identified by the given resource name. | |
| getSchemaVersion | back to summary |
|---|---|
| public String getSchemaVersion(String resourceName, XMLEventReader xmlEventReader) Retrieves the schema version applying for the given XML input stream as represented by the "version" attribute of the root element of the stream. The given reader will be advanced to the root element of the given XML structure. It can be used for unmarshalling from there.
| |
| getVersionValue | back to summary |
|---|---|
| private String getVersionValue(StartElement startElement) | |
| loadSchema | back to summary |
|---|---|
| private Schema loadSchema(String schemaResource) | |
| run | back to summary |
|---|---|
| private <T> T run(PrivilegedAction<T> action) Runs the given privileged action, using a privileged block if required. Note This must never be changed into a publicly available method to avoid execution of arbitrary privileged actions within HV's protection domain.
| |
| run | back to summary |
|---|---|
private <T> T run(PrivilegedExceptionAction<T> action) throws Exception
| |