Class PipComponentInformation

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

@Entity public class PipComponentInformation extends MyDataEntity
  • Field Details

    • componentId

      @Valid @NotNull protected @Valid @NotNull 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(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
    • getMethodInterfaceDescriptions

      public List<MethodInterfaceDescription> getMethodInterfaceDescriptions()
      Returns:
      the list of method interface descriptions for this PIP
    • getUrls

      public List<URI> getUrls()
      Returns:
      the list of URLs for this PIP
    • setUrls

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

      public void setMethodInterfaceDescriptions(@NonNull @NonNull List<MethodInterfaceDescription> methodInterfaceDescriptions)
      Parameters:
      methodInterfaceDescriptions -