org.apache.geronimo.system.configuration
Class AttributesXmlUtil

java.lang.Object
  extended by org.apache.geronimo.system.configuration.AttributesXmlUtil

public class AttributesXmlUtil
extends java.lang.Object

Version:
$Rev: 724553 $ $Date: 2008-12-09 07:42:25 +0800 (Tue, 09 Dec 2008) $

Field Summary
static javax.xml.bind.JAXBContext ATTRIBUTE_CONTEXT
           
static javax.xml.bind.JAXBContext ATTRIBUTES_CONTEXT
           
static javax.xml.bind.JAXBContext GBEAN_CONTEXT
           
static javax.xml.bind.JAXBContext MODULE_CONTEXT
           
static javax.xml.stream.XMLInputFactory XMLINPUT_FACTORY
           
 
Constructor Summary
AttributesXmlUtil()
           
 
Method Summary
static java.lang.String extractAttributeValue(AttributeType attr)
           
static AttributeType loadAttribute(java.io.Reader in)
           
static AttributesType loadAttributes(java.io.Reader in)
           
static GbeanType loadGbean(java.io.Reader in)
           
static ModuleType loadModule(java.io.Reader in)
           
static void writeAttribute(AttributeType metadata, java.io.Writer out)
           
static void writeAttributes(AttributesType metadata, java.io.Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLINPUT_FACTORY

public static final javax.xml.stream.XMLInputFactory XMLINPUT_FACTORY

ATTRIBUTES_CONTEXT

public static final javax.xml.bind.JAXBContext ATTRIBUTES_CONTEXT

ATTRIBUTE_CONTEXT

public static final javax.xml.bind.JAXBContext ATTRIBUTE_CONTEXT

MODULE_CONTEXT

public static final javax.xml.bind.JAXBContext MODULE_CONTEXT

GBEAN_CONTEXT

public static final javax.xml.bind.JAXBContext GBEAN_CONTEXT
Constructor Detail

AttributesXmlUtil

public AttributesXmlUtil()
Method Detail

writeAttribute

public static void writeAttribute(AttributeType metadata,
                                  java.io.Writer out)
                           throws javax.xml.stream.XMLStreamException,
                                  javax.xml.bind.JAXBException
Throws:
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException

extractAttributeValue

public static java.lang.String extractAttributeValue(AttributeType attr)
                                              throws javax.xml.bind.JAXBException,
                                                     javax.xml.stream.XMLStreamException
Throws:
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

writeAttributes

public static void writeAttributes(AttributesType metadata,
                                   java.io.Writer out)
                            throws javax.xml.stream.XMLStreamException,
                                   javax.xml.bind.JAXBException
Throws:
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException

loadAttributes

public static AttributesType loadAttributes(java.io.Reader in)
                                     throws javax.xml.parsers.ParserConfigurationException,
                                            java.io.IOException,
                                            org.xml.sax.SAXException,
                                            javax.xml.bind.JAXBException,
                                            javax.xml.stream.XMLStreamException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

loadModule

public static ModuleType loadModule(java.io.Reader in)
                             throws javax.xml.parsers.ParserConfigurationException,
                                    java.io.IOException,
                                    org.xml.sax.SAXException,
                                    javax.xml.bind.JAXBException,
                                    javax.xml.stream.XMLStreamException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

loadGbean

public static GbeanType loadGbean(java.io.Reader in)
                           throws javax.xml.parsers.ParserConfigurationException,
                                  java.io.IOException,
                                  org.xml.sax.SAXException,
                                  javax.xml.bind.JAXBException,
                                  javax.xml.stream.XMLStreamException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

loadAttribute

public static AttributeType loadAttribute(java.io.Reader in)
                                   throws javax.xml.parsers.ParserConfigurationException,
                                          java.io.IOException,
                                          org.xml.sax.SAXException,
                                          javax.xml.bind.JAXBException,
                                          javax.xml.stream.XMLStreamException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException


Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.