javax.xml.stream.XMLStreamConstantsAddressingParser, AdministeredObjectMetaDataParser, ConnectionFactoryMetaDataParser, DataSourceMetaDataParser, DescriptionGroupMetaDataParser, DescriptionMetaDataParser, DisplayNameMetaDataParser, EJBLocalReferenceMetaDataParser, EJBReferenceMetaDataParser, EnvironmentEntryMetaDataParser, IconMetaDataParser, JMSConnectionFactoryMetaDataParser, JMSDestinationMetaDataParser, LifecycleCallbackMetaDataParser, MailSessionMetaDataParser, MessageDestinationMetaDataParser, MessageDestinationReferenceMetaDataParser, ParamValueMetaDataParser, PersistenceContextReferenceMetaDataParser, PersistenceUnitReferenceMetaDataParser, PortComponentRefParser, PropertyMetaDataParser, ResourceEnvironmentReferenceMetaDataParser, ResourceInjectionMetaDataParser, ResourceInjectionTargetMetaDataParser, ResourceReferenceMetaDataParser, RespectBindingParser, RunAsMetaDataParser, SecurityRoleMetaDataParser, SecurityRoleRefMetaDataParser, ServiceReferenceHandlerChainMetaDataParser, ServiceReferenceHandlerChainsMetaDataParser, ServiceReferenceHandlerMetaDataParser, ServiceReferenceMetaDataParser, StubPropertyParserpublic class MetaDataElementParser
extends java.lang.Object
implements javax.xml.stream.XMLStreamConstants
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MetaDataElementParser.DTDInfo |
| Constructor | Description |
|---|---|
MetaDataElementParser() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static boolean |
attributeHasNamespace(javax.xml.stream.XMLStreamReader reader,
int i) |
|
protected static void |
consumeElementContent(javax.xml.stream.XMLStreamReader reader) |
Consume the element content of an XML stream reader (e.g.
|
protected static javax.xml.stream.XMLStreamException |
duplicateNamedElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String name) |
Get an exception reporting that an element of a given type and name has already been declared in this scope.
|
boolean |
equals(java.lang.Object obj) |
Determine if this object is the same as the given object.
|
protected static java.lang.String |
getElementText(javax.xml.stream.XMLStreamReader reader) |
Read the element text, with trimming.
|
protected static java.lang.String |
getElementText(javax.xml.stream.XMLStreamReader reader,
boolean trim) |
Read and return the element text.
|
protected static java.lang.String |
getElementText(javax.xml.stream.XMLStreamReader reader,
boolean trim,
PropertyReplacer propertyReplacer) |
Read the element text, with trimming and replace in properties.
|
protected static java.lang.String |
getElementText(javax.xml.stream.XMLStreamReader reader,
PropertyReplacer propertyReplacer) |
Read the element text, with trimming and replace in properties.
|
int |
hashCode() |
Get the identity hash code of this object.
|
protected static javax.xml.stream.XMLStreamException |
missingRequiredAttributes(javax.xml.stream.XMLStreamReader reader,
java.util.Set<?> required) |
Get an exception reporting a missing, required XML attribute.
|
protected static javax.xml.stream.XMLStreamException |
missingRequiredElement(javax.xml.stream.XMLStreamReader reader,
java.util.Set<?> required) |
Get an exception reporting a missing, required XML child element.
|
protected static javax.xml.namespace.QName |
parseQName(javax.xml.stream.XMLStreamReader reader,
java.lang.String qname) |
|
protected static boolean |
readBooleanAttributeElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName) |
Read an element which contains only a single boolean attribute.
|
protected static java.lang.String |
readDTDLocation(javax.xml.stream.XMLStreamReader reader) |
|
protected static java.lang.String |
readSchemaLocation(javax.xml.stream.XMLStreamReader reader) |
|
protected static java.lang.String |
readStringAttributeElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName) |
Read an element which contains only a single string attribute.
|
protected static void |
requireNoAttributes(javax.xml.stream.XMLStreamReader reader) |
Checks that the current element has no attributes, throwing an
XMLStreamException
if one is found. |
protected static void |
requireNoContent(javax.xml.stream.XMLStreamReader reader) |
Consumes the remainder of the current element, throwing an
XMLStreamException
if it contains any child elements. |
protected static <K,V> java.util.NavigableMap<K,V> |
safeCopyMap(java.util.NavigableMap<K,V> toCopy) |
Returns a new
TreeMap by passing the provided map to its constructor. |
static javax.xml.stream.XMLStreamException |
unexpectedAttribute(javax.xml.stream.XMLStreamReader reader,
int index) |
Get an exception reporting an unexpected XML attribute.
|
protected static javax.xml.stream.XMLStreamException |
unexpectedElement(javax.xml.stream.XMLStreamReader reader) |
Get an exception reporting an unexpected XML element.
|
protected static javax.xml.stream.XMLStreamException |
unexpectedValue(javax.xml.stream.XMLStreamReader reader,
java.lang.Throwable t) |
Get an exception reporting an unexpected XML element or attribute value.
|
protected static javax.xml.stream.XMLStreamException unexpectedValue(javax.xml.stream.XMLStreamReader reader,
java.lang.Throwable t)
reader - the stream readerprotected static javax.xml.stream.XMLStreamException unexpectedElement(javax.xml.stream.XMLStreamReader reader)
reader - the stream readerpublic static javax.xml.stream.XMLStreamException unexpectedAttribute(javax.xml.stream.XMLStreamReader reader,
int index)
reader - the stream readerindex - the element indexprotected static javax.xml.stream.XMLStreamException missingRequiredAttributes(javax.xml.stream.XMLStreamReader reader,
java.util.Set<?> required)
reader - the stream readerrequired - a set of enums whose toString method returns the attribute nameprotected static javax.xml.stream.XMLStreamException missingRequiredElement(javax.xml.stream.XMLStreamReader reader,
java.util.Set<?> required)
reader - the stream readerrequired - a set of enums whose toString method returns the attribute nameprotected static void requireNoAttributes(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
XMLStreamException
if one is found.reader - the readerjavax.xml.stream.XMLStreamException - if an error occursprotected static java.lang.String getElementText(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
reader - the readerjavax.xml.stream.XMLStreamException - if an error occursprotected static java.lang.String getElementText(javax.xml.stream.XMLStreamReader reader,
PropertyReplacer propertyReplacer)
throws javax.xml.stream.XMLStreamException
reader - the readerpropertyReplacer - propertyReplacerjavax.xml.stream.XMLStreamException - if an error occursprotected static java.lang.String getElementText(javax.xml.stream.XMLStreamReader reader,
boolean trim,
PropertyReplacer propertyReplacer)
throws javax.xml.stream.XMLStreamException
reader - the readerpropertyReplacer - propertyReplacertrim - True if the text has to be trimmed before returning. False otherwisejavax.xml.stream.XMLStreamException - if an error occursprotected static java.lang.String getElementText(javax.xml.stream.XMLStreamReader reader,
boolean trim)
throws javax.xml.stream.XMLStreamException
trim value is true, then the text is trimmed before returning.reader - trim - True if the text has to be trimmed before returning. False otherwisejavax.xml.stream.XMLStreamExceptionprotected static void requireNoContent(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
XMLStreamException
if it contains any child elements.reader - the readerjavax.xml.stream.XMLStreamException - if an error occursprotected static javax.xml.stream.XMLStreamException duplicateNamedElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String name)
reader - the stream readername - the name that was redeclaredprotected static boolean readBooleanAttributeElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName)
throws javax.xml.stream.XMLStreamException
reader - the readerattributeName - the attribute name, usually "value"javax.xml.stream.XMLStreamException - if an error occurs or if the element does not
contain the specified attribute, contains other attributes,
or contains child elements.protected static java.lang.String readStringAttributeElement(javax.xml.stream.XMLStreamReader reader,
java.lang.String attributeName)
throws javax.xml.stream.XMLStreamException
reader - the readerattributeName - the attribute name, usually "value" or "name"javax.xml.stream.XMLStreamException - if an error occurs or if the element does not
contain the specified attribute, contains other attributes,
or contains child elements.protected static java.lang.String readSchemaLocation(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected static java.lang.String readDTDLocation(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected static javax.xml.namespace.QName parseQName(javax.xml.stream.XMLStreamReader reader,
java.lang.String qname)
protected static boolean attributeHasNamespace(javax.xml.stream.XMLStreamReader reader,
int i)
protected static <K,V> java.util.NavigableMap<K,V> safeCopyMap(java.util.NavigableMap<K,V> toCopy)
TreeMap by passing the provided map to its constructor.
Thread safety note: toCopy's monitor is held while the TreeMap
is being constructed.K - the type of toCopy's keysV - the type of toCopy's valuestoCopy - the map to copy. Cannot be nullprotected static void consumeElementContent(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
reader - the XML stream readerjavax.xml.stream.XMLStreamExceptionpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other objecttrue if the objects are the samepublic final int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 JBoss by Red Hat. All rights reserved.