|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.template.cache.CmsElementVariant
An instance of CmsElementVariant stores a single cached variant for an element. This is the generated output (content) of an element. This cache stores all generated strings of this element and all links to other elements.
| Constructor Summary | |
CmsElementVariant()
Creates a new empty variant for an element. |
|
| Method Summary | |
void |
add(byte[] staticContent)
Adds static content to this variant. |
void |
add(byte[] staticContent,
String encoding)
Adds static content to this variant. |
void |
add(CmsElementLink elementLink)
Adds an element-link to this variant. |
void |
add(CmsMethodLink methodLink)
Adds an method-link to this variant. |
void |
add(String staticContent)
Adds static content to this variant. |
void |
addDependencies(Vector depVariant)
Add a dependencies Vector to this. |
Object |
get(int i)
Returns a peace of this variant. |
Vector |
getDependencies()
Gets the dependencies Vector of this Variant. |
long |
getNextTimeout()
Returns the time when this variant has to be new generated. |
boolean |
isTimeCritical()
Returns true if this variant has an expiration date. |
void |
mergeNextTimeout(long timeout)
Merges the time when this variant has to be new generated. |
void |
setDependencies(Vector dependencies)
Sets the dependencies Vector for this Variant. |
void |
setExported()
Sets the marker exported to true. |
int |
size()
Get the number of objects in this variant. |
String |
toString()
Get a string representation of this variant. |
boolean |
wasExported()
Returns true if this variant was allready exported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsElementVariant()
| Method Detail |
public void add(String staticContent)
staticContent - - part of the variant. A peace static content of
type string.public void add(byte[] staticContent)
staticContent - - part of the variant. A peace static content of
type byte-array.
public void add(byte[] staticContent,
String encoding)
staticContent - - part of the variant. A peace static content of
type byte-array.public void add(CmsElementLink elementLink)
elementLink - - part of the variant. A link to another element.public void add(CmsMethodLink methodLink)
methodLink - - part of the variant. A link to an method.public int size()
public Object get(int i)
i - - the index to the vector of variant-pieces.public void setDependencies(Vector dependencies)
dependencies - A Vector of Strings.public boolean wasExported()
public void setExported()
public Vector getDependencies()
public void addDependencies(Vector depVariant)
depVariant - The Vector with the dependencies.public String toString()
toString in class Objectpublic void mergeNextTimeout(long timeout)
public long getNextTimeout()
public boolean isTimeCritical()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||