org.netbeans.modules.j2ee.dd.api.web
Class WebFragmentProvider
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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