Interface IUnmarshaller

    • Method Detail

      • isPresent

        boolean isPresent​(IUnmarshallingContext ctx)
                   throws JiBXException
        Check if instance present in XML. This method can be called when the unmarshalling context is positioned at or just before the start of the data corresponding to an instance of this mapping. It verifies that the expected data is present.
        Parameters:
        ctx - unmarshalling context
        Returns:
        true if expected parse data found, false if not
        Throws:
        JiBXException - on error in unmarshalling process
      • unmarshal

        java.lang.Object unmarshal​(java.lang.Object obj,
                                   IUnmarshallingContext ctx)
                            throws JiBXException
        Unmarshal instance of handled class. This method call is responsible for all handling of the unmarshalling of an object from XML text, including creating the instance of the handled class if an instance is not supplied. When it is called the unmarshalling context is always positioned at or just before the start tag corresponding to the start of the class data.
        Parameters:
        obj - object to be unmarshalled (may be null)
        ctx - unmarshalling context
        Returns:
        unmarshalled object (may be null)
        Throws:
        JiBXException - on error in unmarshalling process