Interface ContractStateXmlRenderer
- All Known Implementing Classes:
EvmXmlRenderer
public interface ContractStateXmlRenderer
Implementations of an XML renderer for IXMLRepresentableState and IXMLRepresentableStatePart
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringExtract the XML from a given contract address, executing the required calls to populate the bindings.default Stringrender(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 StringrenderPart(String contractAddress, BigInteger partId) Extract the XML from a given contract address, executing the required calls to populate the bindings.default StringrenderPart(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
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 templatestateXmlTemplateis used, if non-null the partial templatesstatePartXmlTempateis used.- Returns:
- The XML representing the current contract state.
- Throws:
Exception- An exception.
-
render
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
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
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.
-