Rev 1061 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/****/package in.shop2020.metamodel.core;import in.shop2020.metamodel.util.MetaModelComponent;/*** Represents structured data and un-structured content about a Feature.* It is the leaf component of shop2020 Content Meta-model hierarchy.** @author naveen**/public class Bullet extends MetaModelComponent {/****/private static final long serialVersionUID = 1L;/*** Structured data part of the bullet instance*/private BulletDataObject dataObject;/*** Un-structured free-form part of bullet instance*/private FreeformContent freeformContent;/*** Reference to Bullet's unit*/private long unitID;/**** @param dataObject mandatory structured data instance*/public Bullet(BulletDataObject dataObject) {this.dataObject = dataObject;}/*** @param dataObject the dataObject to set*/public void setDataObject(BulletDataObject dataObject) {this.dataObject = dataObject;}/*** @return the dataObject*/public BulletDataObject getDataObject() {return this.dataObject;}/**** @return freeformContent**/public FreeformContent getFreeformContent() {return this.freeformContent;}Bullet() {}/**** @param value the FreeformContent to set**/public void setFreeformContent(FreeformContent value) {this.freeformContent = value;}/*** True if BulletDataObject is same*/public boolean equals(Object obj) {if(this.dataObject != null && obj instanceof Bullet) {return this.dataObject.equals(((Bullet)obj).getDataObject());}return false;}/*** @param unitID the unitID to set*/public void setUnitID(long unitID) {this.unitID = unitID;}/*** @return the unitID*/public long getUnitID() {return unitID;}/* (non-Javadoc)* @see java.lang.Object#toString()*/@Overridepublic String toString() {return "Bullet [dataObject=" + dataObject + ", freeformContent="+ freeformContent + ", unitID=" + unitID + "]";}}