001package gov.nist.secauto.oscal.lib.model;
002
003import gov.nist.secauto.metaschema.core.datatype.adapter.UuidAdapter;
004import gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline;
005import gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilineAdapter;
006import gov.nist.secauto.metaschema.core.model.IBoundObject;
007import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
008import gov.nist.secauto.metaschema.core.model.JsonGroupAsBehavior;
009import gov.nist.secauto.metaschema.core.model.constraint.IConstraint;
010import gov.nist.secauto.metaschema.core.util.ObjectUtils;
011import gov.nist.secauto.metaschema.databind.model.annotations.AllowedValue;
012import gov.nist.secauto.metaschema.databind.model.annotations.AllowedValues;
013import gov.nist.secauto.metaschema.databind.model.annotations.AssemblyConstraints;
014import gov.nist.secauto.metaschema.databind.model.annotations.BoundAssembly;
015import gov.nist.secauto.metaschema.databind.model.annotations.BoundField;
016import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
017import gov.nist.secauto.metaschema.databind.model.annotations.GroupAs;
018import gov.nist.secauto.metaschema.databind.model.annotations.IndexHasKey;
019import gov.nist.secauto.metaschema.databind.model.annotations.IsUnique;
020import gov.nist.secauto.metaschema.databind.model.annotations.KeyField;
021import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
022import gov.nist.secauto.metaschema.databind.model.annotations.ValueConstraints;
023import java.lang.Override;
024import java.lang.String;
025import java.util.LinkedList;
026import java.util.List;
027import java.util.UUID;
028import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
029import org.apache.commons.lang3.builder.ToStringStyle;
030
031/**
032 * A single managed inventory item within the system.
033 */
034@MetaschemaAssembly(
035    formalName = "Inventory Item",
036    description = "A single managed inventory item within the system.",
037    name = "inventory-item",
038    moduleClass = OscalImplementationCommonModule.class,
039    valueConstraints = @ValueConstraints(allowedValues = {@AllowedValues(level = IConstraint.Level.ERROR, target = "prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal')]/@name", values = {@AllowedValue(value = "ipv4-address", description = "The Internet Protocol v4 Address of the asset."), @AllowedValue(value = "ipv6-address", description = "The Internet Protocol v6 Address of the asset."), @AllowedValue(value = "fqdn", description = "The full-qualified domain name (FQDN) of the asset."), @AllowedValue(value = "uri", description = "A Uniform Resource Identifier (URI) for the asset."), @AllowedValue(value = "serial-number", description = "A serial number for the asset."), @AllowedValue(value = "netbios-name", description = "The NetBIOS name for the asset."), @AllowedValue(value = "mac-address", description = "The media access control (MAC) address for the asset."), @AllowedValue(value = "physical-location", description = "The physical location of the asset's hardware (e.g., Data Center ID, Cage#, Rack#, or other meaningful location identifiers)."), @AllowedValue(value = "is-scanned", description = "is the asset subjected to network scans? (yes/no)"), @AllowedValue(value = "hardware-model", description = "The model number of the hardware used by the asset."), @AllowedValue(value = "os-name", description = "The name of the operating system used by the asset."), @AllowedValue(value = "os-version", description = "The version of the operating system used by the asset."), @AllowedValue(value = "software-name", description = "The software product name used by the asset."), @AllowedValue(value = "software-version", description = "The software product version used by the asset."), @AllowedValue(value = "software-patch-level", description = "The software product patch level used by the asset."), @AllowedValue(value = "asset-type", description = "Simple indication of the asset's function, such as Router, Storage Array, DNS Server."), @AllowedValue(value = "asset-id", description = "An organizationally specific identifier that is used to uniquely identify a logical or tangible item by the organization that owns the item."), @AllowedValue(value = "asset-tag", description = "An asset tag assigned by the organization responsible for maintaining the logical or tangible item."), @AllowedValue(value = "public", description = "Identifies whether the asset is publicly accessible (yes/no)"), @AllowedValue(value = "virtual", description = "Identifies whether the asset is virtualized (yes/no)"), @AllowedValue(value = "vlan-id", description = "Virtual LAN identifier of the asset."), @AllowedValue(value = "network-id", description = "The network identifier of the asset."), @AllowedValue(value = "label", description = "A human-readable label for the parent context."), @AllowedValue(value = "sort-id", description = "An alternative identifier, whose value is easily sortable among other such values in the document."), @AllowedValue(value = "baseline-configuration-name", description = "The name of the baseline configuration for the asset."), @AllowedValue(value = "allows-authenticated-scan", description = "Can the asset be check with an authenticated scan? (yes/no)"), @AllowedValue(value = "function", description = "The function provided by the asset for the system.")}), @AllowedValues(level = IConstraint.Level.ERROR, target = "prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='asset-type']/@value", allowOthers = true, values = {@AllowedValue(value = "operating-system", description = "System software that manages computer hardware, software resources, and provides common services for computer programs."), @AllowedValue(value = "database", description = "An electronic collection of data, or information, that is specially organized for rapid search and retrieval."), @AllowedValue(value = "web-server", description = "A system that delivers content or services to end users over the Internet or an intranet."), @AllowedValue(value = "dns-server", description = "A system that resolves domain names to internet protocol (IP) addresses."), @AllowedValue(value = "email-server", description = "A computer system that sends and receives electronic mail messages."), @AllowedValue(value = "directory-server", description = "A system that stores, organizes and provides access to directory information in order to unify network resources."), @AllowedValue(value = "pbx", description = "A private branch exchange (PBX) provides a a private telephone switchboard."), @AllowedValue(value = "firewall", description = "A network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules."), @AllowedValue(value = "router", description = "A physical or virtual networking device that forwards data packets between computer networks."), @AllowedValue(value = "switch", description = "A physical or virtual networking device that connects devices within a computer network by using packet switching to receive and forward data to the destination device."), @AllowedValue(value = "storage-array", description = "A consolidated, block-level data storage capability."), @AllowedValue(value = "appliance", description = "A physical or virtual machine that centralizes hardware, software, or services for a specific purpose.")}), @AllowedValues(level = IConstraint.Level.ERROR, target = "(.)[@type=('software', 'hardware', 'service')]/prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal')]/@name", values = @AllowedValue(value = "vendor-name", description = "The name of the company or organization")), @AllowedValues(level = IConstraint.Level.ERROR, target = "prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='is-scanned']/@value", values = {@AllowedValue(value = "yes", description = "The asset is included in periodic vulnerability scanning."), @AllowedValue(value = "no", description = "The asset is not included in periodic vulnerability scanning.")}), @AllowedValues(level = IConstraint.Level.ERROR, target = "link/@rel", allowOthers = true, values = @AllowedValue(value = "baseline-template", description = "A reference to the baseline template used to configure the asset.")), @AllowedValues(level = IConstraint.Level.ERROR, target = "responsible-party/@role-id", allowOthers = true, values = {@AllowedValue(value = "asset-owner", description = "Accountable for ensuring the asset is managed in accordance with organizational policies and procedures."), @AllowedValue(value = "asset-administrator", description = "Responsible for administering a set of assets."), @AllowedValue(value = "security-operations", description = "Members of the security operations center (SOC)."), @AllowedValue(value = "network-operations", description = "Members of the network operations center (NOC)."), @AllowedValue(value = "incident-response", description = "Responsible for responding to an event that could lead to loss of, or disruption to, an organization's operations, services or functions."), @AllowedValue(value = "help-desk", description = "Responsible for providing information and support to users."), @AllowedValue(value = "configuration-management", description = "Responsible for the configuration management processes governing changes to the asset."), @AllowedValue(value = "maintainer", description = "Responsible for the creation and maintenance of a component."), @AllowedValue(value = "provider", description = "Organization responsible for providing the component, if this is different from the \"maintainer\" (e.g., a reseller).")})}, indexHasKey = {@IndexHasKey(level = IConstraint.Level.ERROR, target = "responsible-party", indexName = "index-metadata-role-id", keyFields = @KeyField(target = "@role-id")), @IndexHasKey(level = IConstraint.Level.ERROR, target = "responsible-party", indexName = "index-metadata-party-uuid", keyFields = @KeyField(target = "party-uuid"))}),
040    modelConstraints = @AssemblyConstraints(unique = @IsUnique(id = "unique-inventory-item-responsible-party", level = IConstraint.Level.ERROR, target = "responsible-party", keyFields = @KeyField(target = "@role-id"), remarks = "Since `responsible-party` associates multiple `party-uuid` entries with a single `role-id`, each role-id must be referenced only once."))
041)
042public class InventoryItem implements IBoundObject {
043  private final IMetaschemaData __metaschemaData;
044
045  /**
046   * "A <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented\">machine-oriented</a>, <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#globally-unique\">globally unique</a> identifier with <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#cross-instance\">cross-instance</a> scope that can be used to reference this inventory item elsewhere in <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#scope\">this or other OSCAL instances</a>. The locally defined <em>UUID</em> of the <code>inventory item</code> can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#consistency\">per-subject</a>, which means it should be consistently used to identify the same subject across revisions of the document."
047   */
048  @BoundFlag(
049      formalName = "Inventory Item Universally Unique Identifier",
050      description = "A [machine-oriented](https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented), [globally unique](https://pages.nist.gov/OSCAL/concepts/identifier-use/#globally-unique) identifier with [cross-instance](https://pages.nist.gov/OSCAL/concepts/identifier-use/#cross-instance) scope that can be used to reference this inventory item elsewhere in [this or other OSCAL instances](https://pages.nist.gov/OSCAL/concepts/identifier-use/#scope). The locally defined *UUID* of the `inventory item` can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned [per-subject](https://pages.nist.gov/OSCAL/concepts/identifier-use/#consistency), which means it should be consistently used to identify the same subject across revisions of the document.",
051      name = "uuid",
052      required = true,
053      typeAdapter = UuidAdapter.class
054  )
055  private UUID _uuid;
056
057  @BoundField(
058      formalName = "Inventory Item Description",
059      description = "A summary of the inventory item stating its purpose within the system.",
060      useName = "description",
061      minOccurs = 1,
062      typeAdapter = MarkupMultilineAdapter.class
063  )
064  private MarkupMultiline _description;
065
066  @BoundAssembly(
067      formalName = "Property",
068      description = "An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.",
069      useName = "prop",
070      maxOccurs = -1,
071      groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)
072  )
073  private List<Property> _props;
074
075  @BoundAssembly(
076      formalName = "Link",
077      description = "A reference to a local or remote resource, that has a specific relation to the containing object.",
078      useName = "link",
079      maxOccurs = -1,
080      groupAs = @GroupAs(name = "links", inJson = JsonGroupAsBehavior.LIST)
081  )
082  private List<Link> _links;
083
084  @BoundAssembly(
085      formalName = "Responsible Party",
086      description = "A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.",
087      useName = "responsible-party",
088      maxOccurs = -1,
089      groupAs = @GroupAs(name = "responsible-parties", inJson = JsonGroupAsBehavior.LIST)
090  )
091  private List<ResponsibleParty> _responsibleParties;
092
093  @BoundAssembly(
094      formalName = "Implemented Component",
095      description = "The set of components that are implemented in a given system inventory item.",
096      useName = "implemented-component",
097      maxOccurs = -1,
098      groupAs = @GroupAs(name = "implemented-components", inJson = JsonGroupAsBehavior.LIST)
099  )
100  private List<ImplementedComponent> _implementedComponents;
101
102  @BoundField(
103      formalName = "Remarks",
104      description = "Additional commentary about the containing object.",
105      useName = "remarks",
106      typeAdapter = MarkupMultilineAdapter.class
107  )
108  private MarkupMultiline _remarks;
109
110  public InventoryItem() {
111    this(null);
112  }
113
114  public InventoryItem(IMetaschemaData data) {
115    this.__metaschemaData = data;
116  }
117
118  @Override
119  public IMetaschemaData getMetaschemaData() {
120    return __metaschemaData;
121  }
122
123  public UUID getUuid() {
124    return _uuid;
125  }
126
127  public void setUuid(UUID value) {
128    _uuid = value;
129  }
130
131  public MarkupMultiline getDescription() {
132    return _description;
133  }
134
135  public void setDescription(MarkupMultiline value) {
136    _description = value;
137  }
138
139  public List<Property> getProps() {
140    return _props;
141  }
142
143  public void setProps(List<Property> value) {
144    _props = value;
145  }
146
147  /**
148   * Add a new {@link Property} item to the underlying collection.
149   * @param item the item to add
150   * @return {@code true}
151   */
152  public boolean addProp(Property item) {
153    Property value = ObjectUtils.requireNonNull(item,"item cannot be null");
154    if (_props == null) {
155      _props = new LinkedList<>();
156    }
157    return _props.add(value);
158  }
159
160  /**
161   * Remove the first matching {@link Property} item from the underlying collection.
162   * @param item the item to remove
163   * @return {@code true} if the item was removed or {@code false} otherwise
164   */
165  public boolean removeProp(Property item) {
166    Property value = ObjectUtils.requireNonNull(item,"item cannot be null");
167    return _props != null && _props.remove(value);
168  }
169
170  public List<Link> getLinks() {
171    return _links;
172  }
173
174  public void setLinks(List<Link> value) {
175    _links = value;
176  }
177
178  /**
179   * Add a new {@link Link} item to the underlying collection.
180   * @param item the item to add
181   * @return {@code true}
182   */
183  public boolean addLink(Link item) {
184    Link value = ObjectUtils.requireNonNull(item,"item cannot be null");
185    if (_links == null) {
186      _links = new LinkedList<>();
187    }
188    return _links.add(value);
189  }
190
191  /**
192   * Remove the first matching {@link Link} item from the underlying collection.
193   * @param item the item to remove
194   * @return {@code true} if the item was removed or {@code false} otherwise
195   */
196  public boolean removeLink(Link item) {
197    Link value = ObjectUtils.requireNonNull(item,"item cannot be null");
198    return _links != null && _links.remove(value);
199  }
200
201  public List<ResponsibleParty> getResponsibleParties() {
202    return _responsibleParties;
203  }
204
205  public void setResponsibleParties(List<ResponsibleParty> value) {
206    _responsibleParties = value;
207  }
208
209  /**
210   * Add a new {@link ResponsibleParty} item to the underlying collection.
211   * @param item the item to add
212   * @return {@code true}
213   */
214  public boolean addResponsibleParty(ResponsibleParty item) {
215    ResponsibleParty value = ObjectUtils.requireNonNull(item,"item cannot be null");
216    if (_responsibleParties == null) {
217      _responsibleParties = new LinkedList<>();
218    }
219    return _responsibleParties.add(value);
220  }
221
222  /**
223   * Remove the first matching {@link ResponsibleParty} item from the underlying collection.
224   * @param item the item to remove
225   * @return {@code true} if the item was removed or {@code false} otherwise
226   */
227  public boolean removeResponsibleParty(ResponsibleParty item) {
228    ResponsibleParty value = ObjectUtils.requireNonNull(item,"item cannot be null");
229    return _responsibleParties != null && _responsibleParties.remove(value);
230  }
231
232  public List<ImplementedComponent> getImplementedComponents() {
233    return _implementedComponents;
234  }
235
236  public void setImplementedComponents(List<ImplementedComponent> value) {
237    _implementedComponents = value;
238  }
239
240  /**
241   * Add a new {@link ImplementedComponent} item to the underlying collection.
242   * @param item the item to add
243   * @return {@code true}
244   */
245  public boolean addImplementedComponent(ImplementedComponent item) {
246    ImplementedComponent value = ObjectUtils.requireNonNull(item,"item cannot be null");
247    if (_implementedComponents == null) {
248      _implementedComponents = new LinkedList<>();
249    }
250    return _implementedComponents.add(value);
251  }
252
253  /**
254   * Remove the first matching {@link ImplementedComponent} item from the underlying collection.
255   * @param item the item to remove
256   * @return {@code true} if the item was removed or {@code false} otherwise
257   */
258  public boolean removeImplementedComponent(ImplementedComponent item) {
259    ImplementedComponent value = ObjectUtils.requireNonNull(item,"item cannot be null");
260    return _implementedComponents != null && _implementedComponents.remove(value);
261  }
262
263  public MarkupMultiline getRemarks() {
264    return _remarks;
265  }
266
267  public void setRemarks(MarkupMultiline value) {
268    _remarks = value;
269  }
270
271  @Override
272  public String toString() {
273    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
274  }
275
276  /**
277   * The set of components that are implemented in a given system inventory item.
278   */
279  @MetaschemaAssembly(
280      formalName = "Implemented Component",
281      description = "The set of components that are implemented in a given system inventory item.",
282      name = "implemented-component",
283      moduleClass = OscalImplementationCommonModule.class,
284      valueConstraints = @ValueConstraints(allowedValues = {@AllowedValues(level = IConstraint.Level.ERROR, target = "prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal')]/@name", values = {@AllowedValue(value = "version", description = "The version of the component."), @AllowedValue(value = "patch-level", description = "The specific patch level of the component."), @AllowedValue(value = "model", description = "The model of the component."), @AllowedValue(value = "release-date", description = "The date the component was released, such as a software release date or policy publication date."), @AllowedValue(value = "validation-type", description = "Used with component-type='validation' to provide a well-known name for a kind of validation."), @AllowedValue(value = "validation-reference", description = "Used with component-type='validation' to indicate the validating body's assigned identifier for their validation of this component."), @AllowedValue(value = "asset-type", description = "Simple indication of the asset's function, such as Router, Storage Array, DNS Server."), @AllowedValue(value = "asset-id", description = "An organizationally specific identifier that is used to uniquely identify a logical or tangible item by the organization that owns the item."), @AllowedValue(value = "asset-tag", description = "An asset tag assigned by the organization responsible for maintaining the logical or tangible item."), @AllowedValue(value = "public", description = "Identifies whether the asset is publicly accessible (yes/no)"), @AllowedValue(value = "virtual", description = "Identifies whether the asset is virtualized (yes/no)"), @AllowedValue(value = "vlan-id", description = "Virtual LAN identifier of the asset."), @AllowedValue(value = "network-id", description = "The network identifier of the asset."), @AllowedValue(value = "label", description = "A human-readable label for the parent context."), @AllowedValue(value = "sort-id", description = "An alternative identifier, whose value is easily sortable among other such values in the document."), @AllowedValue(value = "baseline-configuration-name", description = "The name of the baseline configuration for the asset."), @AllowedValue(value = "allows-authenticated-scan", description = "Can the asset be check with an authenticated scan? (yes/no)"), @AllowedValue(value = "function", description = "The function provided by the asset for the system.")}), @AllowedValues(level = IConstraint.Level.ERROR, target = "responsible-party/@role-id", allowOthers = true, values = {@AllowedValue(value = "asset-owner", description = "Accountable for ensuring the asset is managed in accordance with organizational policies and procedures."), @AllowedValue(value = "asset-administrator", description = "Responsible for administering a set of assets."), @AllowedValue(value = "security-operations", description = "Members of the security operations center (SOC)."), @AllowedValue(value = "network-operations", description = "Members of the network operations center (NOC)."), @AllowedValue(value = "incident-response", description = "Responsible for responding to an event that could lead to loss of, or disruption to, an organization's operations, services or functions."), @AllowedValue(value = "help-desk", description = "Responsible for providing information and support to users."), @AllowedValue(value = "configuration-management", description = "Responsible for the configuration management processes governing changes to the asset.")})}),
285      modelConstraints = @AssemblyConstraints(unique = @IsUnique(id = "unique-implemented-component-responsible-party", level = IConstraint.Level.ERROR, target = "responsible-party", keyFields = @KeyField(target = "@role-id"), remarks = "Since `responsible-party` associates multiple `party-uuid` entries with a single `role-id`, each role-id must be referenced only once."))
286  )
287  public static class ImplementedComponent implements IBoundObject {
288    private final IMetaschemaData __metaschemaData;
289
290    /**
291     * "A <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented\">machine-oriented</a> identifier reference to a <code>component</code> that is implemented as part of an inventory item."
292     */
293    @BoundFlag(
294        formalName = "Component Universally Unique Identifier Reference",
295        description = "A [machine-oriented](https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented) identifier reference to a `component` that is implemented as part of an inventory item.",
296        name = "component-uuid",
297        required = true,
298        typeAdapter = UuidAdapter.class
299    )
300    private UUID _componentUuid;
301
302    @BoundAssembly(
303        formalName = "Property",
304        description = "An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.",
305        useName = "prop",
306        maxOccurs = -1,
307        groupAs = @GroupAs(name = "props", inJson = JsonGroupAsBehavior.LIST)
308    )
309    private List<Property> _props;
310
311    @BoundAssembly(
312        formalName = "Link",
313        description = "A reference to a local or remote resource, that has a specific relation to the containing object.",
314        useName = "link",
315        maxOccurs = -1,
316        groupAs = @GroupAs(name = "links", inJson = JsonGroupAsBehavior.LIST)
317    )
318    private List<Link> _links;
319
320    @BoundAssembly(
321        formalName = "Responsible Party",
322        description = "A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.",
323        useName = "responsible-party",
324        remarks = "This construct is used to either: 1) associate a party or parties to a role defined on the component using the `responsible-role` construct, or 2) to define a party or parties that are responsible for a role defined within the context of the containing `inventory-item`.",
325        maxOccurs = -1,
326        groupAs = @GroupAs(name = "responsible-parties", inJson = JsonGroupAsBehavior.LIST)
327    )
328    private List<ResponsibleParty> _responsibleParties;
329
330    @BoundField(
331        formalName = "Remarks",
332        description = "Additional commentary about the containing object.",
333        useName = "remarks",
334        typeAdapter = MarkupMultilineAdapter.class
335    )
336    private MarkupMultiline _remarks;
337
338    public ImplementedComponent() {
339      this(null);
340    }
341
342    public ImplementedComponent(IMetaschemaData data) {
343      this.__metaschemaData = data;
344    }
345
346    @Override
347    public IMetaschemaData getMetaschemaData() {
348      return __metaschemaData;
349    }
350
351    public UUID getComponentUuid() {
352      return _componentUuid;
353    }
354
355    public void setComponentUuid(UUID value) {
356      _componentUuid = value;
357    }
358
359    public List<Property> getProps() {
360      return _props;
361    }
362
363    public void setProps(List<Property> value) {
364      _props = value;
365    }
366
367    /**
368     * Add a new {@link Property} item to the underlying collection.
369     * @param item the item to add
370     * @return {@code true}
371     */
372    public boolean addProp(Property item) {
373      Property value = ObjectUtils.requireNonNull(item,"item cannot be null");
374      if (_props == null) {
375        _props = new LinkedList<>();
376      }
377      return _props.add(value);
378    }
379
380    /**
381     * Remove the first matching {@link Property} item from the underlying collection.
382     * @param item the item to remove
383     * @return {@code true} if the item was removed or {@code false} otherwise
384     */
385    public boolean removeProp(Property item) {
386      Property value = ObjectUtils.requireNonNull(item,"item cannot be null");
387      return _props != null && _props.remove(value);
388    }
389
390    public List<Link> getLinks() {
391      return _links;
392    }
393
394    public void setLinks(List<Link> value) {
395      _links = value;
396    }
397
398    /**
399     * Add a new {@link Link} item to the underlying collection.
400     * @param item the item to add
401     * @return {@code true}
402     */
403    public boolean addLink(Link item) {
404      Link value = ObjectUtils.requireNonNull(item,"item cannot be null");
405      if (_links == null) {
406        _links = new LinkedList<>();
407      }
408      return _links.add(value);
409    }
410
411    /**
412     * Remove the first matching {@link Link} item from the underlying collection.
413     * @param item the item to remove
414     * @return {@code true} if the item was removed or {@code false} otherwise
415     */
416    public boolean removeLink(Link item) {
417      Link value = ObjectUtils.requireNonNull(item,"item cannot be null");
418      return _links != null && _links.remove(value);
419    }
420
421    public List<ResponsibleParty> getResponsibleParties() {
422      return _responsibleParties;
423    }
424
425    public void setResponsibleParties(List<ResponsibleParty> value) {
426      _responsibleParties = value;
427    }
428
429    /**
430     * Add a new {@link ResponsibleParty} item to the underlying collection.
431     * @param item the item to add
432     * @return {@code true}
433     */
434    public boolean addResponsibleParty(ResponsibleParty item) {
435      ResponsibleParty value = ObjectUtils.requireNonNull(item,"item cannot be null");
436      if (_responsibleParties == null) {
437        _responsibleParties = new LinkedList<>();
438      }
439      return _responsibleParties.add(value);
440    }
441
442    /**
443     * Remove the first matching {@link ResponsibleParty} item from the underlying collection.
444     * @param item the item to remove
445     * @return {@code true} if the item was removed or {@code false} otherwise
446     */
447    public boolean removeResponsibleParty(ResponsibleParty item) {
448      ResponsibleParty value = ObjectUtils.requireNonNull(item,"item cannot be null");
449      return _responsibleParties != null && _responsibleParties.remove(value);
450    }
451
452    public MarkupMultiline getRemarks() {
453      return _remarks;
454    }
455
456    public void setRemarks(MarkupMultiline value) {
457      _remarks = value;
458    }
459
460    @Override
461    public String toString() {
462      return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
463    }
464  }
465}