public class LinkColMap extends Object
The usual way to obtain an instance of this class is using the
static getMap
method.
Modifier and Type | Class and Description |
---|---|
static class |
LinkColMap.ColDef<C>
Utility class that encapsulates the characteristics of a given
column from the DataLink standard.
|
Modifier and Type | Field and Description |
---|---|
static LinkColMap.ColDef<String> |
COL_ACCESSURL
access_url column definition.
|
static LinkColMap.ColDef<Number> |
COL_CONTENTLENGTH
content_length column definition.
|
static LinkColMap.ColDef<String> |
COL_CONTENTQUALIFIER
content_qualifier column definition.
|
static LinkColMap.ColDef<String> |
COL_CONTENTTYPE
content_type column definition.
|
static LinkColMap.ColDef<String> |
COL_DESCRIPTION
description column definition.
|
static LinkColMap.ColDef<String> |
COL_ERRORMESSAGE
error_message column definition.
|
static LinkColMap.ColDef<String> |
COL_ID
ID column definition.
|
static LinkColMap.ColDef<String> |
COL_LINKAUTH
link_auth column definition.
|
static LinkColMap.ColDef<Boolean> |
COL_LINKAUTHORIZED
link_authorized column definition.
|
static LinkColMap.ColDef<Object> |
COL_LOCALSEMANTICS
local_semantics column definition.
|
static LinkColMap.ColDef<String> |
COL_SEMANTICS
semantics column definition.
|
static LinkColMap.ColDef<String> |
COL_SERVICEDEF
service_def column definition.
|
static Map<String,LinkColMap.ColDef<?>> |
COLDEF_MAP
Map by column name of all columns required in a DataLink table.
|
Modifier | Constructor and Description |
---|---|
protected |
LinkColMap(Map<LinkColMap.ColDef<?>,Integer> icolMap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessUrl(Object[] row)
Returns the value of the DataLink access_url column in a given row.
|
Long |
getContentLength(Object[] row)
Returns the value of the DataLink content_length column in a given row.
|
String |
getContentQualifier(Object[] row)
Returns the value of the DataLink content_qualifier column
in a given row.
|
String |
getContentType(Object[] row)
Returns the value of the DataLink content_type column in a given row.
|
String |
getDescription(Object[] row)
Returns the value of the DataLink description column in a given row.
|
String |
getErrorMessage(Object[] row)
Returns the value of the DataLink error_message column in a given row.
|
String |
getId(Object[] row)
Returns the value of the DataLink id column in a given row.
|
String |
getLinkAuth(Object[] row)
Returns the value of the DataLink content_auth column
in a given row.
|
Boolean |
getLinkAuthorized(Object[] row)
Returns the declared authorization status for a given row.
|
Object |
getLocalSemantics(Object[] row)
Returns the local semantics value for a given row.
|
static LinkColMap |
getMap(StarTable table)
Constructs a LinkColMap that knows where the DataLink columns are
in a supplied table.
|
String |
getSemantics(Object[] row)
Returns the value of the DataLink semantics column in a given row.
|
String |
getServiceDef(Object[] row)
Returns the value of the DataLink service_def column in a given row.
|
<C> C |
getValue(LinkColMap.ColDef<C> col,
Object[] row)
Returns the typed corresponding to a given column definition
in a given row.
|
public static final LinkColMap.ColDef<String> COL_ID
public static final LinkColMap.ColDef<String> COL_ACCESSURL
public static final LinkColMap.ColDef<String> COL_SERVICEDEF
public static final LinkColMap.ColDef<String> COL_ERRORMESSAGE
public static final LinkColMap.ColDef<String> COL_DESCRIPTION
public static final LinkColMap.ColDef<String> COL_SEMANTICS
public static final LinkColMap.ColDef<String> COL_CONTENTTYPE
public static final LinkColMap.ColDef<Number> COL_CONTENTLENGTH
public static final LinkColMap.ColDef<String> COL_CONTENTQUALIFIER
public static final LinkColMap.ColDef<Object> COL_LOCALSEMANTICS
public static final LinkColMap.ColDef<String> COL_LINKAUTH
public static final LinkColMap.ColDef<Boolean> COL_LINKAUTHORIZED
public static final Map<String,LinkColMap.ColDef<?>> COLDEF_MAP
protected LinkColMap(Map<LinkColMap.ColDef<?>,Integer> icolMap)
icolMap
- map from column definition to column index,
providing the state of this objectpublic String getId(Object[] row)
row
- row from the table for which this map was preparedid
columnpublic String getAccessUrl(Object[] row)
row
- row from the table for which this map was preparedaccess_url
columnpublic String getServiceDef(Object[] row)
row
- row from the table for which this map was preparedservice_def
columnpublic String getErrorMessage(Object[] row)
row
- row from the table for which this map was preparederror_message
columnpublic String getDescription(Object[] row)
row
- row from the table for which this map was prepareddescription
columnpublic String getSemantics(Object[] row)
row
- row from the table for which this map was preparedsemantics
columnpublic String getContentType(Object[] row)
row
- row from the table for which this map was preparedcontent_type
columnpublic Long getContentLength(Object[] row)
row
- row from the table for which this map was preparedcontent_length
column,
may be nullpublic String getContentQualifier(Object[] row)
row
- row from the table for which this map was preparedcontent_qualifier
columnpublic Object getLocalSemantics(Object[] row)
row
- row from the table for which this map was preparedlocal_semantics
column, may be nullpublic String getLinkAuth(Object[] row)
false
", "optional
", "true
"
or null.row
- row from the table for which this map was preparedcontent_auth
columnpublic Boolean getLinkAuthorized(Object[] row)
row
- row from the table for which this map was preparedlink_authorized
column, may be nullpublic <C> C getValue(LinkColMap.ColDef<C> col, Object[] row)
col
- column value extractor objectrow
- row from the table for which this map was preparedcol
public static LinkColMap getMap(StarTable table)
table
- table (assumed DataLink) to interpretCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.