
org.sdmlib.models.taskflows.util.LogEntryPO Maven / Gradle / Ivy
package org.sdmlib.models.taskflows.util;
import org.sdmlib.models.pattern.AttributeConstraint;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.models.taskflows.LogEntry;
import org.sdmlib.models.taskflows.Logger;
import org.sdmlib.models.pattern.Pattern;
import org.sdmlib.models.taskflows.util.LogEntryPO;
import org.sdmlib.models.taskflows.util.LoggerPO;
public class LogEntryPO extends PatternObject
{
public LogEntrySet allMatches()
{
this.setDoAllMatches(true);
LogEntrySet matches = new LogEntrySet();
while (this.getPattern().getHasMatch())
{
matches.add((LogEntry) this.getCurrentMatch());
this.getPattern().findMatch();
}
return matches;
}
public LogEntryPO(){
newInstance(CreatorCreator.createIdMap("PatternObjectType"));
}
public LogEntryPO(LogEntry... hostGraphObject) {
if(hostGraphObject==null || hostGraphObject.length<1){
return ;
}
newInstance(CreatorCreator.createIdMap("PatternObjectType"), hostGraphObject);
}
public LogEntryPO hasNodeName(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public LogEntryPO hasNodeName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public LogEntryPO createNodeName(String value)
{
this.startCreate().hasNodeName(value).endCreate();
return this;
}
public String getNodeName()
{
if (this.getPattern().getHasMatch())
{
return ((LogEntry) getCurrentMatch()).getNodeName();
}
return null;
}
public LogEntryPO withNodeName(String value)
{
if (this.getPattern().getHasMatch())
{
((LogEntry) getCurrentMatch()).setNodeName(value);
}
return this;
}
public LogEntryPO hasTaskName(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public LogEntryPO hasTaskName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
this.getPattern().findMatch();
return this;
}
public LogEntryPO createTaskName(String value)
{
this.startCreate().hasTaskName(value).endCreate();
return this;
}
public String getTaskName()
{
if (this.getPattern().getHasMatch())
{
return ((LogEntry) getCurrentMatch()).getTaskName();
}
return null;
}
public LogEntryPO withTaskName(String value)
{
if (this.getPattern().getHasMatch())
{
((LogEntry) getCurrentMatch()).setTaskName(value);
}
return this;
}
public LoggerPO hasLogger()
{
LoggerPO result = new LoggerPO(new Logger[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_LOGGER, result);
return result;
}
public LoggerPO createLogger()
{
return this.startCreate().hasLogger().endCreate();
}
public LogEntryPO hasLogger(LoggerPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_LOGGER);
}
public LogEntryPO createLogger(LoggerPO tgt)
{
return this.startCreate().hasLogger(tgt).endCreate();
}
public Logger getLogger()
{
if (this.getPattern().getHasMatch())
{
return ((LogEntry) this.getCurrentMatch()).getLogger();
}
return null;
}
public LogEntryPO hasChildren()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_CHILDREN, result);
return result;
}
public LogEntryPO createChildren()
{
return this.startCreate().hasChildren().endCreate();
}
public LogEntryPO hasChildren(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_CHILDREN);
}
public LogEntryPO createChildren(LogEntryPO tgt)
{
return this.startCreate().hasChildren(tgt).endCreate();
}
public LogEntrySet getChildren()
{
if (this.getPattern().getHasMatch())
{
return ((LogEntry) this.getCurrentMatch()).getChildren();
}
return null;
}
public LogEntryPO hasParent()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_PARENT, result);
return result;
}
public LogEntryPO createParent()
{
return this.startCreate().hasParent().endCreate();
}
public LogEntryPO hasParent(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_PARENT);
}
public LogEntryPO createParent(LogEntryPO tgt)
{
return this.startCreate().hasParent(tgt).endCreate();
}
public LogEntry getParent()
{
if (this.getPattern().getHasMatch())
{
return ((LogEntry) this.getCurrentMatch()).getParent();
}
return null;
}
public LogEntryPO filterNodeName(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO filterNodeName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO filterTaskName(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO filterTaskName(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LoggerPO filterLogger()
{
LoggerPO result = new LoggerPO(new Logger[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_LOGGER, result);
return result;
}
public LogEntryPO filterLogger(LoggerPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_LOGGER);
}
public LogEntryPO filterParent()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_PARENT, result);
return result;
}
public LogEntryPO filterParent(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_PARENT);
}
public LogEntryPO filterChildren()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_CHILDREN, result);
return result;
}
public LogEntryPO filterChildren(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_CHILDREN);
}
public LogEntryPO(String modifier)
{
this.setModifier(modifier);
}
public LogEntryPO createNodeNameCondition(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createNodeNameCondition(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createNodeNameAssignment(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_NODENAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(Pattern.CREATE)
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createTaskNameCondition(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createTaskNameCondition(String lower, String upper)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(lower)
.withUpperTgtValue(upper)
.withSrc(this)
.withModifier(this.getPattern().getModifier())
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createTaskNameAssignment(String value)
{
new AttributeConstraint()
.withAttrName(LogEntry.PROPERTY_TASKNAME)
.withTgtValue(value)
.withSrc(this)
.withModifier(Pattern.CREATE)
.withPattern(this.getPattern());
super.filterAttr();
return this;
}
public LogEntryPO createParentPO()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_PARENT, result);
return result;
}
public LogEntryPO createParentPO(String modifier)
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(modifier);
super.hasLink(LogEntry.PROPERTY_PARENT, result);
return result;
}
public LogEntryPO createParentLink(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_PARENT);
}
public LogEntryPO createParentLink(LogEntryPO tgt, String modifier)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_PARENT, modifier);
}
public LogEntryPO createChildrenPO()
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_CHILDREN, result);
return result;
}
public LogEntryPO createChildrenPO(String modifier)
{
LogEntryPO result = new LogEntryPO(new LogEntry[]{});
result.setModifier(modifier);
super.hasLink(LogEntry.PROPERTY_CHILDREN, result);
return result;
}
public LogEntryPO createChildrenLink(LogEntryPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_CHILDREN);
}
public LogEntryPO createChildrenLink(LogEntryPO tgt, String modifier)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_CHILDREN, modifier);
}
public LoggerPO createLoggerPO()
{
LoggerPO result = new LoggerPO(new Logger[]{});
result.setModifier(this.getPattern().getModifier());
super.hasLink(LogEntry.PROPERTY_LOGGER, result);
return result;
}
public LoggerPO createLoggerPO(String modifier)
{
LoggerPO result = new LoggerPO(new Logger[]{});
result.setModifier(modifier);
super.hasLink(LogEntry.PROPERTY_LOGGER, result);
return result;
}
public LogEntryPO createLoggerLink(LoggerPO tgt)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_LOGGER);
}
public LogEntryPO createLoggerLink(LoggerPO tgt, String modifier)
{
return hasLinkConstraint(tgt, LogEntry.PROPERTY_LOGGER, modifier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy