Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2  
org.apache.xmlbeans.samples.abstracttypes.* (2)org.apache.xmlbeans.samples.any.* (6)
org.apache.xmlbeans.samples.anytype.* (2)org.apache.xmlbeans.samples.cursor.* (4)
org.apache.xmlbeans.samples.datetime.* (2)org.apache.xmlbeans.samples.enumeration.* (2)
org.apache.xmlbeans.samples.substitutiongroup.* (2)org.apache.xmlbeans.samples.template.* (2)
org.apache.xmlbeans.samples.validation.* (12)org.apache.xmlbeans.samples.vxsdb.* (1)

Package Samples:

org.apache.xmlbeans.samples.abstracttypes
org.apache.xmlbeans.samples.any.impl
org.apache.xmlbeans.samples.any
org.apache.xmlbeans.samples.anytype
org.apache.xmlbeans.samples.datetime
org.apache.xmlbeans.samples.cursor
org.apache.xmlbeans.samples.template
org.apache.xmlbeans.samples.enumeration
org.apache.xmlbeans.samples.substitutiongroup
org.apache.xmlbeans.samples.validation.todolist.impl
org.apache.xmlbeans.samples.validation.todolist
org.apache.xmlbeans.samples.validation
org.apache.xmlbeans.samples.vxsdb

Classes:

Validation: A sample to illustrate two means for validating XML against schema using features of the XMLBeans API. The features illustrated are: - Validating after changes by using the XmlObject.validate method. This method is exposed by types generated by compiling schema. The validate method validates instances against all aspects of schema. Also, with this method you can specify a Collection instance to capture errors that occur during validation. - Validating "on the fly" using the XmlOptions.VALIDATE_ON_SET constant. This option prompts XMLBeans to validate XML against simple schema types as you set them ...
MixedContent: This sample illustrates how you can use an XML cursor to manipulate the content of an element. Even though working with strongly-typed XML (in which you are accessing the XML through an API generated from schema) provides easy access for getting and setting the entire value of an element or attribute, it does not easily provide finer grained access to an element's content. This sample shows how you can use an XML cursor to "dive into" an element's content, manipulating it on a character-by- character level. The code in this sample is designed to look at the description of each item in an inventory ...
XQueryXPath: A sample to XMLBeans API features for executing XPath and XQuery expressions. The sample illustrates these features: - Using the XmlObject.selectPath and XmlCursor.selectPath methods to execute XPath expressions. The selectPath method's results (if any) are always chunks of the instance queried against. In other words, changes to query results change the original instance. However, you work with results differently depending on whether selectPath was called from an XmlObject or XmlCursor instance. See the SelectPath class for more information. - Using the XmlObject.execQuery and XmlCursor.execQuery ...
XmlTreeFrame: Provides a frame within which to display an instance of the XmlTree , along with a pane within which to display the XML corresponding to a node selected in the tree. The tree's data is managed by the XmlModel and XmlEntry classes, along with XmlTree. The XmlTreeFrame class is merely a container to show the tree in use.
XmlModel: Defines a data model for the XmlTree. Through the data model, the tree can retrieve information about the underlying hierarchical data, including the root of the hierarchy, children of specified nodes, and so on. This data model interacts with the underlying XML data through XmlEntry instances (known as "user objects" in the context of JTree data models). The XmlEntry class knows how to retrieve XML-specific hierarchical information as it is represented by the XmlObject XMLBeans type. In other words, from the tree's perspective, XmlEntry wraps XmlObject.
ExecQuery: This class demonstrates how to use the execQuery method to execute XQuery expressions. Compare the code here with the code in the SelectPath class. That class uses the selectPath method to execute XPath expressions. You can call the execQuery method from either an XmlObject or XmlCursor instance. Calling from XmlObject returns an XmlObject array. Calling from XmlCursor returns a new XmlCursor instance positioned at the root of a fragment containing copies of the XML queried against. Results of the query (if any) are sibling children of the fragment's root.
XmlTree: A tree view on XML, with nodes representing both elements and attributes. See XmlEntry and XmlModel for information on how information about the underlying XML is retrieved for use in the tree. Those classes use XMLBeans to provide a wrapper by which the tree exposes the underlying XML.
Any: A sample that illustrates various ways to manipulate XML whose schema defines elements as type xs:any. Unlike its treatment of other schema types, XMLBeans does not generate accessors for the xs:any particle when compiling schema. Instead, your code handles instances of this type through any of several alternative means, including XPath queries, the selectChildren method, XmlCursor instances and the DOM API. This samples illustrates these alternative approaches.
SelectPath: This class demonstrates how to use the selectPath method to execute XPath expressions. Compare the code here with the code in the ExecQuery class. That class uses the execQuery method to execute XQuery expressions. You can call the selectPath method from either an XmlObject or XmlCursor instance. Calling from XmlObject returns an XmlObject array. Calling from XmlCursor returns void, and you use methods of the cursor to navigate among returned "selections".
XmlEntry: Represents the data for a single node in the XmlTree. This class (known as a "user object" from the JTree perspective) provides a way to get information about the node by essentially wrapping the XmlObject instance that the node represents. The XmlModel class represents the XML data model to the tree by calling methods of this object.
DateTime: The sample illustrates how you can work with XML Schema types date, dateTime, time, duration, gDay. It parses the XML Document, prints first occurence of value, creates a new element and saves it in a new XML Document. This sample illustrates how you can convert XMLBean types to Java types (java.util.Date, java.util.Calendar). It uses the schema defined in datetime.xsd.
SchemaEnum: This sample illustrates how you can access XML values that are defined in schema as enumerations. When a schema containing enumerations is compiled, the generated Java types represent the schema enumerations with Java enumerations. You can access these through their constants and corresponding int values. The schemas used by this sample are defined in PriceSummary.xsd and EasyPO.xsd.
SubstitutionGroup: This sample illustrates how you can access substitution group element names and values defined in the XML document. This sample also demonstrates how to write substitution group elements. The schema used by this sample are defined in EasyPo.xsd
ActionType: An XML actionType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
ActionTypeImpl: An XML actionType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
NameType: An XML nameType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
NameTypeImpl: An XML nameType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
PhoneType: An XML phoneType(@http://xmlbeans.apache.org/samples/xquery/employees). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
PhoneTypeImpl: An XML phoneType(@http://xmlbeans.apache.org/samples/xquery/employees). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
IdType: An XML idType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlInt.
IdTypeImpl: An XML idType(@http://xmlbeans.apache.org/samples/validation/todolist). This is an atomic type that is a restriction of org.apache.xmlbeans.XmlInt.
TodolistDocument: A document containing one todolist(@http://xmlbeans.apache.org/samples/validation/todolist) element. This is a complex type.
TodolistDocumentImpl: A document containing one todolist(@http://xmlbeans.apache.org/samples/validation/todolist) element. This is a complex type.
EmployeesDocument: A document containing one employees(@http://xmlbeans.apache.org/samples/xquery/employees) element. This is a complex type.

Home | Contact Us | Privacy Policy | Terms of Service