Search in sources :

Example 1 with StepSource

use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.

the class XMLGenerateDatesStep method setStopDefinition.

public void setStopDefinition(XMLVector<String> stopDefinition) {
    this.stopDefinition = stopDefinition;
    stopSource = new StepSource(this, stopDefinition);
}
Also used : StepSource(com.twinsoft.convertigo.beans.core.StepSource)

Example 2 with StepSource

use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.

the class XMLGenerateDatesStep method setStartDefinition.

public void setStartDefinition(XMLVector<String> startDefinition) {
    this.startDefinition = startDefinition;
    startSource = new StepSource(this, startDefinition);
}
Also used : StepSource(com.twinsoft.convertigo.beans.core.StepSource)

Example 3 with StepSource

use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.

the class XMLGenerateDatesStep method getSpecificLabel.

@Override
protected String getSpecificLabel() throws EngineException {
    StepSource stepSource = null;
    String startLabel = "";
    String stopLabel = "";
    String daysLabel = "";
    String label = "";
    stepSource = getStartSource();
    if (stepSource != null) {
        startLabel = stepSource.getLabel();
        if (startLabel.equals("! broken source !"))
            return " (! broken source in Start !)";
    }
    stepSource = getStopSource();
    if (stepSource != null) {
        stopLabel = stepSource.getLabel();
        if (stopLabel.equals("! broken source !"))
            return " (! broken source in Stop !)";
    }
    stepSource = getDaysSource();
    if (stepSource != null) {
        daysLabel = stepSource.getLabel();
        if (daysLabel.equals("! broken source !"))
            return " (! broken source in Days !)";
    }
    daysLabel = daysLabel.equals("") ? "??" : daysLabel;
    label = "(" + "@(" + daysLabel + "),..." + ")";
    return label;
}
Also used : StepSource(com.twinsoft.convertigo.beans.core.StepSource)

Example 4 with StepSource

use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.

the class XMLGenerateDatesStep method stepMoved.

@Override
public void stepMoved(StepEvent stepEvent) {
    StepSource stepSource = null;
    stepSource = getStartSource();
    if (stepSource != null) {
        stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
    }
    stepSource = getStopSource();
    if (stepSource != null) {
        stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
    }
    stepSource = getDaysSource();
    if (stepSource != null) {
        stepSource.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
    }
}
Also used : StepSource(com.twinsoft.convertigo.beans.core.StepSource)

Example 5 with StepSource

use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.

the class XMLGenerateDatesStep method setDaysDefinition.

public void setDaysDefinition(XMLVector<String> daysDefinition) {
    this.daysDefinition = daysDefinition;
    daysSource = new StepSource(this, daysDefinition);
}
Also used : StepSource(com.twinsoft.convertigo.beans.core.StepSource)

Aggregations

StepSource (com.twinsoft.convertigo.beans.core.StepSource)18 NodeList (org.w3c.dom.NodeList)7 EngineException (com.twinsoft.convertigo.engine.EngineException)5 Step (com.twinsoft.convertigo.beans.core.Step)4 IOException (java.io.IOException)3 ArrayList (java.util.ArrayList)3 CommunicationException (javapns.communication.exceptions.CommunicationException)3 KeystoreException (javapns.communication.exceptions.KeystoreException)3 JSONException (org.codehaus.jettison.json.JSONException)3 DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)2 Undefined (org.mozilla.javascript.Undefined)2 Message (com.google.android.gcm.server.Message)1 MulticastResult (com.google.android.gcm.server.MulticastResult)1 Result (com.google.android.gcm.server.Result)1 Sender (com.google.android.gcm.server.Sender)1 XMLVector (com.twinsoft.convertigo.beans.common.XMLVector)1 OutputFilter (com.twinsoft.convertigo.beans.core.Sequence.OutputFilter)1 ProjectExplorerView (com.twinsoft.convertigo.eclipse.views.projectexplorer.ProjectExplorerView)1 StepSourceEvent (com.twinsoft.convertigo.eclipse.views.projectexplorer.StepSourceEvent)1 DatabaseObjectTreeObject (com.twinsoft.convertigo.eclipse.views.projectexplorer.model.DatabaseObjectTreeObject)1