Class PdpComponentInformation

java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.PdpComponentInformation

@Entity public class PdpComponentInformation extends MyDataEntity
  • Field Details

    • componentId

      @NotNull @Valid protected @NotNull @Valid ComponentId componentId
    • urls

      protected List<URI> urls
      A list of URIs that can be used to communicate with the component.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • addUrl

      public void addUrl(@NonNull @NonNull URI url)
      Adds a URL to the list of URIs that can be used to communicate with the component.
      Parameters:
      url - the url to add
    • getUrlsForProtocol

      public List<URI> getUrlsForProtocol(String... protocols)
      Provides a list of URLs of a certain protocol/scheme.
      Parameters:
      protocols - the list of protocols to be used linked by an "or" function
      Returns:
      a list of URIs that can be used to communicate with the component
    • setUrls

      public void setUrls(@NonNull @NonNull List<URI> urls)
      Parameters:
      urls - : the list of urls to be set for this PXP. It can not be null.