Java Doc for XMLDPFactory.java in  » Portal » Open-Portal » com » sun » portal » desktop » dp » xml » 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 » Portal » Open Portal » com.sun.portal.desktop.dp.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.desktop.dp.xml.XMLDPFactory

XMLDPFactory
public class XMLDPFactory implements DPFactory,DPTypes,XMLDPTags(Code)
This class gets and creates instances of DP objects. All XMLDP* objects are backed by a DOM element; they are simply wrappers for the DOM that impose certain semantics on particular types of DOM nodes. The get* methods add a wrapper around an already existing DOM node. They all require the DOM element to be passed in as an argument. If the DOM element does not match the type of the DP object being returned, then an exception is thrown. The create* methods create a new DOM element and add the wrapper.


Field Summary
final protected static  charCHANNEL_NAME_SEPARATOR
    
protected static  XMLDPFactoryfactory
    


Method Summary
public  DPRootaddMergers(DPContext dpc, DPRoot dpr, Set names, Map dpRoots)
     Adds merger root objects to the given DP root.
public  DPAvailablecreateAvailable(DPContext dpc, DPRoot r, Document d)
     Create a new, empty DP available object.
public  DPChannelcreateChannel(DPContext dpc, DPRoot r, Document d, String name, String providerName)
     Create a new DP channel object.
public  DPConditionalPropertiescreateConditionalProperties(DPContext dpc, DPRoot r, Document d, String type, String value)
     Create a new, empty DP conditional properties object.
public  DPConditionalPropertiescreateConditionalProperties(DPContext dpc, DPRoot r, Document d, String type, String value, Map m)
     Create a new DP conditional properties object.
public  DPContainerChannelcreateContainerChannel(DPContext dpc, DPRoot r, Document d, String name, String providerName)
     Create a new DP container channel object.
public  DPLocalecreateLocale(DPContext dpc, DPRoot r, Document d, String lang, String country, String variant)
     Create a new, empty DP locale object.
public  DPLocalecreateLocale(DPContext dpc, DPRoot r, Document d, String lang, String country, String variant, Map m)
     Create a new DP locale object.
public  DPPropertiescreateProperties(DPContext dpc, DPRoot r, Document d)
     Create a new, empty DP properties object.
public  DPPropertycreateProperty(DPContext dpc, DPRoot r, Document d, String name, Object o)
     Create a new DP property object.
public  DPPropertycreateProperty(DPContext dpc, DPRoot r, Document d, Object o)
     Create a new unnamed DP property object.
public  DPProvidercreateProvider(DPContext dpc, DPRoot r, Document d, String name, String className, int providerVersion)
     Create a new DP provider object.
public  DPReferencecreateReference(DPContext dpc, DPRoot r, Document d, String ref)
     Create a new DP reference object.
public  DPRootcreateRoot(DPContext dpc, DPUserContext dpuc, Map dpRoots, boolean merge)
     Create a new DP root object and optionally add merger root objects.
public  DPRootcreateRoot(DPContext dpc)
     Create a new, empty DP root object.
public  DPRootcreateRoot(DPContext dpc, String doc)
     Create a DP root object based on the given string.
public  DPRootcreateRoot(DPContext dpc, InputStream xmlByteStream)
     Create a DP root object based on the given stream.
public  DPRootcreateRoot(DPContext dpc, String baseName, Map dpRoots)
    
public  DPSelectedcreateSelected(DPContext dpc, DPRoot r, Document d)
     Create a new, empty DP selected object.
public  DPStringcreateString(DPContext dpc, DPRoot r, Document d, String name, String value)
    
public  DPAvailablegetAvailable(DPContext dpc, DPRoot r, Element e)
     Get a DP selected wrapper for the given Element.
public  DPChannelgetChannel(DPContext dpc, DPRoot r, Element e)
     Get a new DP channel wrapper for the given Element.
public  DPCollectiongetCollectionProperty(DPContext dpc, DPRoot r, Element e)
     Get a DP collection property wrapper for the given Element.
public  DPConditionalPropertiesgetConditionalProperties(DPContext dpc, DPRoot r, Element e)
     Get a DP conditionalproperties wrapper for the given Element.
public static  XMLDPFactorygetInstance()
    
public  DPNodegetNode(DPContext dpc, DPRoot r, Element e)
     Get a DP node object wrapper for the given Element.
public  DPPropertiesgetProperties(DPContext dpc, DPRoot r, Element e)
     Get a DP properties wrapper for the given Element.
public  DPPropertygetProperty(DPContext dpc, DPRoot r, Element e)
     Get a DP property wrapper for the given Element.
public  DPPropertyHoldergetPropertyHolder(DPContext dpc, DPRoot r, Element e)
     Get a DP property holder wrapper for the given Element.
public  DPProvidergetProvider(DPContext dpc, DPRoot r, Element e)
     Get a new DP provider wrapper for the given Element.
public  DPReferencegetReference(DPContext dpc, DPRoot r, Element e)
     Get a DP reference wrapper for the given Element.
public  DPRootgetRoot(DPContext dpc, Element e)
     Get a DP root object wrapper for the given Element.
public  DPSelectedgetSelected(DPContext dpc, DPRoot r, Element e)
     Get a DP selected wrapper for the given Element.

Field Detail
CHANNEL_NAME_SEPARATOR
final protected static char CHANNEL_NAME_SEPARATOR(Code)



factory
protected static XMLDPFactory factory(Code)





Method Detail
addMergers
public DPRoot addMergers(DPContext dpc, DPRoot dpr, Set names, Map dpRoots)(Code)
Adds merger root objects to the given DP root.



createAvailable
public DPAvailable createAvailable(DPContext dpc, DPRoot r, Document d)(Code)
Create a new, empty DP available object.



createChannel
public DPChannel createChannel(DPContext dpc, DPRoot r, Document d, String name, String providerName)(Code)
Create a new DP channel object. The new DP channel object has an empty properties bag.



createConditionalProperties
public DPConditionalProperties createConditionalProperties(DPContext dpc, DPRoot r, Document d, String type, String value)(Code)
Create a new, empty DP conditional properties object.



createConditionalProperties
public DPConditionalProperties createConditionalProperties(DPContext dpc, DPRoot r, Document d, String type, String value, Map m)(Code)
Create a new DP conditional properties object.



createContainerChannel
public DPContainerChannel createContainerChannel(DPContext dpc, DPRoot r, Document d, String name, String providerName)(Code)
Create a new DP container channel object. The new DP container channel object has an empty properties bag.



createLocale
public DPLocale createLocale(DPContext dpc, DPRoot r, Document d, String lang, String country, String variant)(Code)
Create a new, empty DP locale object.
See Also:   XMLDPFactory.createConditionalProperties(DPContext,DPRoot,Document,String,String)



createLocale
public DPLocale createLocale(DPContext dpc, DPRoot r, Document d, String lang, String country, String variant, Map m)(Code)
Create a new DP locale object.
See Also:   XMLDPFactory.createConditionalProperties(DPContext,DPRoot,Document,String,String,Map)



createProperties
public DPProperties createProperties(DPContext dpc, DPRoot r, Document d)(Code)
Create a new, empty DP properties object.



createProperty
public DPProperty createProperty(DPContext dpc, DPRoot r, Document d, String name, Object o)(Code)
Create a new DP property object. While the interface returned by this method is a DPProperty, the actual object instance returned depend on the type of the Object argument.
  • Object type String returns an instance of DPString
  • Object type Integer returns an instance of DPInteger
  • Object type Boolean returns an instance of DPBoolean
  • Object type List or Map returns an instance of DPCollection
If the type of Object o is not a String, Integer, or Boolean then a DPString is returned, where the value is the value return from the object's toString() method.



createProperty
public DPProperty createProperty(DPContext dpc, DPRoot r, Document d, Object o)(Code)
Create a new unnamed DP property object. While the interface returned by this method is a DPProperty, the actual object instance returned depend on the type of the Object argument.
  • Object type String returns an instance of DPString
  • Object type Integer returns an instance of DPInteger
  • Object type Boolean returns an instance of DPBoolean
