Package mil.nga.geopackage.attributes
Class AttributesTable
- java.lang.Object
-
- mil.nga.geopackage.user.UserTable<AttributesColumn>
-
- mil.nga.geopackage.attributes.AttributesTable
-
- Direct Known Subclasses:
StyleTable
public class AttributesTable extends UserTable<AttributesColumn>
Represents a user attributes table- Since:
- 1.2.1
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserTable
DEFAULT_AUTOINCREMENT, DEFAULT_PK_NOT_NULL
-
-
Constructor Summary
Constructors Constructor Description AttributesTable(String tableName, List<AttributesColumn> columns)
ConstructorAttributesTable(AttributesTable attributesTable)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesTable
copy()
Copy the tableAttributesColumns
createUserColumns(List<AttributesColumn> columns)
Create user columns for a subset of table columnsString
getDataType()
Get the contents data typeAttributesColumns
getUserColumns()
Get the user columnsprotected void
validateContents(Contents contents)
Validate that the set contents are valid-
Methods inherited from class mil.nga.geopackage.user.UserTable
addColumn, addConstraint, addConstraints, addConstraints, alterColumn, clearConstraints, clearConstraints, columnCount, columnsOfType, createUserColumns, dropColumn, dropColumn, dropColumn, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getColumns, getColumns, getConstraints, getConstraints, getContents, getDataType, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasConstraints, hasConstraints, hasPkColumn, hasSchema, isPkModifiable, isValueValidation, renameColumn, renameColumn, renameColumn, setContents, setPkModifiable, setTableName, setValueValidation
-
-
-
-
Constructor Detail
-
AttributesTable
public AttributesTable(String tableName, List<AttributesColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- attributes columns
-
AttributesTable
public AttributesTable(AttributesTable attributesTable)
Copy Constructor- Parameters:
attributesTable
- attributes table- Since:
- 3.3.0
-
-
Method Detail
-
copy
public AttributesTable copy()
Copy the table- Specified by:
copy
in classUserTable<AttributesColumn>
- Returns:
- copied table
-
getDataType
public String getDataType()
Get the contents data type- Specified by:
getDataType
in classUserTable<AttributesColumn>
- Returns:
- data type
-
getUserColumns
public AttributesColumns getUserColumns()
Get the user columns- Overrides:
getUserColumns
in classUserTable<AttributesColumn>
- Returns:
- user columns
-
createUserColumns
public AttributesColumns createUserColumns(List<AttributesColumn> columns)
Create user columns for a subset of table columns- Specified by:
createUserColumns
in classUserTable<AttributesColumn>
- Parameters:
columns
- columns- Returns:
- user columns
-
validateContents
protected void validateContents(Contents contents)
Validate that the set contents are valid- Overrides:
validateContents
in classUserTable<AttributesColumn>
- Parameters:
contents
- contents
-
-