public abstract class GvrsElementSpecification extends Object
The syntax for the application-defined element name must conform to the rules for the GVRS identifier:
Note: GVRS identifiers are intended to be consistent with naming conventions across a broad range of computer languages (including C/C++, Java, C#, and Python). So the allowable character set for identifiers is limited.
The limit to the length of an element name name is 32 characters.
Modifier and Type | Field and Description |
---|---|
static int |
GVRS_ELEMENT_MAX_IDENTIFIER_LENGTH |
Modifier and Type | Method and Description |
---|---|
protected void |
copyApplicationData(GvrsElementSpecification spec) |
String |
getDescription()
Gets the arbitrary description string.
|
String |
getLabel()
Gets the arbitrary label string.
|
String |
getName()
Gets the unique identifier (the "name") for this specification instance.
|
String |
getUnitOfMeasure()
Gets the arbitrary unit of measure string.
|
boolean |
isContinuous()
Indicates whether the data element can be treated as a continuous
function over a surface or behaves in a non-continuous (discrete-valued)
manner.
|
void |
setContinuous(boolean continuous)
Sets a value indicating whether the data element can be treated
as a continuous function over a surface.
|
void |
setDescription(String description)
Sets an arbitrary description string.
|
void |
setLabel(String label)
Sets an arbitrary unit of label string.
|
void |
setUnitOfMeasure(String unitOfMeasure)
Sets an arbitrary unit of measure string.
|
public static final int GVRS_ELEMENT_MAX_IDENTIFIER_LENGTH
public String getName()
public void setDescription(String description)
description
- a valid non-empty string, or a null if no description
is to be supplied.public String getDescription()
public void setUnitOfMeasure(String unitOfMeasure)
unitOfMeasure
- a valid non-empty string, or a null if no unit of
measure is to be specified.public String getUnitOfMeasure()
public void setLabel(String label)
label
- valid non-empty string, or null if no label
is to be specified.public String getLabel()
public boolean isContinuous()
This method is intended to allow data providers to indicate to users how the information stored in this file can be used. Continuous data is suitable for interpolation, slope and tangent analysis, and similar applications. Discontinuous data cannot be interpolated and does not support calculus-based computations.
public void setContinuous(boolean continuous)
continuous
- true if the data can be treated as continuous;
otherwise, false.protected void copyApplicationData(GvrsElementSpecification spec)
Copyright © 2022. All rights reserved.