If the type of Object o is not a String, Integer, or Boolean then a DPString is returned, where the value is the value return from the object's toString() method.



createProvider
public DPProvider createProvider(DPContext dpc, DPRoot r, Document d, String name, String className, int providerVersion)(Code)
Create a new DP provider object. The new DP provider object has an empty properties bag.



createReference
public DPReference createReference(DPContext dpc, DPRoot r, Document d, String ref)(Code)
Create a new DP reference object.



createRoot
public DPRoot createRoot(DPContext dpc, DPUserContext dpuc, Map dpRoots, boolean merge)(Code)
Create a new DP root object and optionally add merger root objects. The DP root object is created based on the user document read from the DPContext object (DPContext.getUserDocument()). If the merge argument is true, merger obejcts are added. The merger objects are based on the non-user documents read from DPContext object (DPContext.getDPDocuments()).



createRoot
public DPRoot createRoot(DPContext dpc)(Code)
Create a new, empty DP root object. No merge objects are added to the rturned DP root object.



createRoot
public DPRoot createRoot(DPContext dpc, String doc)(Code)
Create a DP root object based on the given string. This method can be called only if the encoding in the xml header is "UTF-8" No merge objects are added to the returned DP root object.
Parameters:
  dpc - The DPContext
Parameters:
  doc - xml String



createRoot
public DPRoot createRoot(DPContext dpc, InputStream xmlByteStream)(Code)
Create a DP root object based on the given stream. No merge objects are added to the returned DP root object.



createRoot
public DPRoot createRoot(DPContext dpc, String baseName, Map dpRoots)(Code)



createSelected
public DPSelected createSelected(DPContext dpc, DPRoot r, Document d)(Code)
Create a new, empty DP selected object.



createString
public DPString createString(DPContext dpc, DPRoot r, Document d, String name, String value)(Code)



getAvailable
public DPAvailable getAvailable(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP selected wrapper for the given Element.



getChannel
public DPChannel getChannel(DPContext dpc, DPRoot r, Element e)(Code)
Get a new DP channel wrapper for the given Element. Whiel the interface returned by this method is a DPChannel, the actual object instance returned is either a DPChannel or a DPContainerChannel.



getCollectionProperty
public DPCollection getCollectionProperty(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP collection property wrapper for the given Element. This method with accept element types of Colletion, Selected, Available, Locale, Properties, or ConditionalProperties and will return an instance of DPCollection.



getConditionalProperties
public DPConditionalProperties getConditionalProperties(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP conditionalproperties wrapper for the given Element.



getInstance
public static XMLDPFactory getInstance()(Code)



getNode
public DPNode getNode(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP node object wrapper for the given Element. While the interface returned by this method is DPNode, the actual object is an instance of either DPRoot, DPChannel, or DPContainerChannel.



getProperties
public DPProperties getProperties(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP properties wrapper for the given Element.



getProperty
public DPProperty getProperty(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP property wrapper for the given Element. While the interface returned by this method is a DPProperty, the actual object instance returned is either a DPString, DPInteger, DPBoolean, DPLocale, DPProperties, DPConditionalProperties, or DPCollection.



getPropertyHolder
public DPPropertyHolder getPropertyHolder(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP property holder wrapper for the given Element. While the interface returned by this method is a DPPropertyHolder, the actual object instance is either a DPRoot, DPChannel, DPContainerChannel, or a DPProvider.



getProvider
public DPProvider getProvider(DPContext dpc, DPRoot r, Element e)(Code)
Get a new DP provider wrapper for the given Element.



getReference
public DPReference getReference(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP reference wrapper for the given Element.



getRoot
public DPRoot getRoot(DPContext dpc, Element e)(Code)
Get a DP root object wrapper for the given Element.



getSelected
public DPSelected getSelected(DPContext dpc, DPRoot r, Element e)(Code)
Get a DP selected wrapper for the given Element.



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.