Package com.postman.collection
Class Event.PostmanScript
java.lang.Object
com.postman.collection.CollectionElement
com.postman.collection.Event.PostmanScript
- Enclosing class:
Event
-
Constructor Summary
ConstructorDescriptionPostmanScript
(String scriptType, String sourceCode) PostmanScript
(String scriptType, ArrayList<String> sourceCode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSourceCodeElement
(String code, int position) getKey()
getSourceCodeElement
(int position) getType()
void
removeSourceCodeElement
(int position) void
setSourceCode
(ArrayList<String> exec) void
Methods inherited from class com.postman.collection.CollectionElement
getCollection, getDefaultCollectionSchema, getDefaultValidationSchema, getParent, getUUID, getValidationMessages, isEquivalentTo, setParent, setUUID, toJson, toJson, validate, validate
-
Constructor Details
-
PostmanScript
-
PostmanScript
-
-
Method Details
-
addSourceCodeElement
-
removeSourceCodeElement
- Throws:
InvalidPropertyException
-
getType
-
setType
-
getSourceCodeElement
- Throws:
InvalidPropertyException
-
getSourceCode
-
setSourceCode
-
getKey
- Specified by:
getKey
in classCollectionElement
-