org.netbeans.modules.j2ee.dd/1 1.25.0 2

org.netbeans.modules.j2ee.dd.api.web
Class WebFragmentProvider

java.lang.Object
  extended by org.netbeans.modules.j2ee.dd.api.web.WebFragmentProvider

public final class WebFragmentProvider
extends Object

Provides access to object model (OM) of web fragment file (META-INF/web-fragment.xml). Root of web fragment OM is represented by object WebFragment.


Method Summary
static WebFragmentProvider getDefault()
           
 WebFragment getWebFragmentRoot(FileObject fo)
          Gets the root bean graph representing the given web-fragment.xml deployment descriptor file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static WebFragmentProvider getDefault()

getWebFragmentRoot

public WebFragment getWebFragmentRoot(FileObject fo)
                               throws IOException,
                                      FileNotFoundException
Gets the root bean graph representing the given web-fragment.xml deployment descriptor file.

Parameters:
fo - the file object representing a web.xml file. Must not be null.
Returns:
the WebFragment representing the given fo.
Throws:
IOException - if the given fo could not be read or if parsing it failed.
FileNotFoundException

org.netbeans.modules.j2ee.dd/1 1.25.0 2

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.