com.americancoders.ebXML
Class ebXMLError
java.lang.Object
|
+--com.americancoders.ebXML.ebXMLError
- class ebXMLError
- extends java.lang.Object
An ebXML Error Document has a root element that consists of:
- an ErrorHeader element that identifies the nature and severity of the error, and
- zero or more ErrorLocation elements, that identify the part(s) of the message(s) that are
in error.
This module, both source code and documentation, is in the Public
Domain, and comes with NO WARRANTY.
Copyright (C) 2000 American Coders, Ltd. Raleigh NC USA
This program is free software; you can redistribute it and/or
modify it under the terms of the Mozilla Public License
as published by the Mozilla Software Foundation
http://www.mozilla.org/MPL
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Mozilla Public License for more details.
- See Also:
Constructor Summary |
(package private) |
ebXMLError()
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
errorHeader
ErrorHeader errorHeader
errorLocation
ErrorLocation errorLocation
errorLocations
java.util.Vector errorLocations
ebXMLError
ebXMLError()
main
public static void main(java.lang.String[] args)
- test routine
setErrorHeader
public void setErrorHeader(ErrorHeader inErrorHeader)
- method to set ErrorHeader
- Parameters:
ErrorHeader
-
getErrorHeader
public ErrorHeader getErrorHeader()
- method to get ErrorHeader
- Returns:
- errorHeader
addErrorLocation
public void addErrorLocation(ErrorLocation inErrorLocations)
- method to add ErrorLocations
- Parameters:
ErrorLocation
-
getErrorLocations
public java.util.Vector getErrorLocations()
- method to get ErrorLocations
getXML
public java.lang.String getXML()
- method to build an XML string of this and its subordinate objects
- Parameters:
int
- depth - how many multiple of 4 spaces to add in front of text- Returns:
- String - XML text