@Entity public abstract class ComponentBase extends Ind2uceEntity
| Modifier and Type | Field and Description |
|---|---|
protected ComponentId |
id
The unique ID of the
Component. |
protected List<URI> |
urls
|
GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
ComponentBase() |
ComponentBase(ComponentId cId) |
ComponentBase(ComponentId cId,
List<URI> urls) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUrl(URI url)
|
ComponentId |
getId()
Gets the unique ID of the
Component. |
ComponentType |
getType()
Returns the
ComponentType of the component. |
List<URI> |
getUrls()
|
List<URI> |
getUrlsForProtocol(String... protocols)
Provides a list of URLs of a certain protocol/scheme.
|
void |
setId(ComponentId id)
Sets the unique ID of the
Component. |
void |
setUrls(List<URI> urls)
|
fromJson, getGson, getVersion, toJson, toStringprotected ComponentId id
Component.public ComponentBase()
public ComponentBase(ComponentId cId)
public ComponentBase(ComponentId cId, List<URI> urls)
public void addUrl(URI url)
url - the url to addpublic ComponentId getId()
Component.Componentpublic ComponentType getType()
ComponentType of the component.ComponentType of the componentpublic List<URI> getUrlsForProtocol(String... protocols)
public void setId(ComponentId id)
Component.id - the new unique ID of the ComponentCopyright © 2018. All rights reserved.