|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.template.SimpleTemplateCompilerHints
public class SimpleTemplateCompilerHints
SimpleTemplateCompilerHints by default sets all boolean
properties to false except for namespaceAware which is set to
true. There are by default no custom attributes.
Some XML parses such as Xerces will automatically go to the Internet to get the XHTML DTD from the W3C if a DOCTYPE is specified in the template data, irrespective of whether validating is true or not. You can stop this on Xerces by setting a custom property as follows :
setValidating(false);
setAttributeValue("http://apache.org/xml/features/nonvalidating/load-external-dtd", Boolean.valueOf(false));
| Constructor Summary | |
|---|---|
SimpleTemplateCompilerHints()
Constructs a SimpleTemplateCompilerHints |
|
| Method Summary | |
|---|---|
String[] |
getAttributeNames()
|
Object |
getAttributeValue(String attributeName)
Allows the system to retrieve specific attributes on the underlying XHTML parser implementation by attribute name. |
boolean |
isCoalescing()
|
boolean |
isExpandEntityReferences()
|
boolean |
isIgnoringComments()
|
boolean |
isIgnoringElementContentWhitespace()
|
boolean |
isNamespaceAware()
|
boolean |
isValidating()
|
void |
setAttributeValue(String attributeName,
Object attributeValue)
Sets an attribute value against a given attribute name |
void |
setCoalescing(boolean coalescing)
|
void |
setExpandEntityReferences(boolean expandEntityReferences)
|
void |
setIgnoringComments(boolean ignoringComments)
|
void |
setIgnoringElementContentWhitespace(boolean ignoringElementContentWhitespace)
|
void |
setNamespaceAware(boolean namespaceAware)
|
void |
setValidating(boolean validating)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTemplateCompilerHints()
SimpleTemplateCompilerHints
| Method Detail |
|---|
public String[] getAttributeNames()
getAttributeNames in interface TemplateCompilerHintsTemplateCompilerHints.getAttributeNames()public Object getAttributeValue(String attributeName)
TemplateCompilerHintsgetAttributeNames() method.
getAttributeValue in interface TemplateCompilerHintsattributeName - -
the name of the specific attribute
TemplateCompilerHints.getAttributeValue(java.lang.String)public boolean isCoalescing()
isCoalescing in interface TemplateCompilerHintsTemplateCompilerHints.isCoalescing()public boolean isExpandEntityReferences()
isExpandEntityReferences in interface TemplateCompilerHintsTemplateCompilerHints.isExpandEntityReferences()public boolean isIgnoringComments()
isIgnoringComments in interface TemplateCompilerHintsTemplateCompilerHints.isIgnoringComments()public boolean isIgnoringElementContentWhitespace()
isIgnoringElementContentWhitespace in interface TemplateCompilerHintsTemplateCompilerHints.isIgnoringElementContentWhitespace()public boolean isNamespaceAware()
isNamespaceAware in interface TemplateCompilerHintsTemplateCompilerHints.isNamespaceAware()public boolean isValidating()
isValidating in interface TemplateCompilerHintsTemplateCompilerHints.isValidating()
public void setAttributeValue(String attributeName,
Object attributeValue)
attributeName - -
the name of the attributeattributeValue - -
its valuepublic void setCoalescing(boolean coalescing)
coalescing - The boolean value to set.TemplateCompilerHints.isCoalescing()public void setExpandEntityReferences(boolean expandEntityReferences)
expandEntityReferences - The boolean value to set.TemplateCompilerHints.isExpandEntityReferences()public void setIgnoringComments(boolean ignoringComments)
ignoringComments - The boolean value to set.TemplateCompilerHints.isIgnoringComments()public void setIgnoringElementContentWhitespace(boolean ignoringElementContentWhitespace)
ignoringElementContentWhitespace - The boolean value to set.TemplateCompilerHints.isIgnoringElementContentWhitespace()public void setNamespaceAware(boolean namespaceAware)
namespaceAware - The boolean value to set.TemplateCompilerHints.isNamespaceAware()public void setValidating(boolean validating)
validating - The boolean value to set.TemplateCompilerHints.isValidating()
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||