
org.beigesoft.ws.mdlp.ItmSp Maven / Gradle / Ivy
Show all versions of beige-acc Show documentation
/*
BSD 2-Clause License
Copyright (c) 2019, Beigesoft™
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.beigesoft.ws.mdlp;
import org.beigesoft.mdlp.AIdLnNm;
import org.beigesoft.ws.mdl.EItmSpTy;
/**
* Model of item specifics e.g. size, form notebook - web-cam,
* LED-type.
*
* @author Yury Demidenko
*/
public class ItmSp extends AIdLnNm {
/**
* Specifics Group, if exist
* e.g. "Monitor" for its size, web-cam, LED-type.
**/
private ItmSpGr grp;
/**
* Specifics Type described how to treat (edit/print/filter)
* specifics, not null, default ESpecificsItemType.STRING.
**/
private EItmSpTy typ;
/**
* If used in filter, default false.
**/
private Boolean inFlt = Boolean.FALSE;
/**
* If show in list, default false - show only in goods page.
**/
private Boolean inLst = Boolean.FALSE;
/**
* Index, not null, used for ordering when printing.
**/
private Integer idx;
/**
* Description.
**/
private String dscr;
/**
* ChooseableSpecificsType if it is chooseable.
**/
private ChoSpTy chSpTy;
/**
* If used for ordering list, default false.
**/
private Boolean foOrd = Boolean.FALSE;
/**
* If assigned, e.g. ":SPECNM :SPECVAL",
* this overrides SpecificsOfItemGroup.templateDetail.
**/
private Htmlt htmt;
//Simple getters and setters:
/**
* Getter for grp.
* @return ItmSpGr
**/
public final ItmSpGr getGrp() {
return this.grp;
}
/**
* Setter for grp.
* @param pGrp reference
**/
public final void setGrp(final ItmSpGr pGrp) {
this.grp = pGrp;
}
/**
* Getter for typ.
* @return EItmSpTy
**/
public final EItmSpTy getTyp() {
return this.typ;
}
/**
* Setter for typ.
* @param pTyp reference
**/
public final void setTyp(final EItmSpTy pTyp) {
this.typ = pTyp;
}
/**
* Getter for inFlt.
* @return Boolean
**/
public final Boolean getInFlt() {
return this.inFlt;
}
/**
* Setter for inFlt.
* @param pInFlt reference
**/
public final void setInFlt(final Boolean pInFlt) {
this.inFlt = pInFlt;
}
/**
* Getter for inLst.
* @return Boolean
**/
public final Boolean getInLst() {
return this.inLst;
}
/**
* Setter for inLst.
* @param pInLst reference
**/
public final void setInLst(final Boolean pInLst) {
this.inLst = pInLst;
}
/**
* Getter for idx.
* @return Integer
**/
public final Integer getIdx() {
return this.idx;
}
/**
* Setter for idx.
* @param pIdx reference
**/
public final void setIdx(final Integer pIdx) {
this.idx = pIdx;
}
/**
* Getter for dscr.
* @return String
**/
public final String getDscr() {
return this.dscr;
}
/**
* Setter for dscr.
* @param pDscr reference
**/
public final void setDscr(final String pDscr) {
this.dscr = pDscr;
}
/**
* Getter for chSpTy.
* @return ChoSpTy
**/
public final ChoSpTy getChSpTy() {
return this.chSpTy;
}
/**
* Setter for chSpTy.
* @param pChSpTy reference
**/
public final void setChSpTy(final ChoSpTy pChSpTy) {
this.chSpTy = pChSpTy;
}
/**
* Getter for foOrd.
* @return Boolean
**/
public final Boolean getFoOrd() {
return this.foOrd;
}
/**
* Setter for foOrd.
* @param pFoOrd reference
**/
public final void setFoOrd(final Boolean pFoOrd) {
this.foOrd = pFoOrd;
}
/**
* Getter for htmt.
* @return Htmlt
**/
public final Htmlt getHtmt() {
return this.htmt;
}
/**
* Setter for htmt.
* @param pHtmt reference
**/
public final void setHtmt(final Htmlt pHtmt) {
this.htmt = pHtmt;
}
}