Class PipComponentInformation
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.PipComponentInformation
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Valid @NotNull ComponentId
A list ofURI
s that can be used to communicate with the Component. -
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for JPA.PipComponentInformation
(@NonNull ComponentId id, List<URI> urls, List<MethodInterfaceDescription> methodInterfaceDescriptions) Constructs aPipComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).Constructs aPipComponentInformation
without URLs or ComponentInterface.PipComponentInformation
(ComponentId id, List<URI> urls, MethodInterfaceDescription... componentInterface) Constructs aPipComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
). -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a URL to the list ofURI
s that can be used to communicate with the component.boolean
getUrls()
getUrlsForProtocol
(String... protocols) Provides a list of URLs of a certain protocol/scheme.int
hashCode()
void
setMethodInterfaceDescriptions
(@NonNull List<MethodInterfaceDescription> methodInterfaceDescriptions) void
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
componentId
-
urls
A list ofURI
s that can be used to communicate with the Component.
-
-
Constructor Details
-
PipComponentInformation
protected PipComponentInformation()Default constructor for JPA. -
PipComponentInformation
Constructs aPipComponentInformation
without URLs or ComponentInterface.- Parameters:
id
- the unique ID of thePipComponentInformation
.
-
PipComponentInformation
public PipComponentInformation(@NonNull @NonNull ComponentId id, List<URI> urls, List<MethodInterfaceDescription> methodInterfaceDescriptions) Constructs aPipComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the unique ID of thePipComponentInformation
urls
- a list ofURI
s that can be used to communicate with thePipComponentInformation
methodInterfaceDescriptions
- the component interfaces
-
PipComponentInformation
public PipComponentInformation(ComponentId id, List<URI> urls, MethodInterfaceDescription... componentInterface) Constructs aPipComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the unique ID of thePipComponentInformation
urls
- a list ofURI
s that can be used to communicate with thePipComponentInformation
componentInterface
- a list of methods provided by thePipComponentInformation
(i.e., its Interface)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
addUrl
Adds a URL to the list ofURI
s that can be used to communicate with the component.- Parameters:
url
- the url to add
-
getUrlsForProtocol
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
URI
s that can be used to communicate with the component
-
getMethodInterfaceDescriptions
- Returns:
- the list of method interface descriptions for this PIP
-
getUrls
- Returns:
- the list of URLs for this PIP
-
setUrls
- 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
-
-