com.metsci.glimpse.charts.vector.parser.attributes
Class DNCAbstractAttribute

java.lang.Object
  extended by com.metsci.glimpse.charts.vector.parser.attributes.DNCAbstractAttribute
All Implemented Interfaces:
GeoAttribute
Direct Known Subclasses:
DNCFloatAttribute, DNCFreeAttribute, DNCIntAttribute

public abstract class DNCAbstractAttribute
extends java.lang.Object
implements GeoAttribute


Constructor Summary
DNCAbstractAttribute(DNCAttributeType attributeName, boolean isNull)
           
 
Method Summary
abstract  DNCAttributeClass getAttributeClass()
           
 DNCAttributeType getAttributeType()
           
abstract  java.lang.Object getAttributeValueAsObject()
           
abstract  java.lang.String getAttributeValueAsString()
           
 boolean isNullValued()
           
static DNCAbstractAttribute read(java.io.DataInput fin)
           
 java.lang.String toString()
           
 void write(java.io.DataOutputStream fout)
          Writes the attribute to the given stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DNCAbstractAttribute

public DNCAbstractAttribute(DNCAttributeType attributeName,
                            boolean isNull)
Method Detail

getAttributeClass

public abstract DNCAttributeClass getAttributeClass()

getAttributeValueAsString

public abstract java.lang.String getAttributeValueAsString()
Specified by:
getAttributeValueAsString in interface GeoAttribute

getAttributeValueAsObject

public abstract java.lang.Object getAttributeValueAsObject()
Specified by:
getAttributeValueAsObject in interface GeoAttribute

getAttributeType

public DNCAttributeType getAttributeType()

isNullValued

public boolean isNullValued()
Specified by:
isNullValued in interface GeoAttribute

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

write

public final void write(java.io.DataOutputStream fout)
                 throws java.io.IOException
Writes the attribute to the given stream. Derived classes need to provide an write0 method implementation to write their part of the data out to the stream.

Parameters:
fout -
Throws:
java.io.IOException

read

public static DNCAbstractAttribute read(java.io.DataInput fin)
                                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 Metron, Inc.. All Rights Reserved.