|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.processor.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 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 String |
m_name
The name of this element. |
private String |
m_namespace
The allowed namespace for this element. |
private boolean |
m_required
If true, this is a required attribute. |
(package private) 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 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_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 | |
(package private) |
XSLTAttributeDef(String namespace,
String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
String k1,
int v1,
String k2,
int v2)
Construct an instance of XSLTAttributeDef that uses two enumerated values. |
(package private) |
XSLTAttributeDef(String namespace,
String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
String k1,
int v1,
String k2,
int v2,
String k3,
int v3)
Construct an instance of XSLTAttributeDef that uses three enumerated values. |
(package private) |
XSLTAttributeDef(String namespace,
String name,
boolean required,
boolean supportsAVT,
boolean prefixedQNameValAllowed,
int errorType,
String k1,
int v1,
String k2,
int v2,
String k3,
int v3,
String k4,
int v4)
Construct an instance of XSLTAttributeDef that uses three enumerated values. |
(package private) |
XSLTAttributeDef(String namespace,
String name,
int type,
boolean required,
boolean supportsAVT,
int errorType)
Construct an instance of XSLTAttributeDef. |
(package private) |
XSLTAttributeDef(String namespace,
String name,
int type,
boolean supportsAVT,
int errorType,
String defaultVal)
Construct an instance of XSLTAttributeDef. |
Method Summary | |
(package private) String |
getDefault()
Get the default value for this attribute. |
private int |
getEnum(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 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 StringBuffer |
getListOfEnums()
StringBuffer containing comma delimited list of valid values for ENUM type. |
(package private) String |
getName()
Get the name of this attribute. |
(package private) String |
getNamespace()
Get the allowed namespace for this attribute. |
private Class |
getPrimativeClass(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. |
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,
String msg,
Object[] args,
Exception exc)
|
(package private) Object |
processAVT_QNAME(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_QNAME into a QName value. |
(package private) AVT |
processAVT(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_AVT into a AVT value. |
(package private) Object |
processCDATA(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_CDATA into a String value. |
(package private) Object |
processCHAR(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_CHAR into a Character value. |
(package private) Object |
processENUM_OR_PQNAME(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of that is either an enumerated value or a qname-but-not-ncname. |
(package private) Object |
processENUM(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_ENUM into a int value. |
(package private) Object |
processEXPR(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_EXPR into an XPath value. |
(package private) Object |
processNCNAME(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type NCName into a String |
(package private) Object |
processNMTOKEN(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_NMTOKEN into a String value. |
(package private) Object |
processNUMBER(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_NUMBER into a double value. |
(package private) Object |
processPATTERN(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_PATTERN into an XPath match pattern value. |
(package private) StringVector |
processPREFIX_URLLIST(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value)
Process an attribute string of type T_URLLIST into a vector of prefixes that may be resolved to URLs. |
(package private) Object |
processQNAME(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_QNAME into a QName value. |
(package private) Vector |
processQNAMES(StylesheetHandler handler,
String uri,
String name,
String rawName,
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) Vector |
processQNAMESRNU(StylesheetHandler handler,
String uri,
String name,
String rawName,
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) Vector |
processSIMPLEPATTERNLIST(StylesheetHandler handler,
String uri,
String name,
String rawName,
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,
String uri,
String name,
String rawName,
String value)
Process an attribute string of type T_STRINGLIST into a vector of XPath match patterns. |
(package private) Object |
processURL(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute string of type T_URL into a URL value. |
(package private) Object |
processValue(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value,
ElemTemplateElement owner)
Process an attribute value. |
private Boolean |
processYESNO(StylesheetHandler handler,
String uri,
String name,
String rawName,
String value)
Process an attribute string of type T_YESNO into a Boolean value. |
(package private) boolean |
setAttrValue(StylesheetHandler handler,
String attrUri,
String attrLocalName,
String attrRawName,
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(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 XSLTAttributeDef m_foreignAttr
static String S_FOREIGNATTR_SETTER
private String m_namespace
private String m_name
private int m_type
private StringToIntTable m_enums
private String m_default
private boolean m_required
private boolean m_supportsAVT
int m_errorType
String m_setterString
Constructor Detail |
XSLTAttributeDef(String namespace, 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(String namespace, String name, int type, boolean supportsAVT, int errorType, 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(String namespace, String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, String k1, int v1, 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(String namespace, String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, 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(String namespace, String name, boolean required, boolean supportsAVT, boolean prefixedQNameValAllowed, int errorType, String k1, int v1, String k2, int v2, String k3, int v3, 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 |
String getNamespace()
String getName()
int getType()
private int getEnum(String key)
key
- The XSLT attribute value.
Throws
- NullPointerException if m_enums is null.private String[] getEnumNames()
Throws
- NullPointerException if m_enums is null.String getDefault()
void setDefault(String def)
def
- String representation of the default value for this attribute.boolean getRequired()
boolean getSupportsAVT()
int getErrorType()
public String getSetterMethodName()
AVT processAVT(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processCDATA(StylesheetHandler handler, String uri, String name, String rawName, 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
Object processCHAR(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processENUM(StylesheetHandler handler, String uri, String name, String rawName, 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
Object processENUM_OR_PQNAME(StylesheetHandler handler, String uri, String name, String rawName, 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
Object processEXPR(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processNMTOKEN(StylesheetHandler handler, String uri, String name, String rawName, 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 nmtokenObject processPATTERN(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processNUMBER(StylesheetHandler handler, String uri, String name, String rawName, 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.
org.xml.sax.SAXException
- that wraps a
TransformerException
if the string does not contain a parsable number.Object processQNAME(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processAVT_QNAME(StylesheetHandler handler, String uri, String name, String rawName, 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.Object processNCNAME(StylesheetHandler handler, String uri, String name, String rawName, 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.Vector processQNAMES(StylesheetHandler handler, String uri, String name, String rawName, 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 Vector processQNAMESRNU(StylesheetHandler handler, String uri, String name, String rawName, 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.Vector processSIMPLEPATTERNLIST(StylesheetHandler handler, String uri, String name, String rawName, 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, String uri, String name, String rawName, 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, String uri, String name, String rawName, 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.Object processURL(StylesheetHandler handler, String uri, String name, String rawName, 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 Boolean processYESNO(StylesheetHandler handler, String uri, String name, String rawName, 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
Object processValue(StylesheetHandler handler, String uri, String name, String rawName, 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 Class getPrimativeClass(Object obj)
obj
- The object which will be resolved to a primative class object if possible.
private StringBuffer getListOfEnums()
boolean setAttrValue(StylesheetHandler handler, String attrUri, String attrLocalName, String attrRawName, 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, String msg, Object[] args, 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 |