com.adobe.repository.infomodel.bean
Class TextFragment

java.lang.Object
  extended by com.adobe.repository.infomodel.bean.Resource
      extended by com.adobe.repository.infomodel.bean.Fragment
          extended by com.adobe.repository.infomodel.bean.TextFragment
All Implemented Interfaces:
java.io.Serializable

public class TextFragment
extends Fragment
implements java.io.Serializable

A TextFragment is a Fragment containing text. The text format can be identified by its ResourceContent object's MIME type.

See Also:
Serialized Form

Field Summary
static int ATTRIBUTE_ID_STRING
          Contains the attribute identifier value which represents TextFragment instances.
static int ATTRIBUTE_TYPE
          Contains the attribute identifier value which represents the type.
static int OBJECT_TYPE_TEXT_FRAGMENT
          Contains the object type value which represents TextFragment instances.
 
Fields inherited from class com.adobe.repository.infomodel.bean.Fragment
OBJECT_TYPE_FRAGMENT
 
Fields inherited from class com.adobe.repository.infomodel.bean.Resource
ATTRIBUTE_ACL_ID, ATTRIBUTE_APPSTORE_VERSION, ATTRIBUTE_CONTENT_IMPL_OID, ATTRIBUTE_CREATE_TIME, ATTRIBUTE_CREATED_BY, ATTRIBUTE_CUSTOM_STATUS, ATTRIBUTE_DEPLOYMENT_STATUS, ATTRIBUTE_DESCRIPTION, ATTRIBUTE_E_TAG, ATTRIBUTE_HEAD, ATTRIBUTE_ID, ATTRIBUTE_LID, ATTRIBUTE_MAJOR_VERSION, ATTRIBUTE_MINOR_VERSION, ATTRIBUTE_NAME, ATTRIBUTE_OBJECT_STATUS, ATTRIBUTE_OBJECT_TYPE, ATTRIBUTE_OWNER_USER_ID, ATTRIBUTE_PATH, ATTRIBUTE_UPDATE_TIME, DEPLOYMENT_STATUS_ACTIVE, DEPLOYMENT_STATUS_DEPLOYED, DEPLOYMENT_STATUS_INACTIVE, DEPLOYMENT_STATUS_UNSPECIFIED, DEPTH_ZERO, OBJECT_STATUS_DEPRECATED, OBJECT_STATUS_LATEST, OBJECT_STATUS_UNSPECIFIED, OBJECT_STATUS_UPDATED, OBJECT_TYPE_RESOURCE, RELATION_CONTENT, RELATION_LOCKS, RELATION_RESOURCE_PROPERTIES
 
Constructor Summary
TextFragment()
          Default constructor.
 
Method Summary
 java.util.Date getCreateTime()
          Retrieves the time at which this resource was first written to the Repository.
 short getType()
          Retrieves the MIME type.
 java.util.Date getUpdateTime()
          Retrieves the time at which this resource was last modified.
 void setCreateTime(java.util.Date createTime)
          Sets the time at which this resource was first written to the Repository.
 void setType(short type)
          Sets the MIME type.
 void setUpdateTime(java.util.Date updateTime)
          Sets the time at which this resource was last modified.
 
Methods inherited from class com.adobe.repository.infomodel.bean.Resource
addLock, addResourceProperty, getAclId, getContent, getCreatedBy, getCustomStatus, getDeploymentStatus, getDescription, getETag, getHead, getId, getLid, getLocks, getMajorVersion, getMinorVersion, getName, getObjectStatus, getObjectType, getOwnerUserId, getPath, getResourceProperties, isProjected, removeLock, removeResourceProperty, setAclId, setContent, setCreatedBy, setCustomStatus, setDeploymentStatus, setDescription, setETag, setHead, setId, setLid, setMajorVersion, setMinorVersion, setName, setObjectStatus, setObjectType, setOwnerUserId, setPath, setRepositoryLoadProfile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_TYPE_TEXT_FRAGMENT

public static final int OBJECT_TYPE_TEXT_FRAGMENT
Contains the object type value which represents TextFragment instances.

See Also:
Constant Field Values

ATTRIBUTE_ID_STRING

public static final int ATTRIBUTE_ID_STRING
Contains the attribute identifier value which represents TextFragment instances.

See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final int ATTRIBUTE_TYPE
Contains the attribute identifier value which represents the type.

See Also:
Constant Field Values
Constructor Detail

TextFragment

public TextFragment()
Default constructor.

Method Detail

getType

public short getType()
Retrieves the MIME type.

Returns:
The MIME type.

setType

public void setType(short type)
Sets the MIME type. It is recommended that the ResourceContent object's MIME type be used.

Parameters:
type - the MIME type.

getUpdateTime

public java.util.Date getUpdateTime()
Retrieves the time at which this resource was last modified.

Overrides:
getUpdateTime in class Fragment
Returns:
The time at which this resource was last modified.

setUpdateTime

public void setUpdateTime(java.util.Date updateTime)
Sets the time at which this resource was last modified.

Overrides:
setUpdateTime in class Fragment
Parameters:
updateTime - The time at which this resource was last modified.

getCreateTime

public java.util.Date getCreateTime()
Retrieves the time at which this resource was first written to the Repository.

Overrides:
getCreateTime in class Fragment
Returns:
The time at which this resource was first written to the Repository.

setCreateTime

public void setCreateTime(java.util.Date createTime)
Sets the time at which this resource was first written to the Repository.

Overrides:
setCreateTime in class Fragment
Parameters:
createTime - The time at which this resource was first written to the Repository.


[an error occurred while processing this directive] [an error occurred while processing this directive]