public class Column extends PropertyHolder
Table.
Columns have qualified names, qualified kinds (categorical/role-based description), a data type, and zero and more properties.
| Constructor and Description |
|---|
Column(QName name)
Creates an instance with a given name.
|
Column(QName name,
Class<?> type)
Creates an instance with a given name and a given type.
|
Column(QName name,
QName kind)
Creates an instance with a given name and a given kind.
|
Column(QName name,
QName kind,
Class<?> type)
Creates an instance with a given name, kind, and type.
|
Column(String name)
Creates an instance with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
QName |
getKind()
Returns the kind of this column (
null by default). |
int |
hashCode() |
QName |
name()
Returns the name of this column.
|
static QName |
q(String string)
|
void |
setKind(QName kind)
Sets the kind of this column (
null by default) |
void |
setType(Class<?> type)
Sets the type of this column, overriding the default (
String by default) |
String |
toString() |
Class<?> |
type()
Returns the type of this column (
String by default) |
properties, propertiespublic Column(QName name)
name - the name.public Column(String name)
name - the name.public Column(QName name, Class<?> type)
name - the nametype - the typepublic Column(QName name, QName kind)
name - kind - public QName name()
public QName getKind()
null by default).public void setKind(QName kind)
null by default)kind - the kindpublic void setType(Class<?> type)
String by default)type - the typepublic int hashCode()
hashCode in class PropertyHolderpublic boolean equals(Object obj)
equals in class PropertyHolderCopyright © 2018. All rights reserved.