public final class ModelASTPipelineDef extends ModelASTElement
Root
.Constructor and Description |
---|
ModelASTPipelineDef(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ModelASTAgent |
getAgent() |
ModelASTEnvironment |
getEnvironment() |
ModelASTOptions |
getOptions() |
ModelASTBuildParameters |
getParameters() |
ModelASTPostBuild |
getPostBuild() |
ModelASTStages |
getStages() |
ModelASTTools |
getTools() |
ModelASTTriggers |
getTriggers() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setAgent(ModelASTAgent agent) |
void |
setEnvironment(ModelASTEnvironment environment) |
void |
setOptions(ModelASTOptions options) |
void |
setParameters(ModelASTBuildParameters parameters) |
void |
setPostBuild(ModelASTPostBuild postBuild) |
void |
setStages(ModelASTStages stages) |
void |
setTools(ModelASTTools tools) |
void |
setTriggers(ModelASTTriggers triggers) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONObject |
toJSON()
Translates this element and any children it may have into JSON conforming to the schema.
|
String |
toPrettyGroovy()
Helper method to pretty-print the generated Groovy from this and its children.
|
String |
toString() |
void |
validate(ModelValidator validator)
Called to do whatever validation is necessary for this element.
|
getSourceLocation, setSourceLocation
public ModelASTPipelineDef(Object sourceLocation)
public net.sf.json.JSONObject toJSON()
ModelASTElement
toJSON
in class ModelASTElement
JSONObject
or JSONArray
but for some leaf nodes, may be a String
or
other simple class.public void validate(ModelValidator validator)
ModelASTElement
validate
in class ModelASTElement
validator
- A ModelValidator
to use for more complicated validation.public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTElement
String
of Groovy code for this element and its children.public String toPrettyGroovy()
public void removeSourceLocation()
ModelASTElement
removeSourceLocation
in class ModelASTElement
public ModelASTStages getStages()
public void setStages(ModelASTStages stages)
public ModelASTPostBuild getPostBuild()
public void setPostBuild(ModelASTPostBuild postBuild)
public ModelASTEnvironment getEnvironment()
public void setEnvironment(ModelASTEnvironment environment)
public ModelASTAgent getAgent()
public void setAgent(ModelASTAgent agent)
public ModelASTTools getTools()
public void setTools(ModelASTTools tools)
public ModelASTOptions getOptions()
public void setOptions(ModelASTOptions options)
public ModelASTBuildParameters getParameters()
public void setParameters(ModelASTBuildParameters parameters)
public ModelASTTriggers getTriggers()
public void setTriggers(ModelASTTriggers triggers)
public String toString()
ModelASTElement
toString
in class ModelASTElement
public boolean equals(Object o)
ModelASTElement
equals
in class ModelASTElement
public int hashCode()
ModelASTElement
hashCode
in class ModelASTElement
Copyright © 2016–2017. All rights reserved.