public static class ServiceDefinition.Data extends java.lang.Object implements Typed, org.da.protoframework.model.def.DescriptedElement
| Constructor and Description |
|---|
Data(ServiceDefinition service,
java.lang.String name)
Constructor.
|
Data(ServiceDefinition service,
java.lang.String name,
java.lang.String topic)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
short |
getDataChangeBehavior() |
java.lang.String |
getDescription()
Return the description of the data.
|
java.lang.String |
getName()
Return the data name.
|
ServiceDefinition |
getService()
Return the service.
|
java.lang.String |
getTopic()
Return the Data topic if the Data is associated with a Topic.
|
Type |
getType()
Return the data type.
|
boolean |
hasDescription()
Return true if the data has a description.
|
int |
hashCode() |
boolean |
isContinuous()
Return true if the data represents a continuous quantity.
|
boolean |
isNumeric()
Return true if the data type is numeric.
|
void |
setContinuousType(char continuousType)
Set if the data represents a continuous quantity.
|
void |
setDescription(java.lang.String desc)
Set the description of the data.
|
void |
setName(java.lang.String name)
Set the name of the data.
|
void |
setType(Type type)
Set the data type.
|
public Data(ServiceDefinition service, java.lang.String name, java.lang.String topic)
service - the Servicename - the data nametopic - the data topicpublic Data(ServiceDefinition service, java.lang.String name)
service - the Servicename - the data namepublic ServiceDefinition getService()
public short getDataChangeBehavior()
public void setDescription(java.lang.String desc)
setDescription in interface org.da.protoframework.model.def.DescriptedElementdesc - the descriptionpublic java.lang.String getDescription()
getDescription in interface org.da.protoframework.model.def.DescriptedElementpublic boolean hasDescription()
hasDescription in interface org.da.protoframework.model.def.DescriptedElementpublic java.lang.String getTopic()
public void setName(java.lang.String name)
name - the namepublic java.lang.String getName()
public boolean isNumeric()
public void setContinuousType(char continuousType)
ContinuousTypes.CONTINUOUS property
has only a meaning for numeric values.continuousType - the continuous typeContinuousTypespublic boolean isContinuous()
public void setType(Type type)
public Type getType()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence