|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.ResourceBundle | +--java.util.ListResourceBundle | +--weblogic.apache.xalan.xpath.xml.XSLResourceBundle | +--weblogic.apache.xalan.xslt.res.XSLTErrorResources
Set up error messages. We build a two dimensional array of message keys and message strings. In order to add a new message here, you need to first update the count of messages(MAX_CODE)or the count of warnings(MAX_WARNING). The array will be automatically filled in with the keys, but you need to fill in the actual message string. Follow the instructions below.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Fields inherited from class java.util.ResourceBundle |
parent |
Constructor Summary | |
XSLTErrorResources()
|
Method Summary | |
java.lang.Object[][] |
getContents()
|
java.lang.String |
getMessageKey(int errorCode)
Get the error string associated with the error code |
static java.lang.String |
getMKey(int errorCode)
Get the error string associated with the error code |
java.lang.String |
getWarningKey(int errorCode)
Get the error string associated with the error code |
static java.lang.String |
getWKey(int errorCode)
Get the error string associated with the error code |
static XSLTErrorResources |
loadResourceBundle(java.lang.String className)
Return a named ResourceBundle for a particular locale. |
Methods inherited from class java.util.ListResourceBundle |
getKeys,
handleGetObject |
Methods inherited from class java.util.ResourceBundle |
getBundle,
getBundle,
getBundle,
getLocale,
getObject,
getString,
getStringArray,
setParent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String ERROR_SUFFIX
public static final java.lang.String WARNING_SUFFIX
public static final int MAX_CODE
public static final int MAX_WARNING
public static final int MAX_OTHERS
public static final int MAX_MESSAGES
public static final int ERROR0000
public static final int ER_NO_CURLYBRACE
public static final int ER_ILLEGAL_ATTRIBUTE
public static final int ER_NULL_SOURCENODE_APPLYIMPORTS
public static final int ER_CANNOT_ADD
public static final int ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES
public static final int ER_NO_NAME_ATTRIB
public static final int ER_TEMPLATE_NOT_FOUND
public static final int ER_CANT_RESOLVE_NAME_AVT
public static final int ER_REQUIRES_ATTRIB
public static final int ER_MUST_HAVE_TEST_ATTRIB
public static final int ER_BAD_VAL_ON_LEVEL_ATTRIB
public static final int ER_PROCESSINGINSTRUCTION_NAME_CANT_BE_XML
public static final int ER_PROCESSINGINSTRUCTION_NOTVALID_NCNAME
public static final int ER_NEED_MATCH_ATTRIB
public static final int ER_NEED_NAME_OR_MATCH_ATTRIB
public static final int ER_CANT_RESOLVE_NSPREFIX
public static final int ER_ILLEGAL_VALUE
public static final int ER_NO_OWNERDOC
public static final int ER_ELEMTEMPLATEELEM_ERR
public static final int ER_NULL_CHILD
public static final int ER_NEED_SELECT_ATTRIB
public static final int ER_NEED_TEST_ATTRIB
public static final int ER_NEED_NAME_ATTRIB
public static final int ER_NO_CONTEXT_OWNERDOC
public static final int ER_COULD_NOT_CREATE_XML_PROC_LIAISON
public static final int ER_PROCESS_NOT_SUCCESSFUL
public static final int ER_NOT_SUCCESSFUL
public static final int ER_ENCODING_NOT_SUPPORTED
public static final int ER_COULD_NOT_CREATE_TRACELISTENER
public static final int ER_KEY_REQUIRES_NAME_ATTRIB
public static final int ER_KEY_REQUIRES_MATCH_ATTRIB
public static final int ER_KEY_REQUIRES_USE_ATTRIB
public static final int ER_REQUIRES_ELEMENTS_ATTRIB
public static final int ER_MISSING_PREFIX_ATTRIB
public static final int ER_BAD_STYLESHEET_URL
public static final int ER_FILE_NOT_FOUND
public static final int ER_IOEXCEPTION
public static final int ER_NO_HREF_ATTRIB
public static final int ER_STYLESHEET_INCLUDES_ITSELF
public static final int ER_PROCESSINCLUDE_ERROR
public static final int ER_MISSING_LANG_ATTRIB
public static final int ER_MISSING_CONTAINER_ELEMENT_COMPONENT
public static final int ER_CAN_ONLY_OUTPUT_TO_ELEMENT
public static final int ER_PROCESS_ERROR
public static final int ER_UNIMPLNODE_ERROR
public static final int ER_NO_SELECT_EXPRESSION
public static final int ER_CANNOT_SERIALIZE_XSLPROCESSOR
public static final int ER_NO_INPUT_STYLESHEET
public static final int ER_FAILED_PROCESS_STYLESHEET
public static final int ER_COULDNT_PARSE_DOC
public static final int ER_COULDNT_FIND_FRAGMENT
public static final int ER_NODE_NOT_ELEMENT
public static final int ER_FOREACH_NEED_MATCH_OR_NAME_ATTRIB
public static final int ER_TEMPLATES_NEED_MATCH_OR_NAME_ATTRIB
public static final int ER_NO_CLONE_OF_DOCUMENT_FRAG
public static final int ER_CANT_CREATE_ITEM
public static final int ER_XMLSPACE_ILLEGAL_VALUE
public static final int ER_NO_XSLKEY_DECLARATION
public static final int ER_CANT_CREATE_URL
public static final int ER_XSLFUNCTIONS_UNSUPPORTED
public static final int ER_PROCESSOR_ERROR
public static final int ER_NOT_ALLOWED_INSIDE_STYLESHEET
public static final int ER_RESULTNS_NOT_SUPPORTED
public static final int ER_DEFAULTSPACE_NOT_SUPPORTED
public static final int ER_INDENTRESULT_NOT_SUPPORTED
public static final int ER_ILLEGAL_ATTRIB
public static final int ER_UNKNOWN_XSL_ELEM
public static final int ER_BAD_XSLSORT_USE
public static final int ER_MISPLACED_XSLWHEN
public static final int ER_XSLWHEN_NOT_PARENTED_BY_XSLCHOOSE
public static final int ER_MISPLACED_XSLOTHERWISE
public static final int ER_XSLOTHERWISE_NOT_PARENTED_BY_XSLCHOOSE
public static final int ER_NOT_ALLOWED_INSIDE_TEMPLATE
public static final int ER_UNKNOWN_EXT_NS_PREFIX
public static final int ER_IMPORTS_AS_FIRST_ELEM
public static final int ER_IMPORTING_ITSELF
public static final int ER_XMLSPACE_ILLEGAL_VAL
public static final int ER_PROCESSSTYLESHEET_NOT_SUCCESSFUL
public static final int ER_SAX_EXCEPTION
public static final int ER_FUNCTION_NOT_SUPPORTED
public static final int ER_XSLT_ERROR
public static final int ER_CURRENCY_SIGN_ILLEGAL
public static final int ER_DOCUMENT_FUNCTION_INVALID_IN_STYLESHEET_DOM
public static final int ER_CANT_RESOLVE_PREFIX_OF_NON_PREFIX_RESOLVER
public static final int ER_REDIRECT_COULDNT_GET_FILENAME
public static final int ER_CANNOT_BUILD_FORMATTERLISTENER_IN_REDIRECT
public static final int ER_INVALID_PREFIX_IN_EXCLUDERESULTPREFIX
public static final int ER_MISSING_NS_URI
public static final int ER_MISSING_ARG_FOR_OPTION
public static final int ER_INVALID_OPTION
public static final int ER_MALFORMED_FORMAT_STRING
public static final int ER_STYLESHEET_REQUIRES_VERSION_ATTRIB
public static final int ER_ILLEGAL_ATTRIBUTE_VALUE
public static final int ER_CHOOSE_REQUIRES_WHEN
public static final int ER_NO_APPLY_IMPORT_IN_FOR_EACH
public static final int ER_CANT_USE_DTM_FOR_OUTPUT
public static final int ER_CANT_USE_DTM_FOR_INPUT
public static final int ER_CALL_TO_EXT_FAILED
public static final int ER_PREFIX_MUST_RESOLVE
public static final int ER_INVALID_UTF16_SURROGATE
public static final int ER_XSLATTRSET_USED_ITSELF
public static final int ER_CANNOT_MIX_XERCESDOM
public static final int ER_TOO_MANY_LISTENERS
public static final int ER_IN_ELEMTEMPLATEELEM_READOBJECT
public static final int ER_INVALID_KEY_CALL
public static final int WG_FOUND_CURLYBRACE
public static final int WG_COUNT_ATTRIB_MATCHES_NO_ANCESTOR
public static final int WG_EXPR_ATTRIB_CHANGED_TO_SELECT
public static final int WG_NO_LOCALE_IN_FORMATNUMBER
public static final int WG_LOCALE_NOT_FOUND
public static final int WG_CANNOT_MAKE_URL_FROM
public static final int WG_CANNOT_LOAD_REQUESTED_DOC
public static final int WG_CANNOT_FIND_COLLATOR
public static final int WG_FUNCTIONS_SHOULD_USE_URL
public static final int WG_ENCODING_NOT_SUPPORTED_USING_UTF8
public static final int WG_ENCODING_NOT_SUPPORTED_USING_JAVA
public static final int WG_SPECIFICITY_CONFLICTS
public static final int WG_PARSING_AND_PREPARING
public static final int WG_ATTR_TEMPLATE
public static final int WG_CONFLICT_BETWEEN_XSLSTRIPSPACE_AND_XSLPRESERVESPACE
public static final int WG_ATTRIB_NOT_HANDLED
public static final int WG_NO_DECIMALFORMAT_DECLARATION
public static final int WG_OLD_XSLT_NS
public static final int WG_ONE_DEFAULT_XSLDECIMALFORMAT_ALLOWED
public static final int WG_XSLDECIMALFORMAT_NAMES_MUST_BE_UNIQUE
public static final int WG_ILLEGAL_ATTRIBUTE
public static final int WG_COULD_NOT_RESOLVE_PREFIX
public static final int WG_STYLESHEET_REQUIRES_VERSION_ATTRIB
public static final int WG_ILLEGAL_ATTRIBUTE_NAME
public static final int WG_ILLEGAL_ATTRIBUTE_VALUE
public static final int WG_EMPTY_SECOND_ARG
public static final java.lang.String BAD_CODE
public static final java.lang.String FORMAT_FAILED
public static final java.lang.String ERROR_STRING
public static final java.lang.String ERROR_HEADER
public static final java.lang.String WARNING_HEADER
public static final java.lang.String XSL_HEADER
public static final java.lang.String XML_HEADER
public static final java.lang.String QUERY_HEADER
Constructor Detail |
public XSLTErrorResources()
Method Detail |
public java.lang.Object[][] getContents()
public static final XSLTErrorResources loadResourceBundle(java.lang.String className) throws java.util.MissingResourceException
res
- the name of the resource to load.locale
- the locale to prefer when searching for the bundlepublic java.lang.String getMessageKey(int errorCode)
public java.lang.String getWarningKey(int errorCode)
public static java.lang.String getMKey(int errorCode)
public static java.lang.String getWKey(int errorCode)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |