CadCodeValue

Code Value class

Constructors

ConstructorDescription
CadCodeValue(int code, String value)Initializes a new instance of the CadCodeValue class.

Methods

MethodDescription
getAttribute()Gets the attribute.
getCode()Gets or sets the code.
setCode(int value)Gets or sets the code.
getValue()Gets or sets the value.
setValue(String value)Gets or sets the value.
getStringValue()Gets the string value.
getBinaryData()Gets the binary data.
getBoolValue()Gets the boolean value.
getShortValue()The get short value.
getIntValue()The get integer value.
getLongValue()The get long value.
getDoubleValue()The get double value.
equals(CadCodeValue obj)Determines whether the specified CadCodeValue , is equal to this instance.

CadCodeValue(int code, String value)

public CadCodeValue(int code, String value)

Initializes a new instance of the CadCodeValue class.

Parameters:

ParameterTypeDescription
codeintThe code of the parameter.
valueStringThe value of the parameter.

getAttribute()

public int getAttribute()

Gets the attribute.

Returns: int

getCode()

public int getCode()

Gets or sets the code.

Returns: int - The code.

setCode(int value)

public void setCode(int value)

Gets or sets the code.

Parameters:

ParameterTypeDescription
valueintThe code.

getValue()

public String getValue()

Gets or sets the value.

Returns: String - The value.

setValue(String value)

public void setValue(String value)

Gets or sets the value.

Parameters:

ParameterTypeDescription
valueStringThe value.

getStringValue()

public String getStringValue()

Gets the string value.

Returns: String - Value as string

getBinaryData()

public byte[] getBinaryData()

Gets the binary data.

Returns: byte[] - Byte array from hexadecimal data.

getBoolValue()

public boolean getBoolValue()

Gets the boolean value.

Returns: boolean - The bool .

getShortValue()

public short getShortValue()

The get short value.

Returns: short - The short .

getIntValue()

public int getIntValue()

The get integer value.

Returns: int - The int .

getLongValue()

public long getLongValue()

The get long value.

Returns: long - The long .

getDoubleValue()

public double getDoubleValue()

The get double value.

Returns: double - The double .

equals(CadCodeValue obj)

public boolean equals(CadCodeValue obj)

Determines whether the specified CadCodeValue , is equal to this instance.

Parameters:

ParameterTypeDescription
objCadCodeValueThe CadCodeValue to compare with this instance.

Returns: boolean - true if the specified CadCodeValue is equal to this instance; otherwise, false .