|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.appserver.parser.WOComponentTemplateParser
public abstract class WOComponentTemplateParser
Used for parsing traditional .wo components. Formerly a private class, moved to com.webobjects.appserver.parser.* as of WebObjects 5.4.
Nested Class Summary | |
---|---|
static class |
WOComponentTemplateParser.Factory
Factory method for new parser. |
Constructor Summary | |
---|---|
WOComponentTemplateParser(String referenceName,
String HTMLString,
String declarationString,
NSArray languages,
WOAssociationFactory associationFactory,
WOMLNamespaceProvider namespaceProvider)
|
Method Summary | |
---|---|
WOAssociationFactory |
associationFactory()
|
String |
declarationString()
|
String |
htmlString()
|
NSArray |
languages()
|
WOMLNamespaceProvider |
namespaceProvider()
|
abstract WOElement |
parse()
|
String |
referenceName()
|
void |
setDeclarationString(String value)
|
void |
setHtmlString(String value)
|
void |
setLanguages(NSArray languages)
|
static void |
setWOHTMLTemplateParserClassName(String className)
|
protected boolean |
shouldThrowException()
|
static WOElement |
templateWithHTMLAndDeclaration(String someHTML,
String declarations,
NSArray languages)
Deprecated. Use templateWithHTMLAndDeclaration(String, String, String, String, NSArray |
static WOElement |
templateWithHTMLAndDeclaration(String referenceName,
String someHTML,
String declarations,
NSArray languages,
WOAssociationFactory associationFactory,
WOMLNamespaceProvider namespaceProvider)
Deprecated. Use templateWithHTMLAndDeclaration(String, String, String, String, NSArray |
static WOElement |
templateWithHTMLAndDeclaration(String frameworkName,
String referenceName,
String someHTML,
String declarations,
NSArray languages,
WOAssociationFactory associationFactory,
WOMLNamespaceProvider namespaceProvider)
Creates a new parser and parse the component |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WOComponentTemplateParser(String referenceName, String HTMLString, String declarationString, NSArray languages, WOAssociationFactory associationFactory, WOMLNamespaceProvider namespaceProvider)
HTMLString
- declarationString
- languages
- Method Detail |
---|
public abstract WOElement parse() throws ClassNotFoundException, WODeclarationFormatException, WOHTMLFormatException
WODeclarationFormatException
WOHTMLFormatException
ClassNotFoundException
public String referenceName()
public String htmlString()
public void setHtmlString(String value)
value
- public String declarationString()
public void setDeclarationString(String value)
value
- public NSArray languages()
public void setLanguages(NSArray languages)
languages
- public WOAssociationFactory associationFactory()
public WOMLNamespaceProvider namespaceProvider()
protected boolean shouldThrowException()
public String toString()
toString
in class Object
public static void setWOHTMLTemplateParserClassName(String className)
className
- @Deprecated public static WOElement templateWithHTMLAndDeclaration(String someHTML, String declarations, NSArray languages) throws WODeclarationFormatException, WOHTMLFormatException, ClassNotFoundException
referenceName
- someHTML
- declarations
- languages
- associationFactory
- namespaceProvider
-
WODeclarationFormatException
WOHTMLFormatException
ClassNotFoundException
@Deprecated public static WOElement templateWithHTMLAndDeclaration(String referenceName, String someHTML, String declarations, NSArray languages, WOAssociationFactory associationFactory, WOMLNamespaceProvider namespaceProvider) throws WODeclarationFormatException, WOHTMLFormatException, ClassNotFoundException
referenceName
- A name to use in reference to lend context to any exceptions thrown, or null if none is desired. For example, WOComponent would pass its name().someHTML
- HTML string to create the template of the componentdeclarations
- declaration on the template of the componentlanguages
- list of languages in specific orderassociationFactory
- The association factory to use when parsing the template, pass WOApplication.application().associationFactory() for the default behavior.namespaceProvider
- The namespace provider to be used when parsing the template, pass WOApplication.application().namespaceProvider() for the default behavior.
WODeclarationFormatException
WOHTMLFormatException
ClassNotFoundException
public static WOElement templateWithHTMLAndDeclaration(String frameworkName, String referenceName, String someHTML, String declarations, NSArray languages, WOAssociationFactory associationFactory, WOMLNamespaceProvider namespaceProvider) throws WODeclarationFormatException, WOHTMLFormatException, ClassNotFoundException
frameworkName
- framework name of the component to parsereferenceName
- A name to use in reference to lend context to any exceptions thrown, or null if none is desired. For example, WOComponent would pass its name().someHTML
- HTML string to create the template of the componentdeclarations
- declaration on the template of the componentlanguages
- list of languages in specific orderassociationFactory
- The association factory to use when parsing the template, pass WOApplication.application().associationFactory() for the default behavior.namespaceProvider
- The namespace provider to be used when parsing the template, pass WOApplication.application().namespaceProvider() for the default behavior.
WODeclarationFormatException
WOHTMLFormatException
ClassNotFoundException
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |