Java Doc for InSyncServiceProvider.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.insync 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.api.insync.InSyncService
      org.netbeans.modules.visualweb.insync.InSyncServiceProvider

InSyncServiceProvider
public class InSyncServiceProvider extends InSyncService (Code)
This class provides a concrete implementation of InSyncService. As well, it provides some functionality to handle the mapping of Java <-> JSP files. This code should really exist in a Faces module to InSync, but these services will be needed once I start removing any knowledge of this mapping from all other modules. The key would be to creating a Faces InSync module, and have a FacesInSyncService that modules would then depend on. Otherwise we cannot break out the Faces specific functionality out of InSync's core. TODO
author:
   eric


Field Summary
protected static  InSyncServiceProvidersingleton
    

Constructor Summary
public  InSyncServiceProvider()
    

Method Summary
public  voidaddLocalStyleValueForElement(Element element, int style, String value)
    
public  voidappendParsedString(Document doc, org.w3c.dom.Node node, String xhtml, MarkupDesignBean bean)
    
public  voidclearHtmlForMarkupFile(FileObject markupFile)
    
public  StringcomputeFileName(Object location)
    
public  intcomputeLine(Document doc, Element element)
    
public  intcomputeLineNumber(Object location, int lineno)
    
public  voidcopied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)
     This is a hack until we get things done correctly with integration of Retouche. Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject. Go through and rename the EL expression references to the original page name to the new page name. This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way that prevent us from creating a simple fix that will yield the same results.
public  voidcopyMarkupDesignBeanForElement(Element fromElement, Element toElement)
    
public  voidcopyMarkupMouseRegionForElement(Element fromElement, Element toElement)
    
public  voiddoOutsideOfRefactoringSession(Runnable runnable)
    
public  StringexpandHtmlEntities(String html, boolean warn, org.w3c.dom.Node node)
    
public  StringfromURL(String url)
    
public static  InSyncServiceProviderget()
    
public  StringgetBeanNameForJsp(FileObject fileObject)
    
public  ClassLoadergetContextClassLoader(DesignContext designContext)
    
public  ClassLoadergetContextClassLoader(DesignBean designBean)
    
public  ClassLoadergetContextClassLoader(DesignProperty designProperty)
    
public  ClassLoadergetContextClassLoader(DesignEvent designEvent)
    
public  URLgetDocumentUrl(Document doc)
    
public  intgetExpandedOffset(String unexpanded, int unexpandedOffset)
    
public  FileObjectgetFileObject(Document doc)
    
public  ElementgetHtmlBodyForMarkupFile(FileObject markupFile)
    
public  DocumentgetHtmlDomForMarkupFile(FileObject markupFile)
    
public  DocumentFragmentgetHtmlDomFragmentForDocument(Document document)
    
public  StringgetHtmlStream(org.w3c.dom.Node node)
     Generate the html string from the given node.
public  StringgetHtmlStream(Element element)
    
public  StringgetHtmlStream(org.w3c.dom.Document document)
     Generate the html string from the given element.
public  StringgetHtmlStream(DocumentFragment df)
    
public  DataObjectgetJavaDataObjectEquivalent(DataObject dataObject, String originalName, boolean forceCreate)
    
public  DataObjectgetJavaDataObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)
    
public  DataObjectgetJavaDataObjectEquivalent(Node node, String originalName, boolean forceCreate)
    
public  FileObjectgetJavaFileObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)
    
public  FileObjectgetJavaFolderForJsp(FileObject fileObject)
    
public  FileObjectgetJavaForJsp(FileObject jspFileObject)
     Gets corresponding java file object for specified jsp file object if exists.
public  DocumentgetJspDomForMarkupFile(FileObject markupFile)
    
public  MarkupDesignBeangetMarkupDesignBeanForElement(Element element)
    
public  FileObjectgetMarkupFileObjectForDesignContext(DesignContext designContext)
    
public  MarkupMouseRegiongetMarkupMouseRegionForElement(Element element)
    
public  String[]getMimeTypes()
    
public  ProjectgetProjectForDesignProject(DesignProject designProject)
    
