| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Converts between XML messages and Content objects.
XML particular Content object implementation details:
Content
object attrbiutes are converted to XML TAG attributes
unless.
Content
object sub-nodes becomes inner-tag of parent
Content
is belongs to.
Content
can contain attributes "dtd-doctype" and "dtd-system"
which will be used to construct a DTD tag at the start of the document if they are specified
Field Summary | |
final static String | XML_ATTR_CLOSE |
final static String | XML_ATTR_OPEN |
final static String | XML_CDATA_CLOSE |
final static String | XML_CDATA_CLOSE_REPLACE |
final static String | XML_CDATA_START |
final static String | XML_DTD_END |
final static String | XML_DTD_MIDDLE |
final static String | XML_DTD_START |
final static String | XML_HEADER The tag found at the start of every XML document |
final static String | XML_SPACE |
final static String | XML_TAG_CLOSE |
final static String | XML_TAG_CLOSE_END |
final static String | XML_TAG_OPEN |
final static String | XML_TAG_OPEN_END |
Constructor Summary | |
XMLContentHandler() Default constructor for this Parser. |
Method Summary | |
boolean | canParse(String content) Determines if the Parser implementation can parse the given content |
void | characters(char[] ch, int start, int length) Receive notification of character data inside an element. |
String | deparse(Content content) This method converts a Content object into a document which is of a format determined by the Parser implementation. |
void | endDocument() Receive notification of the end of the document. |
void | endElement(String name) Receive notification of the end of an element. |
void | error(SAXParseException e) Receive notification of a recoverable parser error. |
void | fatalError(SAXParseException e) Report a fatal XML parsing error. |
static String | getNormalisedForm(String non_normalised) If necessary converts the given String into a format suitable for placing within an XML tags (i.e. |
String | getParserType() Returns the type of content language that the Parser implementation handles. |
void | ignorableWhitespace(char[] ch, int start, int length) Receive notification of ignorable whitespace in element content. |
static boolean | isXML(String content) Indicates if the given content is an XML document |
static void | main(String[] args) |
void | notationDecl(String p1, String p2, String p3) Receive notification of a notation declaration. |
Content | parse(String content) This method converts a content String into a set of Content objects |
void | processingInstruction(String target, String data) Receive notification of a processing instruction. |
InputSource | resolveEntity(String publicId, String systemId) Resolve an external entity. |
void | setDocumentLocator(Locator locator) Receive a Locator object for document events. |
void | startDocument() Receive notification of the beginning of the document. |
void | startElement(String name, AttributeList attributes) Receive notification of the start of an element. |
void | unparsedEntityDecl(String p1, String p2, String p3, String p4) Receive notification of an unparsed entity declaration. |
void | warning(SAXParseException e) Receive notification of a parser warning. |
Field Detail |
public final static String XML_ATTR_CLOSE
public final static String XML_ATTR_OPEN
public final static String XML_CDATA_CLOSE
public final static String XML_CDATA_CLOSE_REPLACE
public final static String XML_CDATA_START
public final static String XML_DTD_END
public final static String XML_DTD_MIDDLE
public final static String XML_DTD_START
public final static String XML_HEADER
public final static String XML_SPACE
public final static String XML_TAG_CLOSE
public final static String XML_TAG_CLOSE_END
public final static String XML_TAG_OPEN
public final static String XML_TAG_OPEN_END
Constructor Detail |
public XMLContentHandler()
Method Detail |
public boolean canParse(String content)
public void characters(char[] ch, int start, int length)
throws SAXException
public String deparse(Content content)
public void endDocument()
throws SAXException
public void endElement(String name)
throws SAXException
public void error(SAXParseException e)
throws SAXException
public void fatalError(SAXParseException e)
throws SAXException
public static String getNormalisedForm(String non_normalised)
public String getParserType()
public void ignorableWhitespace(char[] ch, int start, int length)
throws SAXException
public static boolean isXML(String content)
True
if the content is XMLpublic static void main(String[] args)
throws java.lang.Exception
public void notationDecl(String p1, String p2, String p3)
throws SAXException
public Content parse(String content)
public void processingInstruction(String target, String data)
throws SAXException
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException
public void setDocumentLocator(Locator locator)
public void startDocument()
throws SAXException
public void startElement(String name, AttributeList attributes)
throws SAXException
public void unparsedEntityDecl(String p1, String p2, String p3, String p4)
throws SAXException
public void warning(SAXParseException e)
throws SAXException
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class fipaos.agent.conversation.content.Content
to Class java.util.Stack
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |