public final class DDProvider extends Object
Application object)| Modifier and Type | Method and Description |
|---|---|
org.netbeans.modules.schema2beans.BaseBean |
getBaseBean(CommonDDBean bean)
Convenient method for getting the BaseBean object from CommonDDBean object.
|
Application |
getDDRoot(FileObject fo)
Returns the root of deployment descriptor bean graph for given file object.
|
Application |
getDDRoot(InputSource is)
Returns the root of deployment descriptor bean graph for java.io.File object.
|
Application |
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 Application getDDRoot(FileObject fo) throws IOException
There is no guarantee the return value will contain all the changes which happened in the underlaying file recently due to caching.
fo - FileObject representing the application.xml fileIOExceptionpublic Application getDDRootCopy(FileObject fo) throws IOException
RootInterface.write(org.openide.filesystems.FileObject) should be used
for writing the changes.fo - FileObject representing the application.xml fileIOExceptionpublic Application getDDRoot(InputSource is) throws IOException, SAXException
is - source representing the application.xml fileIOExceptionSAXExceptionpublic org.netbeans.modules.schema2beans.BaseBean getBaseBean(CommonDDBean bean)
public SAXParseException parse(FileObject fo) throws SAXException, IOException
SAXExceptionIOExceptionBuilt on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.