Package org.stellar.sdk.xdr
Class SCSpecUDTErrorEnumV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecUDTErrorEnumV0
- All Implemented Interfaces:
XdrElement
SCSpecUDTErrorEnumV0's original definition in the XDR file is:
struct SCSpecUDTErrorEnumV0
{
string doc<SC_SPEC_DOC_LIMIT>;
string lib<80>;
string name<60>;
SCSpecUDTErrorEnumCaseV0 cases<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecUDTErrorEnumV0(XdrString doc, XdrString lib, XdrString name, SCSpecUDTErrorEnumCaseV0[] cases) Creates a newSCSpecUDTErrorEnumV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecUDTErrorEnumV0decode(XdrDataInputStream stream) static SCSpecUDTErrorEnumV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecUDTErrorEnumV0static SCSpecUDTErrorEnumV0fromXdrBase64(String xdr) static SCSpecUDTErrorEnumV0fromXdrByteArray(byte[] xdr) getCases()Value of thecasesfield.getDoc()Value of thedocfield.getLib()Value of thelibfield.getName()Value of thenamefield.inthashCode()voidsetCases(SCSpecUDTErrorEnumCaseV0[] cases) Value of thecasesfield.voidValue of thedocfield.voidValue of thelibfield.voidValue of thenamefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecUDTErrorEnumV0
public SCSpecUDTErrorEnumV0() -
SCSpecUDTErrorEnumV0
public SCSpecUDTErrorEnumV0(XdrString doc, XdrString lib, XdrString name, SCSpecUDTErrorEnumCaseV0[] cases) Creates a newSCSpecUDTErrorEnumV0instance.- Parameters:
doc- thedocfield valuelib- thelibfield valuename- thenamefield valuecases- thecasesfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static SCSpecUDTErrorEnumV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDoc
Value of thedocfield.- Returns:
- the
docfield value
-
getLib
Value of thelibfield.- Returns:
- the
libfield value
-
getName
Value of thenamefield.- Returns:
- the
namefield value
-
getCases
Value of thecasesfield.- Returns:
- the
casesfield value
-
setDoc
Value of thedocfield.- Parameters:
doc- thedocfield value
-
setLib
Value of thelibfield.- Parameters:
lib- thelibfield value
-
setName
Value of thenamefield.- Parameters:
name- thenamefield value
-
setCases
Value of thecasesfield.- Parameters:
cases- thecasesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-