com.prowidesoftware.swift.model.mx.dic.EnergySpecificAttribute6 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Attributes of energy related derivatives.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EnergySpecificAttribute6", propOrder = {
"dlvryPtOrZone",
"intrCnnctnPt",
"ldTp",
"dlvryAttr"
})
public class EnergySpecificAttribute6 {
@XmlElement(name = "DlvryPtOrZone")
protected List dlvryPtOrZone;
@XmlElement(name = "IntrCnnctnPt")
protected DeliveryInterconnectionPoint1Choice intrCnnctnPt;
@XmlElement(name = "LdTp")
@XmlSchemaType(name = "string")
protected EnergyLoadType1Code ldTp;
@XmlElement(name = "DlvryAttr")
protected List dlvryAttr;
/**
* Gets the value of the dlvryPtOrZone property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the dlvryPtOrZone property.
*
*
* For example, to add a new item, do as follows:
*
* getDlvryPtOrZone().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link DeliveryInterconnectionPoint1Choice }
*
*
* @return
* The value of the dlvryPtOrZone property.
*/
public List getDlvryPtOrZone() {
if (dlvryPtOrZone == null) {
dlvryPtOrZone = new ArrayList<>();
}
return this.dlvryPtOrZone;
}
/**
* Gets the value of the intrCnnctnPt property.
*
* @return
* possible object is
* {@link DeliveryInterconnectionPoint1Choice }
*
*/
public DeliveryInterconnectionPoint1Choice getIntrCnnctnPt() {
return intrCnnctnPt;
}
/**
* Sets the value of the intrCnnctnPt property.
*
* @param value
* allowed object is
* {@link DeliveryInterconnectionPoint1Choice }
*
*/
public EnergySpecificAttribute6 setIntrCnnctnPt(DeliveryInterconnectionPoint1Choice value) {
this.intrCnnctnPt = value;
return this;
}
/**
* Gets the value of the ldTp property.
*
* @return
* possible object is
* {@link EnergyLoadType1Code }
*
*/
public EnergyLoadType1Code getLdTp() {
return ldTp;
}
/**
* Sets the value of the ldTp property.
*
* @param value
* allowed object is
* {@link EnergyLoadType1Code }
*
*/
public EnergySpecificAttribute6 setLdTp(EnergyLoadType1Code value) {
this.ldTp = value;
return this;
}
/**
* Gets the value of the dlvryAttr property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the dlvryAttr property.
*
*
* For example, to add a new item, do as follows:
*
* getDlvryAttr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link EnergyDeliveryAttribute5 }
*
*
* @return
* The value of the dlvryAttr property.
*/
public List getDlvryAttr() {
if (dlvryAttr == null) {
dlvryAttr = new ArrayList<>();
}
return this.dlvryAttr;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the dlvryPtOrZone list.
* @see #getDlvryPtOrZone()
*
*/
public EnergySpecificAttribute6 addDlvryPtOrZone(DeliveryInterconnectionPoint1Choice dlvryPtOrZone) {
getDlvryPtOrZone().add(dlvryPtOrZone);
return this;
}
/**
* Adds a new item to the dlvryAttr list.
* @see #getDlvryAttr()
*
*/
public EnergySpecificAttribute6 addDlvryAttr(EnergyDeliveryAttribute5 dlvryAttr) {
getDlvryAttr().add(dlvryAttr);
return this;
}
}