Package org.apache.xmlbeans
package org.apache.xmlbeans
Provides classes for XML Beans schema, infoset, xpath, and xquery handling.
The XML Beans API is designed to work with the XML Beans schema compiler. The schema compiler produces XML Bean classes that extend and interact with the basic XML Bean classes and interfaces in this package. It is also possible to use XML Beans without the schema compiler to manipulate and validate XML in a late-bound way (with no types, or with runtime-loaded types only).
This package contains:
- All the built-in XML Bean classes
such as
XmlObject
,XmlAnySimpleType
, andXmlInt
(one for each of the 46 built-in XML Schema types). - Support for full XML infoset, XPath, and XQuery
(via
XmlCursor
,XmlObject.selectPath(java.lang.String)
and related methods). - Support for computation using XML Schema data types (via datatype
classes such as
GDuration
). - Support for working with XML Schema type metadata itself
(via
SchemaType
,SchemaTypeSystem
, and related classes).
The place to begin when working with the XML Beans API is the following fundamental classes:
XmlObject
is the base class for all XML Beans.-
invalid reference
org.apache.xmlbeans.XmlObject.Factory
XmlCursor
is an efficient treewalking API for the full XML infoset.SchemaType
is the type metadata interface for XML Schema typesXmlBeans
provides a collection of utility functions.
-
ClassDescriptionThe BindingConfig class is used during compilation to control the generation of java source files.Represents a CDATA bookmark.See
FilterXmlObject
A FilterXmlObject delegates to some other XmlObject, which it can use as its basic source of data, possibly transforming the data along the way or providing additional functionality.Represents an XML Schema-compatible Gregorian date.Used to buildGDates
.Represents an XML Schema-compatible Gregorian date.Represents an XML Schema-compatible duration.Used to buildGDurations
.Represents an XML Schema-compatible duration.generic interface to abstract creation of an objectA cache that can be used to pool QName instances.This interface represents a lattice of finite and infinite sets of QNames.Used to buildQNameSets
.Represents a lattice of finite and infinite sets of QNames.Marker interface denoting that an annotation can be presentRepresents a Schema annotation.Represents an attribute instanceRepresents an attribute group.Used to allow on-demand loading of attribute groups.Represents the attribute structure allowed on a complex type.Represents a Schema bookmark.This class is used to provide alternate implementations of the schema Java code generation.Represents a global Schema Component.A lazy reference to a component.Represents an element or an attribute declaration.Represents a global attribute definitionUsed to allow on-demand loading of elements.Represents a global element definition.Used to allow on-demand loading of elements.Represents an identity constraint definition.Used to allow on-demand loading of identity constraints.Represents a local or global attribute definition.Represents a local or global element definition.Represents a model group.Used to allow on-demand loading of model groups.Represents a Schema particle definition.Represents a summary of similar SchemaFields in a complex type.Describes a code-generated string enumerationRepresents a schema type.Used to allow on-demand loading of types.This class is used to programatically validate the contents of an XML element.Call to bothSchemaTypeElementSequencer.next(javax.xml.namespace.QName)
andSchemaTypeElementSequencer.peek(javax.xml.namespace.QName)
will return true if the element with the provided name is allowed at the current position in the element content, the difference being thatSchemaTypeElementSequencer.next(javax.xml.namespace.QName)
will advance the current position, whileSchemaTypeElementSequencer.peek(javax.xml.namespace.QName)
won't.Represents a searchable set of XML Schema component definitions.An exception that is thrown if there is corruption or a version mismatch in a compiled schema type system.A finite set of XML Schema component definitions.All XmlObject implementations can be coerced to SimpleValue.The base class for code-generated string enumeration value classes.Used to manage singleton instances of enumerations.The UserType class represents a mapping between an XML Schema QName and a custom Java class type.Corresponds to the XML Schema xs:anySimpleType type.Corresponds to the XML Schema xs:anyURI type.Corresponds to the XML Schema xs:base64Binary type.A class with methods for creating instances ofXmlBase64Binary
.Provides an assortment of utilities for managing XML Bean types, type systems, QNames, paths, and queries.Corresponds to the XML Schema xs:boolean type.Corresponds to the XML Schema xs:byte type.An XML Schema compatible subclass ofGregorianCalendar
.Represents a position between two logical tokens in an XML document.Represents the state of a dcoument at a particular point in time.An enumeration that identifies the type of an XML token.Subclasses of XmlBookmark can be used to annotate an XML document.An abstractXmlCursor
factory.Corresponds to the XML Schema xs:date type.Corresponds to the XML Schema xs:dateTime type.Corresponds to the XML Schema xs:decimal type.This class is used to attach arbitrary information to an XML document.Corresponds to the XML Schema xs:double type.Corresponds to the XML Schema xs:duration type.Corresponds to the XML Schema xs:ENTITIES type, a list type.Corresponds to the XML Schema xs:ENTITY type.Represents a message at a specific XML location.A checked exception that can be thrown while processing, parsing, or compiling XML.A hook for the XML Bean Factory mechanism.Used to manage the XmlFactoryHook for the current thread.Corresponds to the XML Schema xs:float type.Corresponds to the XML Schema xs:gDay type.Corresponds to the XML Schema xs:gMonth type.Corresponds to the XML Schema xs:gMonthDay type.Corresponds to the XML Schema xs:gYear type.Corresponds to the XML Schema xs:gYearMonth type.Corresponds to the XML Schema xs:hexBinary type.Corresponds to the XML Schema xs:ID type.Corresponds to the XML Schema xs:IDREF type.Corresponds to the XML Schema xs:IDREFS type, a list type.Corresponds to the XML Schema xs:int type.Corresponds to the XML Schema xs:integer type.Corresponds to the XML Schema xs:language type.A subclass of XmlBookmark that holds line number information.Corresponds to the XML Schema xs:long type.Corresponds to the XML Schema xs:Name type.Corresponds to the XML Schema xs:Name type.Corresponds to the XML Schema xs:negativeInteger type.Corresponds to the XML Schema xs:NMTOKEN type.Corresponds to the XML Schema xs:NMTOKENS type, a list type.Corresponds to the XML Schema xs:nonNegativeInteger type.Corresponds to the XML Schema xs:nonPositiveInteger type.Corresponds to the XML Schema xs:normalizedString type.Corresponds to the XML Schema xs:NOTATION type.Corresponds to the XML Schema xs:anyType, the base type for all XML Beans.Corresponds to the Saver and XmlOptions.Used to supply options for loading, saving, and compiling, and validating.Corresponds to the XML Schema xs:positiveInteger type.Corresponds to the XML Schema xs:QName type.An unchecked XML exception.A holder for a SAXContentHandler
andLexicalHandler
that are capable of loading anXmlObject
instance.Corresponds to the XML Schema xs:short type.The immutableList
returned for XML simple list values.Corresponds to the XML Schema xs:string type.Corresponds to the XML Schema xs:time type.Corresponds to the XML Schema xs:token type.Corresponds to the XML Schema xs:unsignedByte type.Corresponds to the XML Schema xs:unsignedInt type.Corresponds to the XML Schema xs:unsignedLong type.Corresponds to the XML Schema xs:unsignedShort type.The XmlValidationError class extends theXmlError
XMLError class.