Class PdpComponentInformation
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.PdpComponentInformation
-
Field Summary
Modifier and TypeFieldDescriptionprotected @NotNull @Valid ComponentId
A list ofURI
s that can be used to communicate with the component. -
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for JPA.PdpComponentInformation
(ComponentId componentId) Constructs aPdpComponentInformation
without URLs or ComponentInterface.PdpComponentInformation
(ComponentId id, List<URI> urls) Constructs aPdpComponentInformation
, 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
getUrlsForProtocol
(String... protocols) Provides a list of URLs of a certain protocol/scheme.int
hashCode()
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
-
PdpComponentInformation
protected PdpComponentInformation()Default constructor for JPA. -
PdpComponentInformation
Constructs aPdpComponentInformation
without URLs or ComponentInterface.- Parameters:
componentId
- the unique ID of thePdpComponentInformation
.
-
PdpComponentInformation
Constructs aPdpComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the unique ID of thePdpComponentInformation
urls
- a list ofURI
s that can be used to communicate with thePdpComponentInformation
-
-
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
-
setUrls
- Parameters:
urls
- : the list of urls to be set for this PXP. It can not be null.
-