public class DFServiceDescription extends java.lang.Object implements IDFServiceDescription, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List |
languages
Attribute for slot languages.
|
protected java.lang.String |
name
Attribute for slot name.
|
protected java.util.List |
ontologies
Attribute for slot ontologies.
|
protected java.lang.String |
ownership
Attribute for slot ownership.
|
protected java.util.List |
properties
Attribute for slot properties.
|
protected java.util.List |
protocols
Attribute for slot protocols.
|
protected java.lang.String |
type
Attribute for slot type.
|
| Constructor and Description |
|---|
DFServiceDescription()
Create a new service description.
|
DFServiceDescription(java.lang.String name,
java.lang.String type,
java.lang.String ownership)
Create a new service description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLanguage(java.lang.String language)
Add a language to this ServiceDescription.
|
void |
addOntology(java.lang.String ontology)
Add a ontology to this ServiceDescription.
|
void |
addProperty(IProperty property)
Add a property to this ServiceDescription.
|
void |
addProtocol(java.lang.String protocol)
Add a protocol to this ServiceDescription.
|
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 ServiceDescription.
|
java.lang.String[] |
getLanguages()
Get the languages of this ServiceDescription.
|
java.lang.String |
getName()
Get the name of this ServiceDescription.
|
java.lang.String[] |
getOntologies()
Get the ontologies of this ServiceDescription.
|
java.lang.String |
getOntology(int idx)
Get an ontologies of this ServiceDescription.
|
java.lang.String |
getOwnership()
Get the ownership of this ServiceDescription.
|
IProperty[] |
getProperties()
Get the properties of this ServiceDescription.
|
IProperty |
getProperty(int idx)
Get an properties of this ServiceDescription.
|
java.lang.String |
getProtocol(int idx)
Get an protocols of this ServiceDescription.
|
java.lang.String[] |
getProtocols()
Get the protocols of this ServiceDescription.
|
java.lang.String |
getType()
Get the type of this ServiceDescription.
|
int |
hashCode() |
boolean |
removeLanguage(java.lang.String language)
Remove a language from this ServiceDescription.
|
boolean |
removeOntology(java.lang.String ontology)
Remove a ontology from this ServiceDescription.
|
boolean |
removeProperty(IProperty property)
Remove a property from this ServiceDescription.
|
boolean |
removeProtocol(java.lang.String protocol)
Remove a protocol from this ServiceDescription.
|
void |
setLanguage(int idx,
java.lang.String language)
Set a language to this ServiceDescription.
|
void |
setLanguages(java.lang.String[] languages)
Set the languages of this ServiceDescription.
|
void |
setName(java.lang.String name)
Set the name of this ServiceDescription.
|
void |
setOntologies(java.lang.String[] ontologies)
Set the ontologies of this ServiceDescription.
|
void |
setOntology(int idx,
java.lang.String ontology)
Set a ontology to this ServiceDescription.
|
void |
setOwnership(java.lang.String ownership)
Set the ownership of this ServiceDescription.
|
void |
setProperties(IProperty[] properties)
Set the properties of this ServiceDescription.
|
void |
setProperty(int idx,
IProperty property)
Set a property to this ServiceDescription.
|
void |
setProtocol(int idx,
java.lang.String protocol)
Set a protocol to this ServiceDescription.
|
void |
setProtocols(java.lang.String[] protocols)
Set the protocols of this ServiceDescription.
|
void |
setType(java.lang.String type)
Set the type of this ServiceDescription.
|
protected java.util.List languages
protected java.lang.String type
protected java.util.List properties
protected java.lang.String name
protected java.util.List ontologies
protected java.lang.String ownership
protected java.util.List protocols
public DFServiceDescription()
public DFServiceDescription(java.lang.String name,
java.lang.String type,
java.lang.String ownership)
name - The name.type - The type expression.ownership - The ownership.public 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.String[] getLanguages()
getLanguages in interface IDFServiceDescriptionpublic 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 java.lang.String getType()
getType in interface IDFServiceDescriptionpublic void setType(java.lang.String type)
type - the value to be setpublic IProperty[] getProperties()
getProperties in interface IDFServiceDescriptionpublic void setProperties(IProperty[] properties)
properties - the value to be setpublic IProperty getProperty(int idx)
idx - The index.public void setProperty(int idx,
IProperty property)
idx - The index.property - a value to be addedpublic void addProperty(IProperty property)
property - a value to be removedpublic boolean removeProperty(IProperty property)
property - a value to be removedpublic java.lang.String getName()
getName in interface IDFServiceDescriptionpublic void setName(java.lang.String name)
name - the value to be setpublic java.lang.String[] getOntologies()
getOntologies in interface IDFServiceDescriptionpublic 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 java.lang.String getOwnership()
getOwnership in interface IDFServiceDescriptionpublic void setOwnership(java.lang.String ownership)
ownership - the value to be setpublic java.lang.String[] getProtocols()
getProtocols in interface IDFServiceDescriptionpublic 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 java.lang.Object clone()
clone in class java.lang.Object