public  InSyncService.RaveErrorHandlergetRaveErrorHandler()
    
public  ExceptiongetRenderFailure(FileObject markupFile)
    
public  DesignBeangetRenderFailureComponent(FileObject markupFile)
    
public  intgetUnexpandedOffset(String unexpanded, int expandedOffset)
    
public  URLgetUrl(Document doc)
    
public  ListgetWebPages(Project project, boolean includePages, boolean includeFragments)
    
public  voidinitModelsForWebformFile(Project project, FileObject webformFile)
    
public  booleanisBraveheartPage(Document dom)
    
public static  booleanisComponentRendersChildren(DesignBean designBean)
    
public  booleanisWebPage(FileObject fo)
    
public  booleanisWoodstockPage(Document dom)
    
public  voidjspDataObjectTopComponentActivated(DataObject dobj)
    
public  voidjspDataObjectTopComponentHidden(DataObject dobj)
    
public  voidjspDataObjectTopComponentShown(DataObject dobj)
    
protected  InSyncServiceProviderQuerynewQuery(FileObject fileObject, DataObject dataObject)
    
public  voidremoveLocalStyleValueForElement(Element element, int style)
    
public  DocumentFragmentrenderHtml(FileObject markupFile, MarkupDesignBean bean)
    
public  URLresolveUrl(URL base, Document document, String src)
    
public  voidsetMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)
    
public  voidsetUrl(Document doc, URL url)
    
public  WriteLockwriteLockContext(DesignContext designContext, String message)
    
public  voidwriteUnlockContext(DesignContext designContext, WriteLock lock)
    

Field Detail
singleton
protected static InSyncServiceProvider singleton(Code)




Constructor Detail
InSyncServiceProvider
public InSyncServiceProvider()(Code)




Method Detail
addLocalStyleValueForElement
public void addLocalStyleValueForElement(Element element, int style, String value)(Code)



appendParsedString
public void appendParsedString(Document doc, org.w3c.dom.Node node, String xhtml, MarkupDesignBean bean)(Code)



clearHtmlForMarkupFile
public void clearHtmlForMarkupFile(FileObject markupFile)(Code)



computeFileName
public String computeFileName(Object location)(Code)



computeLine
public int computeLine(Document doc, Element element)(Code)



computeLineNumber
public int computeLineNumber(Object location, int lineno)(Code)



copied
public void copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)(Code)
This is a hack until we get things done correctly with integration of Retouche. Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject. Go through and rename the EL expression references to the original page name to the new page name. This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way that prevent us from creating a simple fix that will yield the same results. Since ALL of this code will change when we properly integrate insync into platform, this is throw away code. TODO: Remove
Parameters:
  fromDataObject -
Parameters:
  toDataObject -



copyMarkupDesignBeanForElement
public void copyMarkupDesignBeanForElement(Element fromElement, Element toElement)(Code)



copyMarkupMouseRegionForElement
public void copyMarkupMouseRegionForElement(Element fromElement, Element toElement)(Code)



doOutsideOfRefactoringSession
public void doOutsideOfRefactoringSession(Runnable runnable)(Code)



expandHtmlEntities
public String expandHtmlEntities(String html, boolean warn, org.w3c.dom.Node node)(Code)



fromURL
public String fromURL(String url)(Code)



get
public static InSyncServiceProvider get()(Code)



getBeanNameForJsp
public String getBeanNameForJsp(FileObject fileObject)(Code)



getContextClassLoader
public ClassLoader getContextClassLoader(DesignContext designContext)(Code)



getContextClassLoader
public ClassLoader getContextClassLoader(DesignBean designBean)(Code)



getContextClassLoader
public ClassLoader getContextClassLoader(DesignProperty designProperty)(Code)



getContextClassLoader
public ClassLoader getContextClassLoader(DesignEvent designEvent)(Code)



getDocumentUrl
public URL getDocumentUrl(Document doc)(Code)



getExpandedOffset
public int getExpandedOffset(String unexpanded, int unexpandedOffset)(Code)



getFileObject
public FileObject getFileObject(Document doc)(Code)



getHtmlBodyForMarkupFile
public Element getHtmlBodyForMarkupFile(FileObject markupFile)(Code)



