es.uc3m.it.xbe32
Interface XBE32ParseListener

All Known Implementing Classes:
XBE32ElementParser, XBE32ObjectParser, XBE32Printer

public interface XBE32ParseListener

The classes implementing this interface process the XBE32 parsing events generated by the XBE32Parser or XBE32Reader classes.


Method Summary
 void attributeElement(boolean ext, int id, String name, boolean c, boolean e, int type, Object vals)
          This method is called when an Attribute Element is processed by the XBE32Parser.
 void complexElementEnd(boolean ext, int id, String name, boolean c, boolean e)
          This method is called when a Complex Element has been just processed by the XBE32Parser.
 void complexElementStart(boolean ext, int id, String name, boolean c, boolean e)
          This method is called when a Complex Element is found by the XBE32Parser.
 void endParsing(int length)
          This method is called when the XBE32Parser successfully ends parsing the full XBE32-encoded stream.
 void startParsing()
          This method is called when the XBE32Parser.parse() method is called, thus the parsing process starts.
 

Method Detail

startParsing

public void startParsing()
This method is called when the XBE32Parser.parse() method is called, thus the parsing process starts.

See Also:
XBE32Parser.parse()

complexElementStart

public void complexElementStart(boolean ext,
                                int id,
                                String name,
                                boolean c,
                                boolean e)
                         throws XBE32ParseException
This method is called when a Complex Element is found by the XBE32Parser.

Parameters:
ext - whether the Complex Element that to be parsed is an Extensible or a Compact one
id - the identifier of the Complex Element to be parsed
name - the name of the Complex Element to be parsed
c - the Continue flag of the Complex Element to be parsed
e - the Notify Error flag of the Complex Element to be parsed
Throws:
XBE32ParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
XBE32Parser.parse(), XBE32Parser.parseElement()

complexElementEnd

public void complexElementEnd(boolean ext,
                              int id,
                              String name,
                              boolean c,
                              boolean e)
                       throws XBE32ParseException
This method is called when a Complex Element has been just processed by the XBE32Parser.

Parameters:
ext - whether the Complex Element that has been parsed is an extensible or a compact one
id - the identifier of the Complex Element that has been parsed
name - the name of the Complex Element that has been parsed
c - the Continue flag of the Complex Element that has been parsed
e - the Notify Error flag of the Complex Element that has beee parsed
Throws:
XBE32ParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
XBE32Parser.parse(), XBE32Parser.parseElement()

attributeElement

public void attributeElement(boolean ext,
                             int id,
                             String name,
                             boolean c,
                             boolean e,
                             int type,
                             Object vals)
                      throws XBE32ParseException
This method is called when an Attribute Element is processed by the XBE32Parser.

Parameters:
ext - whether the Attrbiute Element being parsed is an Extensible or a Compact one
id - the identifier of the Attribute Element being parsed
name - the name of the Attribute Element being parsed
c - the Continue flag of the Attribute Element being parsed
e - the Notify Error flag of the Attribute Element being parsed
type - the Type of the Attribute's Value being parsed
vals - the Values field of the Attribute Element being parsed
Throws:
XBE32ParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
XBE32Element.OPAQUE_VALUE_TYPE, XBE32Element.STRING_VALUE_TYPE, XBE32Element.OPAQUE1_VALUES_TYPE, XBE32Element.INT8_VALUES_TYPE, XBE32Element.BOOLEAN_VALUES_TYPE, XBE32Element.OPAQUE2_VALUES_TYPE, XBE32Element.INT16_VALUES_TYPE, XBE32Element.OPAQUE4_VALUES_TYPE, XBE32Element.INT32_VALUES_TYPE, XBE32Element.FLOAT32_VALUES_TYPE, XBE32Element.OPAQUE8_VALUES_TYPE, XBE32Element.INT64_VALUES_TYPE, XBE32Element.FLOAT64_VALUES_TYPE, XBE32Element.OPAQUE12_VALUES_TYPE, XBE32Element.OPAQUE16_VALUES_TYPE, XBE32Parser.parse(), XBE32Parser.parseElement()

endParsing

public void endParsing(int length)
This method is called when the XBE32Parser successfully ends parsing the full XBE32-encoded stream.

See Also:
XBE32Parser.parse()