es.uc3m.it.xbe32
Interface XBE32Parseable

All Known Implementing Classes:
XBE32Element

public interface XBE32Parseable

This interface should be implemented by classes that employ the XBE32ObjectParser to parse XBE32-encoded streams with unknown Elements. That is, when the class does not define the appropiate attributes/methods.

Instead, when an unknown XBE32 Element is parsed by the XBE32ObjectParser, the appropiate method is called to process it.


Method Summary
 Object createXBE32Element(boolean ext, int id, String name, boolean c, boolean e)
          The XBE32ObjectParser calls this method when an XBE32 Complex Element is parsed and neither an accessible class attribute, nor an appropiate 'create' method are found.
 void setXBE32Attribute(boolean ext, int id, String name, boolean c, boolean e, int valtype, Object vals)
          The XBE32ObjectParser calls this method when an XBE32 Attribute Element is parsed and neither an accessible class attribute, nor an appropiate 'set' method are found.
 

Method Detail

createXBE32Element

public Object createXBE32Element(boolean ext,
                                 int id,
                                 String name,
                                 boolean c,
                                 boolean e)
                          throws XBE32ParseException
The XBE32ObjectParser calls this method when an XBE32 Complex Element is parsed and neither an accessible class attribute, nor an appropiate 'create' method are found.

Parameters:
ext - whether the Complex Element being parsed is an Extensible or a Compact one
id - the Complex Element identifier
name - the Complex Element name
c - the Continue Processing flag
e - the Notify Error flag
Returns:
the new XBE32 Element, to continue parsing
Throws:
XBE32ParseException - if an error occurs while processing this Element

setXBE32Attribute

public void setXBE32Attribute(boolean ext,
                              int id,
                              String name,
                              boolean c,
                              boolean e,
                              int valtype,
                              Object vals)
                       throws XBE32ParseException
The XBE32ObjectParser calls this method when an XBE32 Attribute Element is parsed and neither an accessible class attribute, nor an appropiate 'set' method are found.

Parameters:
ext - whether the Attribute Element being parsed is an Extensible or a Compact one
id - the Attribute Element identifier
name - the Attribute Element name
c - the Continue Processing flag
e - the Notify Error flag
valtype - the type of the Attribute Element Values
vals - the Attribute Element Values
Throws:
XBE32ParseException - if an error occurs while processing this Element
See Also:
XBE32Element