getHtmlDomForMarkupFile
public Document getHtmlDomForMarkupFile(FileObject markupFile)(Code)



getHtmlDomFragmentForDocument
public DocumentFragment getHtmlDomFragmentForDocument(Document document)(Code)



getHtmlStream
public String getHtmlStream(org.w3c.dom.Node node)(Code)
Generate the html string from the given node. This will return an empty string unless the Node is an Element or a DocumentFragment or a Document.



getHtmlStream
public String getHtmlStream(Element element)(Code)
Generate the html string from the given element



getHtmlStream
public String getHtmlStream(org.w3c.dom.Document document)(Code)
Generate the html string from the given element. Does formatting.



getHtmlStream
public String getHtmlStream(DocumentFragment df)(Code)
Generate the html string from the given document fragment



getJavaDataObjectEquivalent
public DataObject getJavaDataObjectEquivalent(DataObject dataObject, String originalName, boolean forceCreate)(Code)



getJavaDataObjectEquivalent
public DataObject getJavaDataObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)(Code)



getJavaDataObjectEquivalent
public DataObject getJavaDataObjectEquivalent(Node node, String originalName, boolean forceCreate)(Code)



getJavaFileObjectEquivalent
public FileObject getJavaFileObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)(Code)



getJavaFolderForJsp
public FileObject getJavaFolderForJsp(FileObject fileObject)(Code)



getJavaForJsp
public FileObject getJavaForJsp(FileObject jspFileObject)(Code)
Gets corresponding java file object for specified jsp file object if exists. corresponding java file object or null



getJspDomForMarkupFile
public Document getJspDomForMarkupFile(FileObject markupFile)(Code)



getMarkupDesignBeanForElement
public MarkupDesignBean getMarkupDesignBeanForElement(Element element)(Code)



getMarkupFileObjectForDesignContext
public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(Code)



getMarkupMouseRegionForElement
public MarkupMouseRegion getMarkupMouseRegionForElement(Element element)(Code)



getMimeTypes
public String[] getMimeTypes()(Code)



getProjectForDesignProject
public Project getProjectForDesignProject(DesignProject designProject)(Code)



getRaveErrorHandler
public InSyncService.RaveErrorHandler getRaveErrorHandler()(Code)



getRenderFailure
public Exception getRenderFailure(FileObject markupFile)(Code)



getRenderFailureComponent
public DesignBean getRenderFailureComponent(FileObject markupFile)(Code)



getUnexpandedOffset
public int getUnexpandedOffset(String unexpanded, int expandedOffset)(Code)



getUrl
public URL getUrl(Document doc)(Code)



getWebPages
public List getWebPages(Project project, boolean includePages, boolean includeFragments)(Code)



initModelsForWebformFile
public void initModelsForWebformFile(Project project, FileObject webformFile)(Code)



isBraveheartPage
public boolean isBraveheartPage(Document dom)(Code)



isComponentRendersChildren
public static boolean isComponentRendersChildren(DesignBean designBean)(Code)



isWebPage
public boolean isWebPage(FileObject fo)(Code)



isWoodstockPage
public boolean isWoodstockPage(Document dom)(Code)



jspDataObjectTopComponentActivated
public void jspDataObjectTopComponentActivated(DataObject dobj)(Code)



jspDataObjectTopComponentHidden
public void jspDataObjectTopComponentHidden(DataObject dobj)(Code)



jspDataObjectTopComponentShown
public void jspDataObjectTopComponentShown(DataObject dobj)(Code)



newQuery
protected InSyncServiceProviderQuery newQuery(FileObject fileObject, DataObject dataObject)(Code)



removeLocalStyleValueForElement
public void removeLocalStyleValueForElement(Element element, int style)(Code)



renderHtml
public DocumentFragment renderHtml(FileObject markupFile, MarkupDesignBean bean)(Code)



resolveUrl
public URL resolveUrl(URL base, Document document, String src)(Code)



setMarkupDesignBeanForElement
public void setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)(Code)



setUrl
public void setUrl(Document doc, URL url)(Code)



