|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.content.NodeRevisionDescriptor
Node Revision Descriptor class.
Field Summary | |
static java.lang.String |
COLLECTION_TYPE
Collection type. |
static java.lang.String |
CONTENT_LANGUAGE
Content language. |
static java.lang.String |
CONTENT_LENGTH
Content length. |
static java.lang.String |
CONTENT_TYPE
MIME type of the content. |
static java.lang.String |
CREATION_DATE
Creation date. |
protected static java.text.SimpleDateFormat |
creationDateFormat
Simple date format for the creation date ISO representation (partial). |
static java.lang.String |
ETAG
ETag. |
protected static java.text.SimpleDateFormat |
format
HTTP date format. |
protected static java.text.SimpleDateFormat[] |
formats
Date formats using for Date parsing. |
static java.lang.String |
LAST_MODIFIED
Last modification date. |
static java.lang.String |
NAME
Name. |
static java.lang.String |
SOURCE
Source. |
static java.lang.String |
TYPE
Type. |
Constructor Summary | |
NodeRevisionDescriptor()
Constructor. |
|
NodeRevisionDescriptor(long contentLength)
Constructor for client applications. |
|
NodeRevisionDescriptor(NodeRevisionNumber number,
java.lang.String branchName,
java.util.Vector labels,
java.util.Hashtable properties)
Constructor used for retrieval. |
Method Summary | |
(package private) static void |
|
void |
addLabel(java.lang.String label)
Add new label. |
NodeRevisionDescriptor |
cloneObject()
Clone. |
java.util.Enumeration |
enumerateLabels()
Enumerate labels. |
java.util.Enumeration |
enumerateProperties()
Properties values enumerator. |
java.util.Enumeration |
enumeratePropertiesName()
Properties names enumerator. |
boolean |
equals(java.lang.Object obj)
Equals. |
boolean |
exists(java.lang.String name)
Tests if a property has been set. |
boolean |
exists(java.lang.String name,
java.lang.String namespace)
Tests if a property has been set. |
java.lang.String |
getBranchName()
Branch name accessor. |
java.lang.String |
getContentLanguage()
Content language accessor. |
long |
getContentLength()
Content length accessor. |
java.lang.String |
getContentType()
Get the MIME content type of the data (if any). |
java.lang.String |
getCreationDate()
Creation date accessor. |
java.util.Date |
getCreationDateAsDate()
Creation date accessor. |
java.lang.String |
getLastModified()
Last modification date accessor. |
java.util.Date |
getLastModifiedAsDate()
Creation date accessor. |
java.lang.String |
getName()
Name accessor. |
(package private) java.util.Hashtable |
getProperties()
Properties accessor. |
java.util.Enumeration |
getPropertiesNames()
Deprecated. Replaced by enumeratePropertiesName |
java.util.Enumeration |
getPropertiesValues()
Deprecated. Replaced by enumerate properties |
NodeProperty |
getProperty(java.lang.String name)
Property accessor. |
NodeProperty |
getProperty(java.lang.String name,
java.lang.String namespace)
Property accessor. |
NodeRevisionNumber |
getRevisionNumber()
Revision number accessor. |
void |
removeLabel(java.lang.String label)
Remove a label. |
void |
removeLabels()
Remove all labels. |
void |
removeProperty(NodeProperty property)
Remove a property. |
void |
removeProperty(java.lang.String property)
Remove a property. |
void |
removeProperty(java.lang.String property,
java.lang.String nameSpace)
Remove a property. |
(package private) void |
setBranchName(java.lang.String branchName)
Branch name mutator. |
void |
setContentLanguage(java.lang.String contentLanguage)
Content language mutator. |
void |
setContentLength(long contentLength)
Creation length mutator. |
void |
setContentLength(java.lang.String contentLength)
Creation length mutator. |
void |
setContentType(java.lang.String contentType)
Content type mutator. |
void |
setCreationDate(java.util.Date creationDate)
Creation date mutator. |
void |
setCreationDate(java.lang.String creationDate)
Creation date mutator. |
(package private) void |
setDefaultProperties(java.util.Enumeration defaultProperties)
Set default properties. |
void |
setLastModified(java.util.Date lastModified)
Last modified mutator. |
void |
setLastModified(java.lang.String lastModified)
Last modified mutator. |
void |
setName(java.lang.String name)
Name mutator. |
(package private) void |
setProperties(java.util.Hashtable properties)
Properties mutator. |
void |
setProperty(NodeProperty property)
Property mutatory. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Property mutator. |
protected void |
setProperty(java.lang.String name,
java.lang.Object value,
boolean standard)
Property mutator. |
void |
setProperty(java.lang.String name,
java.lang.String namespace,
java.lang.Object value)
Property mutator. |
(package private) void |
setRevisionNumber(NodeRevisionNumber number)
Revision number mutator. |
void |
validate()
Validate. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CREATION_DATE
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String NAME
public static final java.lang.String TYPE
public static final java.lang.String SOURCE
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String CONTENT_LANGUAGE
public static final java.lang.String CONTENT_LENGTH
public static final java.lang.String ETAG
public static final java.lang.String COLLECTION_TYPE
protected static final java.text.SimpleDateFormat format
protected static final java.text.SimpleDateFormat[] formats
protected static final java.text.SimpleDateFormat creationDateFormat
Constructor Detail |
public NodeRevisionDescriptor()
public NodeRevisionDescriptor(long contentLength)
public NodeRevisionDescriptor(NodeRevisionNumber number, java.lang.String branchName, java.util.Vector labels, java.util.Hashtable properties)
Method Detail |
static void()
public java.lang.String getBranchName()
void setBranchName(java.lang.String branchName)
public NodeRevisionNumber getRevisionNumber()
void setRevisionNumber(NodeRevisionNumber number)
public void addLabel(java.lang.String label)
public void removeLabel(java.lang.String label)
public void removeLabels()
public java.util.Enumeration enumerateLabels()
java.util.Hashtable getProperties()
void setProperties(java.util.Hashtable properties)
public boolean exists(java.lang.String name)
name
- Property namepublic boolean exists(java.lang.String name, java.lang.String namespace)
name
- Property namepublic NodeProperty getProperty(java.lang.String name)
name
- Property namepublic NodeProperty getProperty(java.lang.String name, java.lang.String namespace)
name
- Property namenamespace
- Property namespacepublic void setProperty(java.lang.String name, java.lang.Object value)
name
- Property namevalue
- Property valuepublic void setProperty(java.lang.String name, java.lang.String namespace, java.lang.Object value)
name
- Property namevalue
- Property valuenamespace
- Property valueprotected void setProperty(java.lang.String name, java.lang.Object value, boolean standard)
name
- Property namevalue
- Property valuestandard
- True if one of the standrad propertiespublic void setProperty(NodeProperty property)
property
- Propertypublic void removeProperty(NodeProperty property)
property
- Propertypublic void removeProperty(java.lang.String property)
property
- Propertypublic void removeProperty(java.lang.String property, java.lang.String nameSpace)
property
- Propertypublic java.util.Enumeration getPropertiesNames()
public java.util.Enumeration enumeratePropertiesName()
public java.util.Enumeration getPropertiesValues()
public java.util.Enumeration enumerateProperties()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- New namepublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- New content typepublic java.lang.String getContentLanguage()
public void setContentLanguage(java.lang.String contentLanguage)
contentLanguage
- New content languagepublic java.lang.String getCreationDate()
public java.util.Date getCreationDateAsDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- New creation datepublic void setCreationDate(java.lang.String creationDate)
creationDate
- New creation datepublic java.lang.String getLastModified()
public java.util.Date getLastModifiedAsDate()
public void setLastModified(java.util.Date lastModified)
lastModified
- New last modified datepublic void setLastModified(java.lang.String lastModified)
lastModified
- New last modifiedpublic void setContentLength(long contentLength)
creationLength
- New content lengthpublic void setContentLength(java.lang.String contentLength)
creationLength
- New content lengthpublic long getContentLength()
void setDefaultProperties(java.util.Enumeration defaultProperties)
public NodeRevisionDescriptor cloneObject()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to testpublic void validate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |