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

java.lang.Object
  extended by com.metsci.glimpse.charts.vector.parser.attributes.ENCAbstractAttribute
All Implemented Interfaces:
GeoAttribute
Direct Known Subclasses:
ENCCodedAttribute, ENCEnumAttribute, ENCFloatAttribute, ENCFreeAttribute, ENCIntAttribute, ENCListAttribute

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


Constructor Summary
ENCAbstractAttribute()
           
 
Method Summary
abstract  ENCAttributeClass getAttributeClass()
           
 ENCAttributeType getAttributeType()
           
abstract  java.lang.Object getAttributeValueAsObject()
           
abstract  java.lang.String getAttributeValueAsString()
           
 AttributeDescription getDescription()
           
 boolean isNullValued()
           
static ENCAbstractAttribute read(java.io.DataInput fin)
           
 void setAttributeType(ENCAttributeType type)
           
 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

ENCAbstractAttribute

public ENCAbstractAttribute()
Method Detail

getAttributeClass

public abstract ENCAttributeClass getAttributeClass()

getAttributeValueAsObject

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

getAttributeValueAsString

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

getAttributeType

public ENCAttributeType getAttributeType()

setAttributeType

public void setAttributeType(ENCAttributeType type)

isNullValued

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

toString

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

getDescription

public AttributeDescription getDescription()

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 ENCAbstractAttribute read(java.io.DataInput fin)
                                 throws java.io.IOException
Throws:
java.io.IOException


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