Package ai.reveng.model
Class XRef
java.lang.Object
ai.reveng.model.XRef
XRef
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic XRefCreate an instance of XRef given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get isCallGet isDataGet isScalarGet isStringGet origStrEncodingGet rawDataGet segmentgetValue()Get valueGet xrefTointhashCode()origStrEncoding(String origStrEncoding) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.segment(SegmentInfo segment) voidvoidvoidsetIsScalar(Boolean isScalar) voidsetIsString(Boolean isString) voidsetOrigStrEncoding(String origStrEncoding) voidsetRawData(File rawData) voidsetSegment(SegmentInfo segment) voidvoidtoJson()Convert an instance of XRef to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_XREF_TO
- See Also:
-
SERIALIZED_NAME_IS_SCALAR
- See Also:
-
SERIALIZED_NAME_IS_CALL
- See Also:
-
SERIALIZED_NAME_IS_DATA
- See Also:
-
SERIALIZED_NAME_IS_STRING
- See Also:
-
SERIALIZED_NAME_RAW_DATA
- See Also:
-
SERIALIZED_NAME_SEGMENT
- See Also:
-
SERIALIZED_NAME_ORIG_STR_ENCODING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
XRef
public XRef()
-
-
Method Details
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
xrefTo
-
getXrefTo
Get xrefTo- Returns:
- xrefTo
-
setXrefTo
-
isScalar
-
getIsScalar
Get isScalar- Returns:
- isScalar
-
setIsScalar
-
isCall
-
getIsCall
Get isCall- Returns:
- isCall
-
setIsCall
-
isData
-
getIsData
Get isData- Returns:
- isData
-
setIsData
-
isString
-
getIsString
Get isString- Returns:
- isString
-
setIsString
-
rawData
-
getRawData
Get rawData- Returns:
- rawData
-
setRawData
-
segment
-
getSegment
Get segment- Returns:
- segment
-
setSegment
-
origStrEncoding
-
getOrigStrEncoding
Get origStrEncoding- Returns:
- origStrEncoding
-
setOrigStrEncoding
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the XRef instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to XRef
-
fromJson
Create an instance of XRef given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of XRef
- Throws:
IOException- if the JSON string is invalid with respect to XRef
-
toJson
Convert an instance of XRef to an JSON string- Returns:
- JSON string
-