|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.typedef.TypeDef | +--step.typedef.RecordDef
The definition of a STEP record type.
StepRecord
Nested Class Summary | |
static class |
RecordDef.Builder
Create record definitions with the Builder pattern. |
Constructor Summary | |
RecordDef(String name,
Package pkg)
|
Method Summary | |
static RecordDef.Builder |
builder()
Get the builder object for creating new record definitions. |
Object |
clone()
Get a copy (clone) of this definition. |
List |
getAttributes()
Get the record attributes for this definition. |
String |
getDescription()
Get the description for this record definition. |
RecordFactory |
getFactory()
Get the factory for this record definition. |
String |
getLabel()
Get the label for this record definition. |
static RecordDef |
load(Type recordType)
Attempt to load the definition for the given record name. |
protected void |
setAttributes(List attributes)
|
protected void |
setDescription(String description)
Set the description for this record definition. |
protected void |
setFactory(RecordFactory factory)
|
protected void |
setLabel(String label)
Set the label for this record definition. |
String |
toStepDL()
Get a compact string version of this definition as STEP-DL. |
Methods inherited from class step.typedef.TypeDef |
applyModifiers, dump, getDefault, getDefault, getDefault, getField, getFields, getFullName, getModifiers, getName, getPackage, getType, isDefined, isDefined, isDefined, isResolved, isTypeResolved, merge, resolve, resolveType, setAsDefault, setFields, setModifiers |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RecordDef(String name, Package pkg)
Method Detail |
public String getLabel()
protected void setLabel(String label)
public String getDescription()
protected void setDescription(String description)
public List getAttributes()
protected void setAttributes(List attributes)
public RecordFactory getFactory()
null
if no factory is defined.protected void setFactory(RecordFactory factory)
public Object clone()
TypeDef
clone
in class TypeDef
public String toStepDL()
toStepDL
in interface StepDef
public static RecordDef load(Type recordType)
NOTE: It is assumed that the record type provides its definition in a
DEFINITION
static field.
RecordDefNotFoundException
- if the named type could not be loaded.public static RecordDef.Builder builder()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |