01: /*
02: * PageContentModelProvider.java
03: *
04: * Created on March 27, 2007, 5:31 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.web.jsf.navigation.pagecontentmodel;
11:
12: import org.openide.filesystems.FileObject;
13:
14: /**
15: *
16: * @author joelle lam
17: */
18: public interface PageContentModelProvider {
19: /**
20: * Returns the Page Content Model
21: * @param fileObject
22: * @return PageContentModel for a given fileobject, null if none exists.
23: */
24: public PageContentModel getPageContentModel(FileObject fileObject);
25:
26: /**
27: * This method is tricky and sort of a hack.
28: * Given a new page or modification, does there now exist a model
29: * unlike before. This method was primarily completed for VWP
30: * functionality which sometimes needs to know about a new JAVA
31: * file being updated.
32: * @param fileObject of the new page
33: * @return FileObject of the model that should be updated
34: **/
35: public FileObject isNewPageContentModel(FileObject fileObject);
36: }
|