org.jboss.maven.plugins.thirdparty
Class ComponentInfoReader

java.lang.Object
  extended by org.jboss.maven.plugins.thirdparty.ComponentInfoReader

public class ComponentInfoReader
extends java.lang.Object

Class to verify that a component-info.xml class is valid.

Author:
Paul Gier

Constructor Summary
ComponentInfoReader()
           
 
Method Summary
static ComponentInfo parseComponentInfo(java.io.File compInfoFile)
          Read a component-info.xml file into a ComponentInfo object.
static ComponentInfo parseComponentInfo(java.io.InputStream compInfoIS)
          Read a component-info.xml from an input stream into a ComponentInfo object.
static void verifyCompInfo(java.io.InputStream compInfo)
          Verify a component-info.xml file using the xsd.
static void verifyCompInfo(java.lang.String compInfoFilePath)
          Verify a component-info.xml file using the xsd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentInfoReader

public ComponentInfoReader()
Method Detail

parseComponentInfo

public static ComponentInfo parseComponentInfo(java.io.File compInfoFile)
                                        throws java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               org.xml.sax.SAXException
Read a component-info.xml file into a ComponentInfo object.

Parameters:
compInfoFile -
Returns:
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

parseComponentInfo

public static ComponentInfo parseComponentInfo(java.io.InputStream compInfoIS)
                                        throws java.io.IOException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               org.xml.sax.SAXException
Read a component-info.xml from an input stream into a ComponentInfo object.

Parameters:
compInfoFile -
Returns:
Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

verifyCompInfo

public static void verifyCompInfo(java.lang.String compInfoFilePath)
                           throws org.xml.sax.SAXException,
                                  java.io.FileNotFoundException
Verify a component-info.xml file using the xsd.

Parameters:
compInfoFilePath - Path to the component-info.xml to be verified.
Throws:
org.xml.sax.SAXException
java.io.FileNotFoundException

verifyCompInfo

public static void verifyCompInfo(java.io.InputStream compInfo)
                           throws org.xml.sax.SAXException
Verify a component-info.xml file using the xsd.

Parameters:
compInfoFilePath - Path to the component-info.xml to be verified.
Throws:
org.xml.sax.SAXException


Copyright © 2007-2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.