Class PxpComponentInformation
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.PxpComponentInformation
-
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.PxpComponentInformation
(@NonNull ComponentId id, List<URI> urls, List<MethodInterfaceDescription> methodInterfaceDescriptions) Constructs aPxpComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).Constructs aPxpComponentInformation
without URLs or ComponentInterface.PxpComponentInformation
(ComponentId id, List<URI> urls, MethodInterfaceDescription... componentInterface) Constructs aPxpComponentInformation
, 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
(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
-
PxpComponentInformation
protected PxpComponentInformation()Default constructor for JPA. -
PxpComponentInformation
Constructs aPxpComponentInformation
without URLs or ComponentInterface.- Parameters:
id
- the unique ID of thePxpComponentInformation
.
-
PxpComponentInformation
public PxpComponentInformation(@NonNull @NonNull ComponentId id, List<URI> urls, List<MethodInterfaceDescription> methodInterfaceDescriptions) Constructs aPxpComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the unique ID of thePxpComponentInformation
urls
- a list ofURI
s that can be used to communicate with thePxpComponentInformation
methodInterfaceDescriptions
- the component interfaces
-
PxpComponentInformation
public PxpComponentInformation(ComponentId id, List<URI> urls, MethodInterfaceDescription... componentInterface) Constructs aPxpComponentInformation
, including its location (URI
) and its usage (MethodInterfaceDescription
).- Parameters:
id
- the unique ID of thePxpComponentInformation
urls
- a list ofURI
s that can be used to communicate with thePxpComponentInformation
componentInterface
- a list of methods provided by thePxpComponentInformation
(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 Methods interface descriptions
-
getUrls
- Returns:
- the list of urls for the pxpcomponent
-
setUrls
- Parameters:
urls
- : the list of urls to be set for this PXP. It can not be null.
-
setMethodInterfaceDescriptions
public void setMethodInterfaceDescriptions(List<MethodInterfaceDescription> methodInterfaceDescriptions) - Parameters:
methodInterfaceDescriptions
-
-