
nl.tno.bim.nmd.domain.NmdElementImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bimnmdservice Show documentation
Show all versions of bimnmdservice Show documentation
provides a REST api for retrieving nmd data from various data sources
The newest version!
package nl.tno.bim.nmd.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class NmdElementImpl implements NmdElement {
private NlsfbCode nlsfbCode;
private Integer elementId;
private String elementName;
private Collection products;
private Integer parentId;
private Boolean isMandatory;
public NmdElementImpl() {
this.nlsfbCode = null;
this.elementId = -1;
this.elementName = "";
this.products = new ArrayList();
}
@Override
public NlsfbCode getNlsfbCode() {
return this.nlsfbCode;
}
public void setNlsfbCode(NlsfbCode nlsfbCode) {
this.nlsfbCode = nlsfbCode;
}
@Override
public Integer getElementId() {
return this.elementId;
}
public void setElementId(Integer id) {
this.elementId = id;
}
@Override
public Integer getParentId() {
return this.parentId;
}
@Override
public Boolean getIsElementPart() {
return this.parentId > 0;
}
public void setParentId(Integer id) {
this.parentId = id;
}
@Override
public String getElementName() {
return this.elementName;
}
public void setElementName(String name) {
this.elementName = name;
}
@Override
public Boolean getIsMandatory() {
return this.isMandatory;
}
public void setIsMandatory(Boolean flag) {
this.isMandatory = flag;
}
@Override
public Collection getProducts() {
return this.products;
}
@Override
public void addProductCard(NmdProductCard product) {
this.products.add(product);
}
@Override
public void addProductCards(List cards) {
this.products.addAll(cards);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy