Class PipComponentInformation
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.component.information.PipComponentInformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Valid @NotNull ComponentIdA list ofURIs that can be used to communicate with the Component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.PipComponentInformation(@NonNull ComponentId id, List<URI> urls, List<MethodInterfaceDescription> methodInterfaceDescriptions) Constructs aPipComponentInformation, including its location (URI) and its usage (MethodInterfaceDescription).Constructs aPipComponentInformationwithout 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 TypeMethodDescriptionvoidAdds a URL to the list ofURIs that can be used to communicate with the component.booleangetUrls()getUrlsForProtocol(String... protocols) Provides a list of URLs of a certain protocol/scheme.inthashCode()voidsetMethodInterfaceDescriptions(@NonNull List<MethodInterfaceDescription> methodInterfaceDescriptions) voidMethods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
Field Details
-
componentId
-
urls
A list ofURIs that can be used to communicate with the Component.
-
-
Constructor Details
-
PipComponentInformation
protected PipComponentInformation()Default constructor for JPA. -
PipComponentInformation
Constructs aPipComponentInformationwithout 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 thePipComponentInformationurls- a list ofURIs that can be used to communicate with thePipComponentInformationmethodInterfaceDescriptions- 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 thePipComponentInformationurls- a list ofURIs that can be used to communicate with thePipComponentInformationcomponentInterface- 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 ofURIs 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
URIs 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-
-