Class DataAttributeRef
java.lang.Object
org.lfenergy.compas.sct.commons.dto.DataAttributeRef
A representation of the model object DataAttributeRef.
The following features are supported:
LN Inst
LN Class
LN Type
Prefix
Refers To DoTypeName
Refers To DaTypeName
-
Constructor Summary
ConstructorDescriptionDataAttributeRef
(TFCDA fcda) DataAttributeRef
(AbstractLNAdapter<?> lnAdapter, DoTypeName doName, DaTypeName daName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDaStructName
(String structName) Adds DA Structure namevoid
addDoStructName
(String structName) Adds DO Structure nameprotected boolean
static DataAttributeRef
copyFrom
(DataAttributeRef source) Copies summarized DataTypeTemplate information to another oneboolean
Retrieve value of the DAI, if present.GEts BDA names'getBType()
Gets DA Basic Type valuegetCdc()
Gets DA/DO CDC's valuegetDaRef()
Gets DA (Data Attribut) reference valueGets Data Attributes valuegetDoRef()
Gets DO reference valuegetFc()
Gets FC (Functional Constraints) reference valuegetLNRef()
Gets LNode reference informationGets SDO names'getType()
Gets DA typeint
hashCode()
boolean
Checks if DA name is definedboolean
Checks if DO name is definedboolean
Checks if DA/DO is updatableboolean
Checks ValImport valuevoid
Sets DA Basic Type valuevoid
setCdc
(TPredefinedCDCEnum cdc) Sets DA/DO CDC's valuevoid
setDaiValues
(List<TVal> values) Adds DAI values to DAvoid
setDaName
(DaTypeName daName) Sets DA namevoid
setDoName
(DoTypeName doName) Set DO namevoid
Sets DA/DO FC's valuevoid
Sets DA typeSet Val of DAvoid
setValImport
(boolean valImport) Set DA ValImport value
-
Constructor Details
-
DataAttributeRef
Constructor -
DataAttributeRef
-
-
Method Details
-
copyFrom
Copies summarized DataTypeTemplate information to another one- Parameters:
source
- input- Returns:
- Updated DataAttributeRef object
-
isUpdatable
public boolean isUpdatable()Checks if DA/DO is updatable- Returns:
- true if updatable, false otherwise
-
getObjRef
-
getLNRef
Gets LNode reference information- Returns:
- String LNode information concatenated
-
getDataAttributes
Gets Data Attributes value- Returns:
- String Data Attributes reference by concatenated DO reference and DA reference
-
getDoRef
Gets DO reference value- Returns:
- String DO (Data Object) reference value
-
getDaRef
Gets DA (Data Attribut) reference value- Returns:
- DA reference value
-
getFc
Gets FC (Functional Constraints) reference value- Returns:
-
setFc
Sets DA/DO FC's value- Parameters:
fc
- input
-
getCdc
Gets DA/DO CDC's value- Returns:
- CDC enum value
-
setCdc
Sets DA/DO CDC's value- Parameters:
cdc
- input
-
getSdoNames
Gets SDO names'- Returns:
- List of SDO name
-
getBdaNames
GEts BDA names'- Returns:
- List of BDA name
-
addDoStructName
Adds DO Structure name- Parameters:
structName
- input
-
addDaStructName
Adds DA Structure name- Parameters:
structName
- input
-
isDoNameDefined
public boolean isDoNameDefined()Checks if DO name is defined- Returns:
- definition state
-
isDaNameDefined
public boolean isDaNameDefined()Checks if DA name is defined- Returns:
- definition state
-
getBType
Gets DA Basic Type value- Returns:
- Basic Type enum value
-
setType
Sets DA type- Parameters:
type
- input
-
getType
Gets DA type- Returns:
- string DA type
-
setBType
Sets DA Basic Type value- Parameters:
bType
- input
-
setDoName
Set DO name- Parameters:
doName
- input
-
setDaName
Sets DA name- Parameters:
daName
- input
-
setDaiValues
Adds DAI values to DA- Parameters:
values
- input
-
setValImport
public void setValImport(boolean valImport) Set DA ValImport value- Parameters:
valImport
- input
-
isValImport
public boolean isValImport()Checks ValImport value- Returns:
- ValImport value
-
setVal
Set Val of DA- Parameters:
daiValue
- daiValue to set- Returns:
- this
-
findFirstValue
Retrieve value of the DAI, if present. If multiples values are found, the value with the lowest index is returned.- Returns:
- Return the DAI value with the lowest key from getDaName().getdaiValues() map, or empty Optional if this DAI has no value.
-
equals
-
canEqual
-
hashCode
public int hashCode()
-