| Method from org.apache.cocoon.generation.AbstractServerPage Detail: |
protected void attribute(AttributesImpl attr,
String name,
String value) {
attr.addAttribute("", name, name, "CDATA", value);
}
|
protected void characters(String data) throws SAXException {
this.contentHandler.characters(data.toCharArray(), 0, data.length());
}
|
protected void comment(String data) throws SAXException {
this.lexicalHandler.comment(data.toCharArray(), 0, data.length());
}
|
protected void end(String name) throws SAXException {
this.contentHandler.endElement("", name, name);
}
|
public long generateKey() {
return 0;
}
Generates the unique key.
This key must be unique inside the space of this component.
Users may override this method to take
advantage of SAX event cacheing |
public CacheValidity generateValidity() {
if (hasContentChanged(request))
return null;
else
return NOPCacheValidity.CACHE_VALIDITY;
}
Generate the validity object. |
public Serializable getKey() {
return null;
}
Generate the unique key.
This key must be unique inside the space of this component.
This method must be invoked before the generateValidity() method. |
public SourceValidity getValidity() {
if (hasContentChanged(request))
return null;
else
return NOPValidity.SHARED_INSTANCE;
}
Generate the validity object.
Before this method can be invoked the generateKey() method
must be invoked. |
public boolean hasContentChanged(Request request) {
return true;
}
Determines whether generated content has changed since
last invocation. Users may override this method to take
advantage of SAX event cacheing |
public boolean modifiedSince(long date) {
if (date == 0 || dateCreated < date) {
return true;
}
for (int i = 0; i < dependencies.length; i++) {
if (dateCreated < dependencies[i].lastModified()) {
return true;
}
}
return false;
}
Determines whether this generator's source files have changed |
public void recompose(ComponentManager manager) throws ComponentException {
this.manager = manager;
}
Recompose with the actual ComponentManager that should
be used. |
protected void start(String name,
AttributesImpl attr) throws SAXException {
this.contentHandler.startElement("", name, name, attr);
attr.clear();
}
|