Interface ContractStateXmlRenderer

All Known Implementing Classes:
EvmXmlRenderer

public interface ContractStateXmlRenderer
Implementations of an XML renderer for IXMLRepresentableState and IXMLRepresentableStatePart
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    render(String contractAddress)
    Extract the XML from a given contract address, executing the required calls to populate the bindings.
    default String
    render(String contractAddress, BigInteger blockNumber)
    Extract the XML from a given contract address, executing the required calls to populate the bindings.
    render(String contractAddress, BigInteger blockNumber, BigInteger partId)
    Extract the XML representing the state (either xml-complete or partial) from a given contract address at a given block, executing the required calls to populate the bindings.
    default String
    renderPart(String contractAddress, BigInteger partId)
    Extract the XML from a given contract address, executing the required calls to populate the bindings.
    default String
    renderPart(String contractAddress, BigInteger blockNumber, BigInteger partId)
    Extract the XML from a given contract address, executing the required calls to populate the bindings.
  • Method Details

    • render

      String render(String contractAddress, BigInteger blockNumber, BigInteger partId) throws Exception
      Extract the XML representing the state (either xml-complete or partial) from a given contract address at a given block, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      blockNumber - The block number to fix for receiving the template and the state values.
      partId - If null, the xml-complete template stateXmlTemplate is used, if non-null the partial templates statePartXmlTempate is used.
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.
    • render

      default String render(String contractAddress) throws Exception
      Extract the XML from a given contract address, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.
    • render

      default String render(String contractAddress, BigInteger blockNumber) throws Exception
      Extract the XML from a given contract address, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      blockNumber - The block number to fix for receiving the template and the state values.
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.
    • renderPart

      default String renderPart(String contractAddress, BigInteger partId) throws Exception
      Extract the XML from a given contract address, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      partId - If null, the xml-complete template stateXmlTemplate is used, if non-null the partial templates statePartXmlTempate is used
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.
    • renderPart

      default String renderPart(String contractAddress, BigInteger blockNumber, BigInteger partId) throws Exception
      Extract the XML from a given contract address, executing the required calls to populate the bindings.
      Parameters:
      contractAddress - A given contract address as hex 0x1234567...
      blockNumber - The block number to fix for receiving the template and the state values.
      partId - If null, the xml-complete template stateXmlTemplate is used, if non-null the partial templates statePartXmlTempate is used
      Returns:
      The XML representing the current contract state.
      Throws:
      Exception - An exception.