Java Doc for MarshallingStrategy.java in  » Search-Engine » compass-2.0 » org » compass » core » marshall » 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 » Search Engine » compass 2.0 » org.compass.core.marshall 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.compass.core.marshall.MarshallingStrategy

All known Subclasses:   org.compass.core.marshall.DefaultMarshallingStrategy,
MarshallingStrategy
public interface MarshallingStrategy (Code)
Responsible for marhslling and unmarashlling high level objects (a.k.a root object) to and from Resource .
author:
   kimchy




Method Summary
 Resourcemarshall(String alias, Object root)
     Marshalls the given Object into a Resource based on the ResourceMapping associated with the provided alias.
 Resourcemarshall(Object root)
     Marshalls the given Object into a Resource based on the ResourceMapping associated with the provided object.
 ResourcemarshallIds(Object id)
    

Marshalls the given id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping.

 ResourcemarshallIds(String alias, Object id)
    

Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping.

 ResourcemarshallIds(Class clazz, Object id)
    

Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping.

 ResourcemarshallIds(ResourceMapping resourceMapping, Object id)
     Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping.
 booleanmarshallIds(Resource resource, ResourceMapping resourceMapping, Object id, MarshallingContext context)
     Marshalls the give id object into the provided Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping.
 voidmarshallIds(Object root, Object id)
     Marhsalls the give id into the actual object.
 voidmarshallIds(ResourceMapping resourceMapping, Object root, Object id)
     Marhsalls the give id into the actual object.
 Objectunmarshall(Resource resource)
     Unmarshalls the given resource to an Object based on the ResourceMapping regsitered under the Resource alias.
 Objectunmarshall(Resource resource, MarshallingContext context)
     Unmarshalls the given resource to an Object based on the ResourceMapping regsitered under the Resource alias WITHIN the given marshalling context.
 Object[]unmarshallIds(String alias, Object id)
     Unmarshalls the given id object into an array of all the id values.
 Object[]unmarshallIds(Class clazz, Object id)
     Unmarshalls the given id object into an array of all the id values.
 Object[]unmarshallIds(ResourceMapping resourceMapping, Object id, MarshallingContext context)
     Unmarshalls the given id object into an array of all the id values.



Method Detail
marshall
Resource marshall(String alias, Object root)(Code)
Marshalls the given Object into a Resource based on the ResourceMapping associated with the provided alias. Returns null if there are no mappings.
Parameters:
  alias - The alias to look up the ResourceMapping
Parameters:
  root - The object to marshall into the resource The resource result of marshalling the object or null if has no mapping



marshall
Resource marshall(Object root)(Code)
Marshalls the given Object into a Resource based on the ResourceMapping associated with the provided object. If the object implements org.compass.core.spi.AliasedObject , the alias will be used to look up the ResourceMapping , otherwise, the object class will be used.
Parameters:
  root - The object to marshall into a resource The resource result of marshalling the object



marshallIds
Resource marshallIds(Object id)(Code)

Marshalls the given id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping. For example, for class mapping, it can be the root Object itself (with its ids set), an array of ids, or if a single id, the actual id object.

The ResourceMapping are looked up based on the given object.

Will return null if no mappins are found
Parameters:
  id - The id to marshall into a Resource A resource having its id properties set




marshallIds
Resource marshallIds(String alias, Object id)(Code)

Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping. For example, for class mapping, it can be the root Object itself (with its ids set), an array of ids, or if a single id, the actual id object.

The ResourceMapping are looked up based on the given alias.

Will return null if no mappins are found
Parameters:
  alias - The alias to look up the ResourceMapping based
Parameters:
  id - The id to marshall into a Resource A resource having its id properties set




marshallIds
Resource marshallIds(Class clazz, Object id)(Code)

Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping. For example, for class mapping, it can be the root Object itself (with its ids set), an array of ids, or if a single id, the actual id object.

The ResourceMapping are looked up based on the given class.

Will return null if no mappins are found
Parameters:
  clazz - The class to look up the ResourceMapping based
Parameters:
  id - The id to marshall into a Resource A resource having its id properties set




marshallIds
Resource marshallIds(ResourceMapping resourceMapping, Object id)(Code)
Marshalls the give id object into a Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping. For example, for class mapping, it can be the root Object itself (with its ids set), an array of ids, or if a single id, the actual id object.
Parameters:
  resourceMapping - The resource mapping holding how to marhsall the ids
Parameters:
  id - The id to marshall into a Resource A resource having its id properties set



marshallIds
boolean marshallIds(Resource resource, ResourceMapping resourceMapping, Object id, MarshallingContext context)(Code)
Marshalls the give id object into the provided Resource (a resource having only its ids set). Note, that the id can be several types, depending on the mapping. For example, for class mapping, it can be the root Object itself (with its ids set), an array of ids, or if a single id, the actual id object.
Parameters:
  resource - The resource to marhsll the ids into
Parameters:
  resourceMapping - The resource mapping holding how to marhsall the ids
Parameters:
  id - The id to marshall into a Resource true if stored properties were added to the Resource.



marshallIds
void marshallIds(Object root, Object id)(Code)
Marhsalls the give id into the actual object. Kindda hacky... .
Parameters:
  root - The object to marshall the ids into
Parameters:
  id - The id to marshall into the root object



marshallIds
void marshallIds(ResourceMapping resourceMapping, Object root, Object id)(Code)
Marhsalls the give id into the actual object. Kindda hacky... .
Parameters:
  resourceMapping - The resource mapping for the given object
Parameters:
  root - The object to marshall the ids into
Parameters:
  id - The id to marshall into the root object



unmarshall
Object unmarshall(Resource resource)(Code)
Unmarshalls the given resource to an Object based on the ResourceMapping regsitered under the Resource alias.
Parameters:
  resource - The resource to unmarshall from The object unmarshalled from the resource



unmarshall
Object unmarshall(Resource resource, MarshallingContext context)(Code)
Unmarshalls the given resource to an Object based on the ResourceMapping regsitered under the Resource alias WITHIN the given marshalling context.
Parameters:
  resource - The resource to unmarshall from
Parameters:
  context - The context to unmarshall the resource within The object unmarshalled from the resource



unmarshallIds
Object[] unmarshallIds(String alias, Object id)(Code)
Unmarshalls the given id object into an array of all the id values. The results depends on the type of the mappings (raw resource/class).

The unmarshalling is performed based on ResourceMapping associated with the given alias.
Parameters:
  alias - The alias to lookup the ResourceMapping
Parameters:
  id - The id to unmarshall An array of all the ids




unmarshallIds
Object[] unmarshallIds(Class clazz, Object id)(Code)
Unmarshalls the given id object into an array of all the id values. The results depends on the type of the mappings (raw resource/class).

The unmarshalling is performed based on ResourceMapping associated with the given class.
Parameters:
  clazz - The class to lookup the ResourceMapping
Parameters:
  id - The id to unmarshall An array of all the ids




unmarshallIds
Object[] unmarshallIds(ResourceMapping resourceMapping, Object id, MarshallingContext context)(Code)
Unmarshalls the given id object into an array of all the id values. The results depends on the type of the mappings (raw resource/class).

The unmarshalling is performed based on ResourceMapping provided.
Parameters:
  resourceMapping - The resource to perform the unmarshalling based on
Parameters:
  id - The id to unmarshall An array of all the ids




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