package com.att.wfbpm.processrulesmgmt.brm.brc.ruleautomationworkflow.types; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import org.apache.commons.lang3.StringUtils; @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "rule") public class Rule implements Serializable { @XmlTransient private static final long serialVersionUID = -3017562554967108334L; @XmlTransient private String ruleId; @XmlTransient private Integer inclusionGroupId; @XmlTransient private Integer exclusionGroupId; @XmlTransient private String categoryCode; @XmlTransient private String offerGroup; @XmlTransient private String ruleType; @XmlTransient private String version; @XmlTransient private String description; @XmlTransient private String ruleEvaluationFrequency; @XmlTransient private String ruleMatchType; @XmlTransient private String requestType; @XmlTransient private Integer rulePriority; @XmlTransient private RuleStatus status; public Rule() { super(); setId( StringUtils.EMPTY ); setInclusionGroupId( null ); setExclusionGroupId( null ); setCategoryCode( StringUtils.EMPTY ); setOfferGroup( StringUtils.EMPTY ); setRuleType( StringUtils.EMPTY ); setVersion( StringUtils.EMPTY ); setDescription( StringUtils.EMPTY ); setRuleEvaluationFrequency( StringUtils.EMPTY ); setRequestType( StringUtils.EMPTY ); setRulePriority( null ); setRuleMatchType( StringUtils.EMPTY ); setStatus( new RuleStatus() ); } // @XmlAttribute(name="id") // public String getId() // { // return getRuleId(); // } // // public void setId(String id) // { // setRuleId( id ); // } @XmlAttribute(name="id") public String getId() { return ruleId; } public void setId(String id) { this.ruleId = id; } @XmlElement(name="categoryCode") public String getCategoryCode() { return categoryCode; } public void setCategoryCode(String categoryCode) { this.categoryCode = categoryCode; } @XmlElement(name="offerGroup") public String getOfferGroup() { return offerGroup; } public void setOfferGroup(String offerGroup) { this.offerGroup = offerGroup; } @XmlElement(name="ruleType") public String getRuleType() { return ruleType; } public void setRuleType(String ruleType) { this.ruleType = ruleType; } @XmlElement(name="version") public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } @XmlElement(name="description") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @XmlElement(name="exclusionGroupId") public Integer getExclusionGroupId() { return exclusionGroupId; } public void setExclusionGroupId(Integer exclusionGroupId) { this.exclusionGroupId = exclusionGroupId; } @XmlElement(name="ruleEvaluationFrequency") public String getRuleEvaluationFrequency() { return ruleEvaluationFrequency; } public void setRuleEvaluationFrequency(String ruleEvaluationFrequency) { this.ruleEvaluationFrequency = ruleEvaluationFrequency; } @XmlElement(name="ruleMatchType") public String getRuleMatchType() { return ruleMatchType; } public void setRuleMatchType(String ruleMatchType) { this.ruleMatchType = ruleMatchType; } @XmlElement(name="requestType") public String getRequestType() { return requestType; } public void setRequestType(String requestType) { this.requestType = requestType; } @XmlElement(name="inclusionGroupId") public Integer getInclusionGroupId() { return inclusionGroupId; } public void setInclusionGroupId(Integer inclusionGroupId) { this.inclusionGroupId = inclusionGroupId; } @XmlElement(name="rulePriority") public Integer getRulePriority() { return rulePriority; } public void setRulePriority(Integer rulePriority) { this.rulePriority = rulePriority; } @XmlElement(name="status") public RuleStatus getStatus() { return status; } public void setStatus(RuleStatus status) { this.status = status; } }