Java Doc for TextResource.java in  » Content-Management-System » harmonise » org » openharmonise » rm » resources » content » 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 » Content Management System » harmonise » org.openharmonise.rm.resources.content 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openharmonise.rm.resources.AbstractChildObject
   org.openharmonise.rm.resources.content.TextResource

All known Subclasses:   org.openharmonise.rm.resources.xml.XMLResource,
TextResource
abstract public class TextResource extends AbstractChildObject (Code)
General abstract class to represent plain text resources within Harmonise.
author:
   Michael Bell
version:
   $Revision: 1.4 $


Field Summary
final public static  StringTAG_CONTENT
    
final public static  StringTAG_CONTENT_TYPE
    
protected  Stringm_sContent
    
protected  Stringm_sContentType
     This TextResource's mime-type, plain text by default.

Constructor Summary
public  TextResource()
     Contructs a new instance with no data store interface.
public  TextResource(AbstractDataStoreInterface dbintrf)
     Contructs a new or anonymous resource.
public  TextResource(AbstractDataStoreInterface dbintrf, int nId, int nKey, boolean bIsHist)
     Constructs a known resource which may be historical.
public  TextResource(AbstractDataStoreInterface dbintrf, int nId)
     Contructs a known resurce object.

Method Summary
protected  voidaddColumnsToPopulateQuery(SelectStatement select, boolean bIsHist)
    
protected  voidaddDataToSave(InsertStatement insert)
    
public  Objectclone()
    
public  StringgetContent()
     Returns the text content of this resource object.
public  StringgetContentType()
     Returns the content type/mime-type of this text resource.
public  ColumnRefgetInstanceColumnRef(String sColumn, boolean bIsHist)
    
public  booleanisContentPopulated()
     Returns true if the text content has been populated from the database.
public  voidpopulate(Element xmlElement, State state)
    
protected  voidpopulateFromDatabase()
    
protected  voidpopulateFromResultSetRow(ResultSet rs, SelectStatement select)
    
public  Elementpublish(Element topEl, HarmoniseOutput xmlDoc, State state)
    
protected  voidsaveCoreData()
    
public  voidsetContent(String sContent)
     Sets the text content of this resource.
public  voidsetContentType(String sContentType)
     Sets the content type/mime-type of this text resource.
protected  voidupdate()
    

Field Detail
TAG_CONTENT
final public static String TAG_CONTENT(Code)
Content tag name



TAG_CONTENT_TYPE
final public static String TAG_CONTENT_TYPE(Code)
Content type tag name



m_sContent
protected String m_sContent(Code)
This TextResource's content



m_sContentType
protected String m_sContentType(Code)
This TextResource's mime-type, plain text by default.




Constructor Detail
TextResource
public TextResource()(Code)
Contructs a new instance with no data store interface.



TextResource
public TextResource(AbstractDataStoreInterface dbintrf)(Code)
Contructs a new or anonymous resource.
Parameters:
  dbintrf - the data store interface



TextResource
public TextResource(AbstractDataStoreInterface dbintrf, int nId, int nKey, boolean bIsHist)(Code)
Constructs a known resource which may be historical.
Parameters:
  dbintrf - the data store interface
Parameters:
  nId - the id resource
Parameters:
  nKey - the unique key of the version of the resource
Parameters:
  bIsHist - true if the version of the resource is historical, otherwise false



TextResource
public TextResource(AbstractDataStoreInterface dbintrf, int nId)(Code)
Contructs a known resurce object.
Parameters:
  dbintrf - the data store interface
Parameters:
  nId - the resource id




Method Detail
addColumnsToPopulateQuery
protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)



addDataToSave
protected void addDataToSave(InsertStatement insert) throws DataStoreException(Code)



clone
public Object clone()(Code)



getContent
public String getContent() throws DataAccessException(Code)
Returns the text content of this resource object. the text content of this resource object
throws:
  DataAccessException - if there is an error populating the object from the database



getContentType
public String getContentType() throws DataAccessException(Code)
Returns the content type/mime-type of this text resource. the content type/mime-type of this text resource
throws:
  DataAccessException - if an error occurs populating this objectfrom the database



getInstanceColumnRef
public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)



isContentPopulated
public boolean isContentPopulated()(Code)
Returns true if the text content has been populated from the database. true if the content is populated and false otherwise.



populate
public void populate(Element xmlElement, State state) throws PopulateException(Code)



populateFromDatabase
protected void populateFromDatabase() throws PopulateException(Code)



populateFromResultSetRow
protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)



publish
public Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)



