Modifier and Type | Method and Description |
---|---|
org.netbeans.modules.schema2beans.BaseBean |
getBaseBean(CommonDDBean bean)
Deprecated.
do not use - temporary workaround that exposes the schema2beans implementation
|
WebApp |
getDDRoot(File f)
Returns the root of deployment descriptor bean graph for java.io.File object.
|
WebApp |
getDDRoot(FileObject fo)
Gets the root bean graph representing the given web.xml deployment descriptor
file.
|
WebApp |
getDDRoot(FileObject fo,
boolean useCache)
Gets the root bean graph representing the given web.xml deployment descriptor
file.
|
WebApp |
getDDRootCopy(FileObject fo)
Returns the root of deployment descriptor bean graph for given file object.
|
static DDProvider |
getDefault()
Accessor method for DDProvider singleton
|
SAXParseException |
parse(FileObject fo) |
public static DDProvider getDefault()
public WebApp getDDRoot(FileObject fo) throws IOException
fo
- the file object representing a web.xml file. Must not be null.WebApp
representing the given fo
.IOException
- if the given fo
could not be read
or if parsing it failed.public WebApp getDDRoot(FileObject fo, boolean useCache) throws IOException
fo
- the file object representing a web.xml file. Must not be null.useCache
- true if the cache should be usedWebApp
representing the given fo
.IOException
- if the given fo
could not be read
or if parsing it failed.public WebApp getDDRootCopy(FileObject fo) throws IOException
RootInterface.write(org.openide.filesystems.FileObject)
should be used
for writing the changes.fo
- FileObject representing the web.xml fileIOException
public WebApp getDDRoot(File f) throws IOException, SAXException
f
- File representing the web.xml fileIOException
SAXException
@Deprecated public org.netbeans.modules.schema2beans.BaseBean getBaseBean(CommonDDBean bean)
public SAXParseException parse(FileObject fo) throws SAXException, IOException
SAXException
IOException