public class DFComponentDescription extends Object implements IDFComponentDescription, Serializable
| Constructor and Description |
|---|
DFComponentDescription()
Create a new component description.
|
DFComponentDescription(IComponentIdentifier name)
Create a new component description.
|
DFComponentDescription(IComponentIdentifier name,
IDFServiceDescription[] services,
String[] protocols,
String[] ontologies,
String[] languages,
Date leasetime)
Create a new component description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLanguage(String language)
Add a language to this ComponentDescription.
|
void |
addOntology(String ontology)
Add a ontology to this ComponentDescription.
|
void |
addProtocol(String protocol)
Add a protocol to this ComponentDescription.
|
void |
addService(IDFServiceDescription service)
Add a service to this ComponentDescription.
|
Object |
clone()
Clone a component description.
|
boolean |
equals(Object obj) |
String |
getLanguage(int idx)
Get an languages of this ComponentDescription.
|
String[] |
getLanguages()
Get the languages of this ComponentDescription.
|
Date |
getLeaseTime()
Get the lease-time of this ComponentDescription.
|
IComponentIdentifier |
getName()
Get the componentidentifier of this ComponentDescription.
|
String[] |
getOntologies()
Get the ontologies of this ComponentDescription.
|
String |
getOntology(int idx)
Get an ontologies of this ComponentDescription.
|
String |
getProtocol(int idx)
Get an protocols of this ComponentDescription.
|
String[] |
getProtocols()
Get the protocols of this ComponentDescription.
|
IDFServiceDescription |
getService(int idx)
Get an services of this ComponentDescription.
|
IDFServiceDescription[] |
getServices()
Get the services of this ComponentDescription.
|
boolean |
removeLanguage(String language)
Remove a language from this ComponentDescription.
|
boolean |
removeOntology(String ontology)
Remove a ontology from this ComponentDescription.
|
boolean |
removeProtocol(String protocol)
Remove a protocol from this ComponentDescription.
|
boolean |
removeService(IDFServiceDescription service)
Remove a service from this ComponentDescription.
|
void |
setLanguage(int idx,
String language)
Set a language to this ComponentDescription.
|
void |
setLanguages(String[] languages)
Set the languages of this ComponentDescription.
|
void |
setLeaseTime(Date leasetime)
Set the lease-time of this ComponentDescription.
|
void |
setName(IComponentIdentifier name)
Set the componentidentifier of this ComponentDescription.
|
void |
setOntologies(String[] ontologies)
Set the ontologies of this ComponentDescription.
|
void |
setOntology(int idx,
String ontology)
Set a ontology to this ComponentDescription.
|
void |
setProtocol(int idx,
String protocol)
Set a protocol to this ComponentDescription.
|
void |
setProtocols(String[] protocols)
Set the protocols of this ComponentDescription.
|
void |
setService(int idx,
IDFServiceDescription service)
Set a service to this ComponentDescription.
|
void |
setServices(IDFServiceDescription[] services)
Set the services of this ComponentDescription.
|
String |
toString()
Get a string representation of this ComponentDescription.
|
public DFComponentDescription()
public DFComponentDescription(IComponentIdentifier name)
name - The name.public DFComponentDescription(IComponentIdentifier name, IDFServiceDescription[] services, String[] protocols, String[] ontologies, String[] languages, Date leasetime)
name - The name.services - The services.protocols - The protocols.ontologies - The ontologies.languages - The languages.public String[] getLanguages()
getLanguages in interface IDFComponentDescriptionpublic void setLanguages(String[] languages)
languages - the value to be setpublic String getLanguage(int idx)
idx - The index.public void setLanguage(int idx,
String language)
idx - The index.language - a value to be addedpublic void addLanguage(String language)
language - a value to be removedpublic boolean removeLanguage(String language)
language - a value to be removedpublic IComponentIdentifier getName()
getName in interface IDFComponentDescriptionpublic void setName(IComponentIdentifier name)
name - the value to be setpublic String[] getOntologies()
getOntologies in interface IDFComponentDescriptionpublic void setOntologies(String[] ontologies)
ontologies - the value to be setpublic String getOntology(int idx)
idx - The index.public void setOntology(int idx,
String ontology)
idx - The index.ontology - a value to be addedpublic void addOntology(String ontology)
ontology - a value to be removedpublic boolean removeOntology(String ontology)
ontology - a value to be removedpublic IDFServiceDescription[] getServices()
getServices in interface IDFComponentDescriptionpublic void setServices(IDFServiceDescription[] services)
services - the value to be setpublic IDFServiceDescription getService(int idx)
idx - The index.public void setService(int idx,
IDFServiceDescription service)
idx - The index.service - a value to be addedpublic void addService(IDFServiceDescription service)
service - a value to be removedpublic boolean removeService(IDFServiceDescription service)
service - a value to be removedpublic Date getLeaseTime()
getLeaseTime in interface IDFComponentDescriptionpublic void setLeaseTime(Date leasetime)
leasetime - the value to be setpublic String[] getProtocols()
getProtocols in interface IDFComponentDescriptionpublic void setProtocols(String[] protocols)
protocols - the value to be setpublic String getProtocol(int idx)
idx - The index.public void setProtocol(int idx,
String protocol)
idx - The index.protocol - a value to be addedpublic void addProtocol(String protocol)
protocol - a value to be removedpublic boolean removeProtocol(String protocol)
protocol - a value to be removedpublic boolean equals(Object obj)
equals in class Objectobj - Object.equals(java.lang.Object)Copyright © 2012. All Rights Reserved.