|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.processor.XSLTAttributeDef
public class XSLTAttributeDef
This class defines an attribute for an element in a XSLT stylesheet, is meant to reflect the structure defined in http://www.w3.org/TR/xslt#dtd, and the mapping between Xalan classes and the markup attributes in the element.
Field Summary | |
---|---|
(package private) static int |
ERROR
|
(package private) static int |
FATAL
|
private java.lang.String |
m_default
The default value for this attribute. |
private StringToIntTable |
m_enums
If this element is of type T_ENUM, this will contain a map from the attribute string to the Xalan integer value. |
(package private) int |
m_errorType
|
(package private) static XSLTAttributeDef |
m_foreignAttr
Representation for an attribute in a foreign namespace. |
private java.lang.String |
m_name
The name of this element. |
private java.lang.String |
m_namespace
The allowed namespace for this element. |
private boolean |
m_required
If true, this is a required attribute. |
(package private) java.lang.String |
m_setterString
String that should represent the setter method which which may be used on objects to set a value that represents this attribute |
private boolean |
m_supportsAVT
If true, this is attribute supports AVT's. |
private int |
m_type
The type of this attribute value. |
(package private) static java.lang.String |
S_FOREIGNATTR_SETTER
Method name that objects may implement if they wish to have forein attributes set. |
(package private) static int |
T_AVT
Type values that represent XSLT attribute types. |
(package private) static int |
T_AVT_QNAME
Type values that represent XSLT attribute types. |
(package private) static int |
T_CDATA
Type values that represent XSLT attribute types. |
(package private) static int |
T_CHAR
Type values that represent XSLT attribute types. |
(package private) static int |
T_ENUM
Type values that represent XSLT attribute types. |
(package private) static int |
T_ENUM_OR_PQNAME
Type values that represent XSLT attribute types. |
(package private) static int |
T_EXPR
Type values that represent XSLT attribute types. |
(package private) static int |
T_NCNAME
Type values that represent XSLT attribute types. |
(package private) static int |
T_NMTOKEN
Type values that represent XSLT attribute types. |
(package private) static int |
T_NUMBER
Type values that represent XSLT attribute types. |
(package private) static int |
T_PATTERN
Type values that represent XSLT attribute types. |
(package private) static int |
T_PREFIX_URLLIST
Type values that represent XSLT attribute types. |
(package private) static int |
T_PREFIXLIST
Type values that represent XSLT attribute types. |
(package private) static int |
T_QNAME
Type values that represent XSLT attribute types. |
(package private) static int |
T_QNAMES
Type values that represent XSLT attribute types. |
(package private) static int |
T_QNAMES_RESOLVE_NULL
Type values that represent XSLT attribute types. |
(package private) static int |
T_SIMPLEPATTERNLIST
Type values that represent XSLT attribute types. |
(package private) static int |
T_STRINGLIST
Type values that represent XSLT attribute types. |
(package private) static int |
T_URL
Type values that represent XSLT attribute types. |
(package private) static int |
T_YESNO
Type values that represent XSLT attribute types. |
(package private) static int |
WARNING
|
Constructor Summary | |
---|---|
XSLTAttributeDef(java.lang.String namespace,
java.lang.String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
java.lang.String k1,
int v1,
java.lang.String k2,
int v2)
Construct an instance of XSLTAttributeDef that uses two enumerated values. |
|
XSLTAttributeDef(java.lang.String namespace,
java.lang.String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
java.lang.String k1,
int v1,
java.lang.String k2,
int v2,
java.lang.String k3,
int v3)
Construct an instance of XSLTAttributeDef that uses three enumerated values. |
|
XSLTAttributeDef(java.lang.String namespace,
java.lang.String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
java.lang.String k1,
int v1,
java.lang.String k2,
int v2,
java.lang.String k3,
int v3,
java.lang.String k4,
int v4)
Construct an instance of XSLTAttributeDef that uses three enumerated values. |
|
XSLTAttributeDef(java.lang.String namespace,
java.lang.String name,
int type,
boolean required,
boolean supportsAVT,
int errorType)
Construct an instance of XSLTAttributeDef. |
|
XSLTAttributeDef(java.lang.String namespace,
java.lang.String name,
int type,
boolean supportsAVT,
int errorType,
java.lang.String defaultVal)
Construct an instance of XSLTAttributeDef. |
Method Summary | |
---|---|
(package private) java.lang.String |
getDefault()
Get the default value for this attribute. |
private int |
getEnum(java.lang.String key)
If this element is of type T_ENUM, this will return a map from the attribute string to the Xalan integer value. |
private java.lang.String[] |
getEnumNames()
If this element is of type T_ENUM, this will return an array of strings - the values in the enumeration |
(package private) int |
getErrorType()
Get the type of error message to use if the attribute value is invalid. |
private java.lang.StringBuffer |
getListOfEnums()
StringBuffer containing comma delimited list of valid values for ENUM type. |
(package private) java.lang.String |
getName()
Get the name of this attribute. |
(package private) java.lang.String |
getNamespace()
Get the allowed namespace for this attribute. |
private java.lang.Class |
getPrimativeClass(java.lang.Object obj)
Get the primative type for the class, if there is one. |
(package private) boolean |
getRequired()
Get whether or not this is a required attribute. |
java.lang.String |
getSetterMethodName()
Return a string that should represent the setter method. |
(package private) boolean |
getSupportsAVT()
Get whether or not this attribute supports AVT's. |
(package private) int |
getType()
Get the type of this attribute value. |
private void |
handleError(StylesheetHandler handler,
java.lang.String msg,
java.lang.Object[] args,
java.lang.Exception exc)
|
(package private) java.lang.Object |
processAVT_QNAME(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_QNAME into a QName value. |
(package private) AVT |
processAVT(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_AVT into a AVT value. |
(package private) java.lang.Object |
processCDATA(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_CDATA into a String value. |
(package private) java.lang.Object |
processCHAR(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_CHAR into a Character value. |
(package private) java.lang.Object |
processENUM_OR_PQNAME(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of that is either an enumerated value or a qname-but-not-ncname. |
(package private) java.lang.Object |
processENUM(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_ENUM into a int value. |
(package private) java.lang.Object |
processEXPR(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_EXPR into an XPath value. |
(package private) java.lang.Object |
processNCNAME(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type NCName into a String |
(package private) java.lang.Object |
processNMTOKEN(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_NMTOKEN into a String value. |
(package private) java.lang.Object |
processNUMBER(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_NUMBER into a double value. |
(package private) java.lang.Object |
processPATTERN(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_PATTERN into an XPath match pattern value. |
(package private) StringVector |
processPREFIX_LIST(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_PREFIXLIST into a vector of prefixes that may be resolved to URLs. |
(package private) StringVector |
processPREFIX_URLLIST(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_URLLIST into a vector of prefixes that may be resolved to URLs. |
(package private) java.lang.Object |
processQNAME(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_QNAME into a QName value. |
(package private) java.util.Vector |
processQNAMES(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_QNAMES into a vector of QNames where the specification requires that non-prefixed elements not be placed in a namespace. |
(package private) java.util.Vector |
processQNAMESRNU(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_QNAMES_RESOLVE_NULL into a vector of QNames where the specification requires non-prefixed elements to be placed in the default namespace. |
(package private) java.util.Vector |
processSIMPLEPATTERNLIST(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_SIMPLEPATTERNLIST into a vector of XPath match patterns. |
(package private) StringVector |
processSTRINGLIST(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_STRINGLIST into a vector of XPath match patterns. |
(package private) java.lang.Object |
processURL(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute string of type T_URL into a URL value. |
(package private) java.lang.Object |
processValue(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value,
ElemTemplateElement owner)
Process an attribute value. |
private java.lang.Boolean |
processYESNO(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String value)
Process an attribute string of type T_YESNO into a Boolean value. |
(package private) boolean |
setAttrValue(StylesheetHandler handler,
java.lang.String attrUri,
java.lang.String attrLocalName,
java.lang.String attrRawName,
java.lang.String attrValue,
ElemTemplateElement elem)
Set a value on an attribute. |
(package private) void |
setDefAttrValue(StylesheetHandler handler,
ElemTemplateElement elem)
Set the default value of an attribute. |
(package private) void |
setDefault(java.lang.String def)
Set the default value for this attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int FATAL
static final int ERROR
static final int WARNING
static final int T_CDATA
static final int T_URL
static final int T_AVT
static final int T_PATTERN
static final int T_EXPR
static final int T_CHAR
static final int T_NUMBER
static final int T_YESNO
static final int T_QNAME
static final int T_QNAMES
static final int T_ENUM
static final int T_SIMPLEPATTERNLIST
static final int T_NMTOKEN
static final int T_STRINGLIST
static final int T_PREFIX_URLLIST
static final int T_ENUM_OR_PQNAME
static final int T_NCNAME
static final int T_AVT_QNAME
static final int T_QNAMES_RESOLVE_NULL
static final int T_PREFIXLIST
static final XSLTAttributeDef m_foreignAttr
static final java.lang.String S_FOREIGNATTR_SETTER
private java.lang.String m_namespace
private java.lang.String m_name
private int m_type
private StringToIntTable m_enums
private java.lang.String m_default
private boolean m_required
private boolean m_supportsAVT
int m_errorType
java.lang.String m_setterString
Constructor Detail |
---|
XSLTAttributeDef(java.lang.String namespace, java.lang.String name, int type, boolean required, boolean supportsAVT, int errorType)
namespace
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.type
- One of T_CDATA, T_URL, T_AVT, T_PATTERN, T_EXPR, T_CHAR,
T_NUMBER, T_YESNO, T_QNAME, T_QNAMES, T_ENUM, T_SIMPLEPATTERNLIST,
T_NMTOKEN, T_STRINGLIST, T_PREFIX_URLLIST, T_ENUM_OR_PQNAME, T_NCNAME.required
- true if this is attribute is required by the XSLT specification.supportsAVT
- true if this attribute supports AVT's.errorType
- the type of error to issue if validation fails. One of FATAL, ERROR, WARNING.XSLTAttributeDef(java.lang.String namespace, java.lang.String name, int type, boolean supportsAVT, int errorType, java.lang.String defaultVal)
namespace
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.type
- One of T_CDATA, T_URL, T_AVT, T_PATTERN, T_EXPR,
T_CHAR, T_NUMBER, T_YESNO, T_QNAME, T_QNAMES, T_ENUM,
T_SIMPLEPATTERNLIST, T_NMTOKEN, T_STRINGLIST, T_PREFIX_URLLIST,
T_ENUM_OR_PQNAME, T_NCNAME.supportsAVT
- true if this attribute supports AVT's.errorType
- the type of error to issue if validation fails. One of FATAL, ERROR, WARNING.defaultVal
- The default value for this attribute.XSLTAttributeDef(java.lang.String namespace, java.lang.String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, java.lang.String k1, int v1, java.lang.String k2, int v2)
namespace
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.required
- true if this attribute is required by the XSLT specification.supportsAVT
- true if this attribute supports AVT's.prefixedQNameValAllowed
- If true, the type is T_ENUM_OR_PQNAMEerrorType
- the type of error to issue if validation fails. One of FATAL, ERROR, WARNING.k1
- The XSLT name of the enumerated value.v1
- An integer representation of k1.k2
- The XSLT name of the enumerated value.v2
- An integer representation of k2.XSLTAttributeDef(java.lang.String namespace, java.lang.String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, java.lang.String k1, int v1, java.lang.String k2, int v2, java.lang.String k3, int v3)
namespace
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.required
- true if this attribute is required by the XSLT specification.supportsAVT
- true if this attribute supports AVT's.prefixedQNameValAllowed
- If true, the type is T_ENUM_OR_PQNAMEerrorType
- the type of error to issue if validation fails. One of FATAL, ERROR, WARNING. *k1
- The XSLT name of the enumerated value.v1
- An integer representation of k1.k2
- The XSLT name of the enumerated value.v2
- An integer representation of k2.k3
- The XSLT name of the enumerated value.v3
- An integer representation of k3.XSLTAttributeDef(java.lang.String namespace, java.lang.String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, java.lang.String k1, int v1, java.lang.String k2, int v2, java.lang.String k3, int v3, java.lang.String k4, int v4)
namespace
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.required
- true if this attribute is required by the XSLT specification.supportsAVT
- true if this attribute supports AVT's.prefixedQNameValAllowed
- If true, the type is T_ENUM_OR_PQNAMEerrorType
- the type of error to issue if validation fails. One of FATAL, ERROR, WARNING. * @param k1 The XSLT name of the enumerated value.v1
- An integer representation of k1.k2
- The XSLT name of the enumerated value.v2
- An integer representation of k2.k3
- The XSLT name of the enumerated value.v3
- An integer representation of k3.k4
- The XSLT name of the enumerated value.v4
- An integer representation of k4.Method Detail |
---|
java.lang.String getNamespace()
java.lang.String getName()
int getType()
private int getEnum(java.lang.String key)
key
- The XSLT attribute value.
Throws
- NullPointerException if m_enums is null.private java.lang.String[] getEnumNames()
Throws
- NullPointerException if m_enums is null.java.lang.String getDefault()
void setDefault(java.lang.String def)
def
- String representation of the default value for this attribute.boolean getRequired()
boolean getSupportsAVT()
int getErrorType()
public java.lang.String getSetterMethodName()
AVT processAVT(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- Should be an Attribute Value Template string.
org.xml.sax.SAXException
- which will wrap a
TransformerException
, if there is a syntax error
in the attribute value template string.java.lang.Object processCDATA(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- non-null string reference.
org.xml.sax.SAXException.
org.xml.sax.SAXException
java.lang.Object processCHAR(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- Should be a string with a length of 1.
org.xml.sax.SAXException
- if the string is not a length of 1.java.lang.Object processENUM(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- non-null string that represents an enumerated value that is
valid for this element.owner
-
org.xml.sax.SAXException
java.lang.Object processENUM_OR_PQNAME(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- non-null string that represents an enumerated value that is
valid for this element.owner
-
org.xml.sax.SAXException
java.lang.Object processEXPR(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- An XSLT expression string.
org.xml.sax.SAXException
- that wraps a
TransformerException
if the expression
string contains a syntax error.java.lang.Object processNMTOKEN(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A NMTOKEN string.
org.xml.sax.SAXException
- if the value is not a valid nmtokenjava.lang.Object processPATTERN(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A match pattern string.
org.xml.sax.SAXException
- that wraps a
TransformerException
if the match pattern
string contains a syntax error.java.lang.Object processNUMBER(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A string that can be parsed into a double value.number
-
org.xml.sax.SAXException
- that wraps a
TransformerException
if the string does not contain a parsable number.java.lang.Object processQNAME(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A string that represents a potentially prefix qualified name.owner
-
org.xml.sax.SAXException
- if the string contains a prefix that can not be
resolved, or the string contains syntax that is invalid for a qualified name.java.lang.Object processAVT_QNAME(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A string that represents a potentially prefix qualified name.owner
-
org.xml.sax.SAXException
- if the string contains a prefix that can not be
resolved, or the string contains syntax that is invalid for a qualified name.java.lang.Object processNCNAME(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A string that represents a potentially prefix qualified name.owner
-
org.xml.sax.SAXException
- if the string contains a prefix that can not be
resolved, or the string contains syntax that is invalid for a NCName.java.util.Vector processQNAMES(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A whitespace delimited list of qualified names.
org.xml.sax.SAXException
- if the one of the qualified name strings
contains a prefix that can not be
resolved, or a qualified name contains syntax that is invalid for a qualified name.final java.util.Vector processQNAMESRNU(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value) throws org.xml.sax.SAXException
cdata-section-elements
attribute on xsl:output
.
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A whitespace delimited list of qualified names.
org.xml.sax.SAXException
- if the one of the qualified name strings
contains a prefix that can not be resolved, or a qualified name contains
syntax that is invalid for a qualified name.java.util.Vector processSIMPLEPATTERNLIST(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A whitespace delimited list of simple match patterns.
org.xml.sax.SAXException
- that wraps a
TransformerException
if one of the match pattern
strings contains a syntax error.StringVector processSTRINGLIST(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value)
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- a whitespace delimited list of string values.
StringVector processPREFIX_URLLIST(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A list of whitespace delimited prefixes.
org.xml.sax.SAXException
- if one of the prefixes can not be resolved.StringVector processPREFIX_LIST(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A list of whitespace delimited prefixes.
org.xml.sax.SAXException
- if one of the prefixes can not be resolved.java.lang.Object processURL(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- non-null string that conforms to the URL syntax.
org.xml.sax.SAXException
- if the URL does not conform to the URL syntax.private java.lang.Boolean processYESNO(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- A string that should be "yes" or "no".
org.xml.sax.SAXException
java.lang.Object processValue(StylesheetHandler handler, java.lang.String uri, java.lang.String name, java.lang.String rawName, java.lang.String value, ElemTemplateElement owner) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.uri
- The Namespace URI, or an empty string.name
- The local name (without prefix), or empty string if not namespace processing.rawName
- The qualified name (with prefix).value
- The unprocessed string value of the attribute.
org.xml.sax.SAXException
- if the attribute value can not be processed.void setDefAttrValue(StylesheetHandler handler, ElemTemplateElement elem) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.elem
- The object on which the property will be set.
org.xml.sax.SAXException
- wraps an invocation exception if the
setter method can not be invoked on the object.private java.lang.Class getPrimativeClass(java.lang.Object obj)
obj
- The object which will be resolved to a primative class object if possible.
private java.lang.StringBuffer getListOfEnums()
boolean setAttrValue(StylesheetHandler handler, java.lang.String attrUri, java.lang.String attrLocalName, java.lang.String attrRawName, java.lang.String attrValue, ElemTemplateElement elem) throws org.xml.sax.SAXException
handler
- non-null reference to current StylesheetHandler that is constructing the Templates.attrUri
- The Namespace URI of the attribute, or an empty string.attrLocalName
- The local name (without prefix), or empty string if not namespace processing.attrRawName
- The raw name of the attribute, including possible prefix.attrValue
- The attribute's value.elem
- The object that should contain a property that represents the attribute.
org.xml.sax.SAXException
private void handleError(StylesheetHandler handler, java.lang.String msg, java.lang.Object[] args, java.lang.Exception exc) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |