MCPcopy Create free account
hub / github.com/EsperoTech/yaade / Item

Class Item

server/src/main/java/com/postman/collection/Item.java:132–360  ·  view source on GitHub ↗

Encapsulates the item object in the postman schema Postman SDK analog: Item . { "name": "Get a list of facts", "event": [ { "listen": "test", "script":

Source from the content-addressed store, hash-verified

130
131*/
132public abstract class Item extends CollectionElement {
133
134 private String description;
135 private ArrayList<Event> event = null;
136 private String name;
137
138
139 private transient ItemGroup parent = null;
140
141
142
143 protected Item() {
144
145 }
146 /**
147 *
148 *
149 * Construct an empty item with only a <code>name</code> property and assign it as a child of <code>parent</code>
150 *
151 * @param name The name of the object
152 * @param parent The Item containing this item.
153 */
154 protected Item(String name, ItemGroup parent) {
155 this(name);
156 this.setParent(parent);
157
158 }
159 /**
160 * * Construct an empty item with only a <code>name</code>>; property. Once added to a Collection, the Postman UI will render this object as an empty folder.
161
162 * @param name The name of the object
163 */
164
165 protected Item(String name) {
166 this.setName(name);
167 }
168
169
170
171 /**
172 *
173 * Return the value of the <code>description</code> property
174 *
175 * @return String The description
176 */
177 public String getDescription() {
178 return description;
179 }
180
181
182 /**
183 *
184 * Set the value of the <code>description</code> property
185 *
186 *
187 * @param description The description
188 */
189 public void setDescription(String description) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected