uk.ac.starlink.vo
Class ColumnMeta

java.lang.Object
  extended by uk.ac.starlink.vo.ColumnMeta

public class ColumnMeta
extends Object

Represents column metadata from a TableSet document.

Since:
21 Jan 2011
Author:
Mark Taylor
See Also:
IVOA VODataService Recommendation

Constructor Summary
ColumnMeta()
           
 
Method Summary
 String getDataType()
           
 String getDescription()
           
 String[] getFlags()
           
 String getName()
           
 String getUcd()
           
 String getUnit()
           
 String getUtype()
           
 boolean hasFlag(String flagTxt)
          Convenience function to find out if a given flag value is present.
 boolean isIndexed()
          Indicates whether this column is declared indexed.
 boolean isNullable()
          Indicates whether this column is declared nullable.
 boolean isPrimary()
          Indicates whether this column is declared primary.
 String toString()
          Returns this column's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnMeta

public ColumnMeta()
Method Detail

getName

public String getName()

getDescription

public String getDescription()

getUnit

public String getUnit()

getUcd

public String getUcd()

getUtype

public String getUtype()

getDataType

public String getDataType()

getFlags

public String[] getFlags()

isIndexed

public boolean isIndexed()
Indicates whether this column is declared indexed.

Returns:
true iff one of the flag values is "indexed"

isPrimary

public boolean isPrimary()
Indicates whether this column is declared primary.

Returns:
true iff one of the flag values is "primary"

isNullable

public boolean isNullable()
Indicates whether this column is declared nullable.

Returns:
true iff one of the flag values is "nullable"

hasFlag

public boolean hasFlag(String flagTxt)
Convenience function to find out if a given flag value is present.

Parameters:
flagTxt - flag value to query
Returns:
true iff one of the flag values is equal to flagTxt

toString

public String toString()
Returns this column's name.

Overrides:
toString in class Object
Returns:
name


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.