| 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 $ |
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.
|
TextResource | public TextResource()(Code) | | Contructs a new instance with no 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 |
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 |
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. |
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 |
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)
|
|
|