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

Quick Search    Search Deep

javax.xml.bind.helpers.* (8)javax.xml.bind.util.* (3)

javax.xml.bind: Javadoc index of package javax.xml.bind.


Package Samples:

javax.xml.bind.util: Clean room implementation of the JAXB standard xml-binding API.  
javax.xml.bind.helpers

Classes:

JAXBContext: The JAXBContext provides the JAXB users anchor to the implmentation and hos generated classes. A JAXBContext is used to obtain instances of Marshaller , Unmarshaller , and Validator . To obtain a JAXBContext, the application invokes JAXBContext context = JAXBContext.newInstance("com.mycompany:com.mycompany.xml"); The list of colon separated package names matches the list in the schemas used to generate classes. In other words: If you have a schema using package name "com.mycompany.xml", then this package name has to be part of the list. The JAXBContext class will scan the given list of packages ...
DatatypeConverterInterface: The DatatypeConverterInterface is a helper class for implementation of custom print() and parse() methods, as specified by jaxb:javaType/@printMethod and jaxb:javaType/@parseMethod . However, the JAXB user won't be accessing this class directly. The JAXB provider is required to create an instance of this class and pass it to the JAXB runtime by invoking DatatypeConverter.setDatatypeConverter(DatatypeConverterInterface) 55 . The JAXB user may access this instance via the static methods of DatatypeConverter . The interface provides methods parseFoo() and printFoo() for any XML Schema type foo . The ...
JAXBSource: This utility class allows to use a JAXB object as the source of a stylesheet transformation. If you depend on any methods from javax.xml.transform.sax.SAXSource , you should use this class. In particular, you must not use the methods SAXSource.setInputSource(InputSource) > SAXSource.setInputSource(InputSource) 55 , or SAXSource.setXMLReader(XMLReader) > SAXSource.setXMLReader(XMLReader) 55 on an instance of JAXBSource . If you depend on these methods, a replacement for the JAXBSource can be obtained as follows: javax.xml.bind.JAXBContext context; javax.xml.bind.Element object; java.io.StringWriter ...
ValidationEventHandler: An instance of ValidationEventHandler allows to customize the reply to instances of ValidationEvent . By default, there is a standard ValidationEventHandler , converting errors and fatal errors in Exceptions. The JAXB user creates instances of ValidationEventHandler and registers them with the Marshaller , Unmarshaller , or Validator . The JAXB provider is required not to throw exceptions directly, but to convert all detected problems into events, which are fired on the ValidationEventHandler .
Validator: A Validator may be used to decide, whether a JAXB object is valid or not. If it is not, the JAXB user may decide to trigger an exception or not (via the ValidationEventHandler and he may receive information on the problems location (via the event handlers ValidationEventLocator . A Validator may be present implicitly, invoked by the Unmarshaller. See Unmarshaller.setValidating(boolean) 55 for more information on that.
Marshaller: An instance of Marshaller may be obtained by the JAXB user to serialize JAXB objects to various flavours of XML. The created XML may be: A byte stream java.io.OutputStream marshal(Object, java.io.OutputStream) 55 A character stream java.io.Writer marshal(Object, java.io.Writer) 55
AbstractUnmarshallerImpl: This is an abstract default implementation of an javax.xml.bind.Unmarshaller . Subclasses only need to implement Unmarshaller.getUnmarshallerHandler() > Unmarshaller.getUnmarshallerHandler() 55 , Unmarshaller.unmarshal(org.w3c.dom.Node) > Unmarshaller.unmarshal(org.w3c.dom.Node) 55 , and unmarshal(org.xml.sax.XMLReader, org.xml.sax.InputSource) 55 .
UnmarshallerHandler: This interface is the SAX org.xml.sax.ContentHandler representation of an Unmarshaller , as returned by Unmarshaller.getUnmarshallerHandler() 55 . It can be embedded into a stack of SAX handlers, for example within Apache Cocoon. The UnmarshallerHandler is reusable: The startDocument() method is expected to perform a reinitialization. Like most other SAX handlers, the UnmarshallerHandler is never thread safe.
ValidationEventLocator: The ValidationEventLocator is an abstract description of the place where a ValidationEvent occurred. Depending on the source or target media (Unmarshalling, or Unmarshalling) or the object being validated, you will most probably find that different fields of the ValidationEventHandler are set. For example, if you are using a org.xml.sax.ContentHandler , you will most probably find that those fields are set, which are common to a org.xml.sax.Locator .
ValidationEvent: An instance of ValidationEvent indicates some error condition, which occurred when validating a JAXB object. The purpose of the ValidationEventHandler is to customize the reply on instances of ValidationEvent . The default event handler will throw an exception in case of events, but application specific validation event handlers need not do the same.
DatatypeConverter: This is a helper class for customized datatypes. It provides a set of static methods which may be useful in custom methods for parsing and printing values. The JAXB provider is responsible to initialize the DatatypeConverter class by invoking setDatatypeConverter(DatatypeConverterInterface) 55 as soon as possible.
Unmarshaller: A Unmarshaller is the opposite of the Marshaller : It takes as input XML in either of several representations (byte or character stream, DOM node, or a series of SAX events) and returns a JAXB object with the same contents. If the JAXB user demands, the Unmarshaller may also validate the content tree that it sees.
DefaultValidationEventHandler: Default implementation of a javax.xml.bind.ValidationEventHandler . Causes the validation to fail as soon as the first error or fatal error is encountered. This instance of javax.xml.bind.ValidationEventHandler is suitable for use of the unmarshallers or validators default event handler.
ValidationEventCollector: Simple implementation of a javax.xml.bind.ValidationEventHandler , which simply collects all the events, regardless whether they are warnings, errors, or fatal errors. You may retrieve these events at a later time using getEvents() 55 .
TypeConstraintException: This is a runtime exception. The desired use is for generated set methods which would like to indicate that the specified value is invalid, for example, because a facet restriction wasn't met. If a generated setter throws a TypeConstraintException , then it is the JAXB providers task to ensure, that the object, on which the setter is invoked, remains unchanged.
JAXBException: This is the main exception class of JAXB. All other exception classes (except the TypeConstraintException , which is a java.lang.RuntimeException are derived from the JAXBException .
Element: This interface doesn't expose any methods. Like java.io.Serializable , it is a marker interface with the single purpose of indicating what the implementation is. See section 5.7 "Element Declaration", and 5.7.1 "Bind to Java Element Interface" of the JAXB specification for more details.
NotIdentifiableEvent: This event is triggered by the various printFoo() methods of the DatatypeConverterInterface , if they are unable to create a lexical representation of their input.
AbstractMarshallerImpl: Default implementation of a Marshaller. The JAXB provider needs to implement only Marshaller.marshal(Object, javax.xml.transform.Result) > Marshaller.marshal(Object, javax.xml.transform.Result) 55 .
UnmarshalException: The MarshalException is a subclass of the JAXBException being thrown if the unmarshalling of a JAXB object failed.
MarshalException: The MarshalException is a subclass of the JAXBException being thrown if the marshalling of a JAXB object failed.
ValidationException: The MarshalException is a subclass of the JAXBException being thrown if the validation of a JAXB object failed.
PropertyException: The PropertyException is a subclass of the JAXBException being thrown if setting or getting a property failed.
ValidationEventLocatorImpl: Default implementation of a javax.xml.bind.ValidationEventLocator .
NotIdentifiableEventImpl: Default implementation of a javax.xml.bind.NotIdentifiableEvent .

Home | Contact Us | Privacy Policy | Terms of Service