writeLockContext
public WriteLock writeLockContext(DesignContext designContext, String message)(Code)



writeUnlockContext
public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code)



Methods inherited from org.netbeans.modules.visualweb.api.insync.InSyncService
abstract public void addLocalStyleValueForElement(Element element, int style, String value)(Code)(Java Doc)
abstract public void appendParsedString(Document doc, Node node, String xhtml, MarkupDesignBean bean)(Code)(Java Doc)
abstract public String computeFileName(Object location)(Code)(Java Doc)
abstract public int computeLine(Document document, Element element)(Code)(Java Doc)
abstract public int computeLineNumber(Object location, int line)(Code)(Java Doc)
abstract public void copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)(Code)(Java Doc)
abstract public void copyMarkupDesignBeanForElement(Element fromElement, Element toElement)(Code)(Java Doc)
abstract public void copyMarkupMouseRegionForElement(Element fromElement, Element toElement)(Code)(Java Doc)
abstract public void doOutsideOfRefactoringSession(Runnable runnable)(Code)(Java Doc)
abstract public String expandHtmlEntities(String html, boolean warn, Node node)(Code)(Java Doc)
abstract public String fromURL(String url)(Code)(Java Doc)
abstract public String getBeanNameForJsp(FileObject fileObject)(Code)(Java Doc)
abstract public ClassLoader getContextClassLoader(DesignContext designContext)(Code)(Java Doc)
abstract public ClassLoader getContextClassLoader(DesignBean designBean)(Code)(Java Doc)
abstract public ClassLoader getContextClassLoader(DesignProperty designProperty)(Code)(Java Doc)
abstract public ClassLoader getContextClassLoader(DesignEvent designEvent)(Code)(Java Doc)
abstract public URL getDocumentUrl(Document doc)(Code)(Java Doc)
abstract public int getExpandedOffset(String unexpanded, int unexpandedOffset)(Code)(Java Doc)
abstract public FileObject getFileObject(Document doc)(Code)(Java Doc)
abstract public Element getHtmlBodyForMarkupFile(FileObject markupFile)(Code)(Java Doc)
abstract public DocumentFragment getHtmlDomFragmentForDocument(Document document)(Code)(Java Doc)
abstract public String getHtmlStream(Node node)(Code)(Java Doc)
abstract public String getHtmlStream(Element element)(Code)(Java Doc)
abstract public String getHtmlStream(Document document)(Code)(Java Doc)
abstract public String getHtmlStream(DocumentFragment df)(Code)(Java Doc)
abstract public MarkupDesignBean getMarkupDesignBeanForElement(Element element)(Code)(Java Doc)
abstract public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(Code)(Java Doc)
abstract public MarkupMouseRegion getMarkupMouseRegionForElement(Element element)(Code)(Java Doc)
abstract public Project getProjectForDesignProject(DesignProject designProject)(Code)(Java Doc)
public static InSyncService getProvider()(Code)(Java Doc)
abstract public RaveErrorHandler getRaveErrorHandler()(Code)(Java Doc)
abstract public int getUnexpandedOffset(String unexpanded, int expandedOffset)(Code)(Java Doc)
abstract public URL getUrl(Document doc)(Code)(Java Doc)
abstract public List getWebPages(Project project, boolean includePages, boolean includeFragments)(Code)(Java Doc)
abstract public void initModelsForWebformFile(Project project, FileObject webformFile)(Code)(Java Doc)
abstract public void jspDataObjectTopComponentActivated(DataObject dobj)(Code)(Java Doc)
abstract public void jspDataObjectTopComponentHidden(DataObject dobj)(Code)(Java Doc)
abstract public void jspDataObjectTopComponentShown(DataObject dobj)(Code)(Java Doc)
abstract public void removeLocalStyleValueForElement(Element element, int style)(Code)(Java Doc)
abstract public URL resolveUrl(URL base, Document document, String url)(Code)(Java Doc)
abstract public void setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)(Code)(Java Doc)
abstract public void setUrl(Document doc, URL url)(Code)(Java Doc)
abstract public WriteLock writeLockContext(DesignContext designContext, String message)(Code)(Java Doc)
abstract public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.