public class DFComponentDescription extends java.lang.Object implements IDFComponentDescription, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.List | 
languages
Attribute for slot languages. 
 | 
protected java.util.Date | 
leasetime
Attribute for slot lease-time. 
 | 
protected IComponentIdentifier | 
name
Attribute for slot componentidentifier. 
 | 
protected java.util.List | 
ontologies
Attribute for slot ontologies. 
 | 
protected java.util.List | 
protocols
Attribute for slot protocols. 
 | 
protected java.util.List | 
services
Attribute for slot services. 
 | 
| Constructor and Description | 
|---|
DFComponentDescription()
Create a new component description. 
 | 
DFComponentDescription(IComponentIdentifier name)
Create a new component description. 
 | 
DFComponentDescription(IComponentIdentifier name,
                      IDFServiceDescription service)
Convenience constructor for searching/registering. 
 | 
DFComponentDescription(IComponentIdentifier name,
                      IDFServiceDescription[] services,
                      java.lang.String[] protocols,
                      java.lang.String[] ontologies,
                      java.lang.String[] languages,
                      java.util.Date leasetime)
Create a new component description. 
 | 
DFComponentDescription(IComponentIdentifier name,
                      IDFServiceDescription service,
                      java.util.Date leasetime)
Convenience constructor for searching/registering. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addLanguage(java.lang.String language)
Add a language to this ComponentDescription. 
 | 
void | 
addOntology(java.lang.String ontology)
Add a ontology to this ComponentDescription. 
 | 
void | 
addProtocol(java.lang.String protocol)
Add a protocol to this ComponentDescription. 
 | 
void | 
addService(IDFServiceDescription service)
Add a service to this ComponentDescription. 
 | 
java.lang.Object | 
clone()
Clone a component description. 
 | 
boolean | 
equals(java.lang.Object obj)  | 
java.lang.String | 
getLanguage(int idx)
Get an languages of this ComponentDescription. 
 | 
java.lang.String[] | 
getLanguages()
Get the languages of this ComponentDescription. 
 | 
java.util.Date | 
getLeaseTime()
Get the lease-time of this ComponentDescription. 
 | 
IComponentIdentifier | 
getName()
Get the componentidentifier of this ComponentDescription. 
 | 
java.lang.String[] | 
getOntologies()
Get the ontologies of this ComponentDescription. 
 | 
java.lang.String | 
getOntology(int idx)
Get an ontologies of this ComponentDescription. 
 | 
java.lang.String | 
getProtocol(int idx)
Get an protocols of this ComponentDescription. 
 | 
java.lang.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. 
 | 
int | 
hashCode()  | 
boolean | 
removeLanguage(java.lang.String language)
Remove a language from this ComponentDescription. 
 | 
boolean | 
removeOntology(java.lang.String ontology)
Remove a ontology from this ComponentDescription. 
 | 
boolean | 
removeProtocol(java.lang.String protocol)
Remove a protocol from this ComponentDescription. 
 | 
boolean | 
removeService(IDFServiceDescription service)
Remove a service from this ComponentDescription. 
 | 
void | 
setLanguage(int idx,
           java.lang.String language)
Set a language to this ComponentDescription. 
 | 
void | 
setLanguages(java.lang.String[] languages)
Set the languages of this ComponentDescription. 
 | 
void | 
setLeaseTime(java.util.Date leasetime)
Set the lease-time of this ComponentDescription. 
 | 
void | 
setName(IComponentIdentifier name)
Set the componentidentifier of this ComponentDescription. 
 | 
void | 
setOntologies(java.lang.String[] ontologies)
Set the ontologies of this ComponentDescription. 
 | 
void | 
setOntology(int idx,
           java.lang.String ontology)
Set a ontology to this ComponentDescription. 
 | 
void | 
setProtocol(int idx,
           java.lang.String protocol)
Set a protocol to this ComponentDescription. 
 | 
void | 
setProtocols(java.lang.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. 
 | 
java.lang.String | 
toString()
Get a string representation of this ComponentDescription. 
 | 
protected java.util.List languages
protected IComponentIdentifier name
protected java.util.List ontologies
protected java.util.List services
protected java.util.Date leasetime
protected java.util.List protocols
public DFComponentDescription()
public DFComponentDescription(IComponentIdentifier name)
name - The name.public DFComponentDescription(IComponentIdentifier name, IDFServiceDescription[] services, java.lang.String[] protocols, java.lang.String[] ontologies, java.lang.String[] languages, java.util.Date leasetime)
name - The name.services - The services.protocols - The protocols.ontologies - The ontologies.languages - The languages.public DFComponentDescription(IComponentIdentifier name, IDFServiceDescription service)
public DFComponentDescription(IComponentIdentifier name, IDFServiceDescription service, java.util.Date leasetime)
public java.lang.String[] getLanguages()
getLanguages in interface IDFComponentDescriptionpublic void setLanguages(java.lang.String[] languages)
languages - the value to be setpublic java.lang.String getLanguage(int idx)
idx - The index.public void setLanguage(int idx,
                        java.lang.String language)
idx - The index.language - a value to be addedpublic void addLanguage(java.lang.String language)
language - a value to be removedpublic boolean removeLanguage(java.lang.String language)
language - a value to be removedpublic IComponentIdentifier getName()
getName in interface IDFComponentDescriptionpublic void setName(IComponentIdentifier name)
name - the value to be setpublic java.lang.String[] getOntologies()
getOntologies in interface IDFComponentDescriptionpublic void setOntologies(java.lang.String[] ontologies)
ontologies - the value to be setpublic java.lang.String getOntology(int idx)
idx - The index.public void setOntology(int idx,
                        java.lang.String ontology)
idx - The index.ontology - a value to be addedpublic void addOntology(java.lang.String ontology)
ontology - a value to be removedpublic boolean removeOntology(java.lang.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 java.util.Date getLeaseTime()
getLeaseTime in interface IDFComponentDescriptionpublic void setLeaseTime(java.util.Date leasetime)
leasetime - the value to be setpublic java.lang.String[] getProtocols()
getProtocols in interface IDFComponentDescriptionpublic void setProtocols(java.lang.String[] protocols)
protocols - the value to be setpublic java.lang.String getProtocol(int idx)
idx - The index.public void setProtocol(int idx,
                        java.lang.String protocol)
idx - The index.protocol - a value to be addedpublic void addProtocol(java.lang.String protocol)
protocol - a value to be removedpublic boolean removeProtocol(java.lang.String protocol)
protocol - a value to be removedpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object