public class CDBAttribute extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CDBAttribute.Format |
static class |
CDBAttribute.Type |
Modifier and Type | Field and Description |
---|---|
protected int |
code |
protected String |
description |
protected CDBAttribute.Format |
format |
protected String |
length |
protected String |
name |
protected PropertyInfo |
propertyInfo |
protected CDBRange |
range |
protected String |
symbol |
protected CDBAttribute.Type |
type |
protected CDBUnit |
unit |
Constructor and Description |
---|
CDBAttribute(PropertyInfo pi,
MapEntryParamInfos mapEntryParamInfos) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getDescription() |
CDBAttribute.Format |
getFormat() |
String |
getLength() |
String |
getName() |
CDBRange |
getRange() |
String |
getSymbol() |
CDBAttribute.Type |
getType() |
CDBUnit |
getUnit() |
boolean |
hasFormat() |
boolean |
hasLength() |
boolean |
hasRange() |
boolean |
hasUnit() |
PropertyInfo |
propertyInfo() |
void |
setCode(int code) |
void |
setType(CDBAttribute.Type type) |
void |
setUnit(CDBUnit unit) |
protected int code
protected String symbol
protected String name
protected String description
protected CDBAttribute.Type type
protected CDBAttribute.Format format
protected CDBRange range
protected String length
protected CDBUnit unit
protected PropertyInfo propertyInfo
public CDBAttribute(PropertyInfo pi, MapEntryParamInfos mapEntryParamInfos)
code
- symbol
- name
- description
- unit
- public int getCode()
public String getSymbol()
null
public String getName()
null
public String getDescription()
null
public CDBUnit getUnit()
null
public void setCode(int code)
code
- the code to setpublic void setUnit(CDBUnit unit)
unit
- the unit to setpublic CDBAttribute.Type getType()
null
public CDBAttribute.Format getFormat()
null
public CDBRange getRange()
null
public void setType(CDBAttribute.Type type)
type
- the type to setpublic PropertyInfo propertyInfo()
public boolean hasFormat()
true
if a specific format is defined for this
attribute, else false
public boolean hasRange()
true
if a specific range is defined for this
attribute, else false
public String getLength()
null
public boolean hasLength()
true
if a specific length is defined for this
attribute, else false
public boolean hasUnit()
true
if a specific unit is defined for this
attribute, else false
Copyright © 2018. All rights reserved.