saveCoreData
protected void saveCoreData() throws EditException(Code)



setContent
public void setContent(String sContent) throws PopulateException(Code)
Sets the text content of this resource.
Parameters:
  sContent - the text content
throws:
  PopulateException - if the specified content is invalid for thisresource



setContentType
public void setContentType(String sContentType)(Code)
Sets the content type/mime-type of this text resource.
Parameters:
  sContentType - the mime-type



update
protected void update() throws EditException, DataStoreException(Code)



Fields inherited from org.openharmonise.rm.resources.AbstractChildObject
final public static String ARCHIVE_TIMESTAMP_FORMAT(Code)(Java Doc)
final public static String ATTRIB_DEFAULT(Code)(Java Doc)
final public static String ATTRIB_SHOWALL(Code)(Java Doc)
final protected static String CLMN_CHILD_KEY(Code)(Java Doc)
final protected static String CLMN_DATE(Code)(Java Doc)
final protected static String CLMN_DEFAULT_LINK(Code)(Java Doc)
final protected static String CLMN_PARENT_KEY(Code)(Java Doc)
final protected static String CLMN_PATH(Code)(Java Doc)
final protected static String IS_DEFAULT_GROUP(Code)(Java Doc)
final public static String JOIN_TO(Code)(Java Doc)
final public static String TAG_GROUP(Code)(Java Doc)
final public static String TAG_PATH(Code)(Java Doc)
protected boolean m_bIsGroupsPopulated(Code)(Java Doc)
protected static Map m_child_parent_mappings(Code)(Java Doc)
protected int m_defaultGroup(Code)(Java Doc)
protected Map m_groups(Code)(Java Doc)
protected List m_groups_to_save(Code)(Java Doc)
protected String m_sGroupClass(Code)(Java Doc)
protected String m_sPath(Code)(Java Doc)
final public static String separator(Code)(Java Doc)

Methods inherited from org.openharmonise.rm.resources.AbstractChildObject
protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)(Java Doc)
protected void addDataToSave(InsertStatement insert) throws DataStoreException(Code)(Java Doc)
protected void addParent(AbstractParentObject group) throws PopulateException(Code)(Java Doc)
public Editable archive() throws EditException(Code)(Java Doc)
public Editable changeStatus(Status status) throws EditException(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected AbstractParentObject createGroupFromPath(String sFullPath) throws EditException(Code)(Java Doc)
protected void delete(boolean bDeleteHist) throws DataStoreException, DataAccessException, EditException, PopulateException(Code)(Java Doc)
protected void fullPopulate() throws PopulateException(Code)(Java Doc)
public List getAllFullPaths() throws DataAccessException(Code)(Java Doc)
public List getAllPaths() throws DataAccessException(Code)(Java Doc)
public static ColumnRef getColumnRef(String sClassname, String sColumn, boolean bHist) throws DataStoreException(Code)(Java Doc)
public String getFullPath() throws DataAccessException(Code)(Java Doc)
public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)(Java Doc)
public static ColumnRef getObjectColumnRef(String sTable, String sColumn) throws DataStoreException(Code)(Java Doc)
protected ColumnRef getParentChildJoinColumnRef(String sCol) throws DataStoreException(Code)(Java Doc)
abstract public String getParentObjectClassName()(Code)(Java Doc)
public static String getParentObjectClassName(String sChildClassname) throws DataAccessException(Code)(Java Doc)
public List getParents() throws DataAccessException(Code)(Java Doc)
public String getPath() throws DataAccessException(Code)(Java Doc)
public AbstractParentObject getRealParent() throws DataAccessException(Code)(Java Doc)
public boolean isChanged() throws DataAccessException(Code)(Java Doc)
public boolean isRealParent(AbstractParentObject obj) throws DataAccessException(Code)(Java Doc)
public void markAsNew() throws PopulateException(Code)(Java Doc)
public void populate(Element xmlElement, State state) throws PopulateException(Code)(Java Doc)
protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)(Java Doc)
protected void populateGroupsFromDatabase() throws PopulateException(Code)(Java Doc)
public org.w3c.dom.Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc)
public Editable reactivate() throws EditException(Code)(Java Doc)
protected void removeParent(AbstractParentObject group) throws PopulateException(Code)(Java Doc)
protected void saveCoreData() throws EditException(Code)(Java Doc)
protected void setRealParent(AbstractParentObject group) throws PopulateException(Code)(Java Doc)
protected void update() throws EditException, DataStoreException(Code)(Java Doc)
protected void updateParents() throws EditException(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.