org.sdmlib.replication.util.BoardTaskPO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SDMLib Show documentation
Show all versions of SDMLib Show documentation
SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.
package org.sdmlib.replication.util;
import org.sdmlib.models.pattern.AttributeConstraint;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.replication.BoardTask;
import org.sdmlib.replication.Lane;
import org.sdmlib.replication.LogEntry;
import org.sdmlib.replication.Task;
import org.sdmlib.replication.util.SeppelSpaceProxyPO;
import org.sdmlib.replication.SeppelSpaceProxy;
import org.sdmlib.replication.util.BoardTaskPO;
import java.beans.PropertyChangeEvent;
import org.sdmlib.replication.util.LogEntryPO;
import org.sdmlib.replication.util.LanePO;
public class BoardTaskPO extends PatternObject
{
public BoardTaskSet allMatches()
{
this.setDoAllMatches(true);
BoardTaskSet matches = new BoardTaskSet();
while (this.getPattern().getHasMatch())
{
matches.add((BoardTask) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public BoardTaskPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public BoardTaskPO(BoardTask... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public BoardTaskPO hasName(String value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_NAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public BoardTaskPO hasName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_NAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public BoardTaskPO createName(String value)
{
this.startCreate().hasName(value).endCreate();
return this;
}
public String getName()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) getCurrentMatch()).getName();
}
return null;
}
public BoardTaskPO withName(String value)
{
if (this.getPattern().getHasMatch())
{
((BoardTask) getCurrentMatch()).setName(value);
}
return this;
}
public BoardTaskPO hasStatus(String value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STATUS)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public BoardTaskPO hasStatus(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STATUS)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public BoardTaskPO createStatus(String value)
{
this.startCreate().hasStatus(value).endCreate();
return this;
}
public String getStatus()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) getCurrentMatch()).getStatus();
}
return null;
}
public BoardTaskPO withStatus(String value)
{
if (this.getPattern().getHasMatch())
{
((BoardTask) getCurrentMatch()).setStatus(value);
}
return this;
}
public LogEntryPO hasLogEntries()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(Task.PROPERTY_LOGENTRIES, result);
return result;
}
public LogEntryPO createLogEntries()
{
return this.startCreate().hasLogEntries().endCreate();
}
public BoardTaskPO hasLogEntries(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, Task.PROPERTY_LOGENTRIES);
}
public BoardTaskPO createLogEntries(LogEntryPO tgt)
{
return this.startCreate().hasLogEntries(tgt).endCreate();
}
public LogEntrySet getLogEntries()
{
if (this.getPattern().getHasMatch())
{
return ((Task) this.getCurrentMatch()).getLogEntries();
}
return null;
}
public LanePO hasLane()
{
LanePO result = new LanePO(new Lane[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_LANE, result);
return result;
}
public LanePO createLane()
{
return this.startCreate().hasLane().endCreate();
}
public BoardTaskPO hasLane(LanePO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_LANE);
}
public BoardTaskPO createLane(LanePO tgt)
{
return this.startCreate().hasLane(tgt).endCreate();
}
public Lane getLane()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) this.getCurrentMatch()).getLane();
}
return null;
}
public BoardTaskPO hasNext()
{
BoardTaskPO result = new BoardTaskPO(new BoardTask[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_NEXT, result);
return result;
}
public BoardTaskPO createNext()
{
return this.startCreate().hasNext().endCreate();
}
public BoardTaskPO hasNext(BoardTaskPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_NEXT);
}
public BoardTaskPO createNext(BoardTaskPO tgt)
{
return this.startCreate().hasNext(tgt).endCreate();
}
public BoardTaskSet getNext()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) this.getCurrentMatch()).getNext();
}
return null;
}
public BoardTaskPO hasPrev()
{
BoardTaskPO result = new BoardTaskPO(new BoardTask[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_PREV, result);
return result;
}
public BoardTaskPO createPrev()
{
return this.startCreate().hasPrev().endCreate();
}
public BoardTaskPO hasPrev(BoardTaskPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_PREV);
}
public BoardTaskPO createPrev(BoardTaskPO tgt)
{
return this.startCreate().hasPrev(tgt).endCreate();
}
public BoardTaskSet getPrev()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) this.getCurrentMatch()).getPrev();
}
return null;
}
public SeppelSpaceProxyPO hasProxy()
{
SeppelSpaceProxyPO result = new SeppelSpaceProxyPO(new SeppelSpaceProxy[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_PROXY, result);
return result;
}
public SeppelSpaceProxyPO createProxy()
{
return this.startCreate().hasProxy().endCreate();
}
public BoardTaskPO hasProxy(SeppelSpaceProxyPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_PROXY);
}
public BoardTaskPO createProxy(SeppelSpaceProxyPO tgt)
{
return this.startCreate().hasProxy(tgt).endCreate();
}
public SeppelSpaceProxy getProxy()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) this.getCurrentMatch()).getProxy();
}
return null;
}
public BoardTaskPO hasManualExecution(boolean value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_MANUALEXECUTION)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO createManualExecution(boolean value)
{
this.startCreate().hasManualExecution(value).endCreate();
return this;
}
public boolean getManualExecution()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) getCurrentMatch()).isManualExecution();
}
return false;
}
public BoardTaskPO withManualExecution(boolean value)
{
if (this.getPattern().getHasMatch())
{
((BoardTask) getCurrentMatch()).setManualExecution(value);
}
return this;
}
//==========================================================================
public void execute()
{
if (this.getPattern().getHasMatch())
{
((BoardTask) getCurrentMatch()).execute();
}
}
public BoardTaskPO hasStashedPropertyChangeEvent(PropertyChangeEvent value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STASHEDPROPERTYCHANGEEVENT)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO createStashedPropertyChangeEvent(PropertyChangeEvent value)
{
this.startCreate().hasStashedPropertyChangeEvent(value).endCreate();
return this;
}
public PropertyChangeEvent getStashedPropertyChangeEvent()
{
if (this.getPattern().getHasMatch())
{
return ((BoardTask) getCurrentMatch()).getStashedPropertyChangeEvent();
}
return null;
}
public BoardTaskPO withStashedPropertyChangeEvent(PropertyChangeEvent value)
{
if (this.getPattern().getHasMatch())
{
((BoardTask) getCurrentMatch()).setStashedPropertyChangeEvent(value);
}
return this;
}
public BoardTaskPO filterName(String value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_NAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO filterName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_NAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO filterStatus(String value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STATUS)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO filterStatus(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STATUS)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO filterManualExecution(boolean value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_MANUALEXECUTION)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public BoardTaskPO filterStashedPropertyChangeEvent(PropertyChangeEvent value)
{
new AttributeConstraint()
.withAttrName(BoardTask.PROPERTY_STASHEDPROPERTYCHANGEEVENT)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO filterLogEntries()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(Task.PROPERTY_LOGENTRIES, result);
return result;
}
public BoardTaskPO filterLogEntries(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, Task.PROPERTY_LOGENTRIES);
}
public LanePO filterLane()
{
LanePO result = new LanePO(new Lane[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_LANE, result);
return result;
}
public BoardTaskPO filterLane(LanePO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_LANE);
}
public BoardTaskPO filterPrev()
{
BoardTaskPO result = new BoardTaskPO(new BoardTask[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_PREV, result);
return result;
}
public BoardTaskPO filterPrev(BoardTaskPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_PREV);
}
public SeppelSpaceProxyPO filterProxy()
{
SeppelSpaceProxyPO result = new SeppelSpaceProxyPO(new SeppelSpaceProxy[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_PROXY, result);
return result;
}
public BoardTaskPO filterProxy(SeppelSpaceProxyPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_PROXY);
}
public BoardTaskPO filterNext()
{
BoardTaskPO result = new BoardTaskPO(new BoardTask[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(BoardTask.PROPERTY_NEXT, result);
return result;
}
public BoardTaskPO filterNext(BoardTaskPO tgt)
{
return hasLinkConstraint(tgt, BoardTask.PROPERTY_NEXT);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy