Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi, > Do you know if there is a way to determine whether a Data object of type > Scalar is a "Real" object or a "Text" object? It looks like > DataImpl.getType() (and Data.getType()) returns a MathType but MathType.java > does not have record whether it is a ScalarType and then if it is, whether > it is a RealType or TextType. You can do 'if (object instanceof Real) ...' or 'if (object instanceof Text) ...'. Or with the MathTypes use 'if (object instanceof RealType) ...' or 'if (object instanceof TextType) ...'. This is really an elementary programming question. You should try harder to answer such questions for yourself. Good luck, Bill
visad
archives: