visad
Class TextType
- java.lang.Object
-
- visad.MathType
-
- visad.ScalarType
-
- visad.TextType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class TextType extends ScalarType
TextType is the VisAD scalar data type for text string variables.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description TextType(java.lang.String name)name of type (two TextTypes are equal if their names are equal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description MathTypebinary(MathType type, int op, java.util.Vector names)ShadowTypebuildShadowType(DataDisplayLink link, ShadowType parent)MathTypecloneDerivative(RealType d_partial)booleanequals(java.lang.Object type)Indicates if this ScalarType is the same as another object.booleanequalsExceptName(MathType type)this is useful for determining compatibility of Data objects for binary mathematical operations; any RealTypes are equal; any TextTypes are equal; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equalbooleanequalsExceptNameButUnits(MathType type)static TextTypegetTextType(java.lang.String name)create a new TextType, or return it if it already existsstatic TextTypegetTextTypeByName(java.lang.String name)return any TextType constructed in this JVM with name, or nullDatamissingData()returns a missing Data object for any MathTypejava.lang.StringprettyString(int indent)MathTypeunary(int op, java.util.Vector names)-
Methods inherited from class visad.ScalarType
alias, compareTo, getAlias, getName, getNameWithBlanks, getOriginalName, getScalarTypeByName, hashCode, validateName
-
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString
-
-
-
-
Field Detail
-
Generic
public static final TextType Generic
-
-
Constructor Detail
-
TextType
public TextType(java.lang.String name) throws VisADExceptionname of type (two TextTypes are equal if their names are equal)- Throws:
VisADException
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object type)
Description copied from class:ScalarTypeIndicates if this ScalarType is the same as another object.- Overrides:
equalsin classScalarType- Parameters:
type- The other object.- Returns:
trueif and only if the other object is a ScalarType and compares equal to this ScalarType.
-
equalsExceptName
public boolean equalsExceptName(MathType type)
Description copied from class:MathTypethis is useful for determining compatibility of Data objects for binary mathematical operations; any RealTypes are equal; any TextTypes are equal; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equal- Specified by:
equalsExceptNamein classMathType
-
equalsExceptNameButUnits
public boolean equalsExceptNameButUnits(MathType type) throws VisADException
- Specified by:
equalsExceptNameButUnitsin classMathType- Throws:
VisADException
-
cloneDerivative
public MathType cloneDerivative(RealType d_partial) throws VisADException
- Specified by:
cloneDerivativein classMathType- Throws:
VisADException
-
binary
public MathType binary(MathType type, int op, java.util.Vector names) throws VisADException
- Specified by:
binaryin classMathType- Throws:
VisADException
-
unary
public MathType unary(int op, java.util.Vector names) throws VisADException
- Specified by:
unaryin classMathType- Throws:
VisADException
-
getTextType
public static TextType getTextType(java.lang.String name)
create a new TextType, or return it if it already exists
-
getTextTypeByName
public static TextType getTextTypeByName(java.lang.String name)
return any TextType constructed in this JVM with name, or null
-
prettyString
public java.lang.String prettyString(int indent)
- Specified by:
prettyStringin classMathType
-
missingData
public Data missingData() throws VisADException
Description copied from class:MathTypereturns a missing Data object for any MathType- Specified by:
missingDatain classMathType- Throws:
VisADException
-
buildShadowType
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
- Specified by:
buildShadowTypein classMathType- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG