public class JDLTokener extends Tokener
SPACE| Constructor and Description |
|---|
JDLTokener() |
| Modifier and Type | Method and Description |
|---|---|
BaseItem |
encode(java.lang.Object entity,
MapEntity map) |
TextEntity |
encodeAttribute(Attribute item)
Enocding Attribute
<field name> <type> [<validation>*]
|
TextEntity |
encodeEntity(Clazz item)
entity <entity name> {
<field name> <type> [<validation>*]
}
|
TextEntity |
encodeRelationship(Association assoc)
Encoding RelationShip
relationship (OneToMany | ManyToOne | OneToOne | ManyToMany) {
<from entity>[{<relationship name>[(<display field>)]}] to <to entity>[{<relationship name>[(<display field>)]}]
}
|
TextEntity |
encodeRelationshipClazz(Association assoc) |
array, checkValues, createLink, getByte, getChar, getCreator, getCreatorClass, getCurrentChar, getId, getKey, getMap, getObject, getString, getStringList, isChild, isEmpty, isEnd, isError, length, newInstance, newInstanceList, nextClean, nextString, nextString, nextToken, nextValue, notify, parseToEntity, parseToEntity, position, remaining, skip, skip, skipChar, skipTo, skipTo, splitStrings, transformValue, withBuffer, withBuffer, withLookAHead, withLookAHead, withMappublic TextEntity encodeEntity(Clazz item)
entity <entity name> {
<field name> <type> [<validation>*]
}
item - a Clazz for Transformpublic TextEntity encodeAttribute(Attribute item)
<field name> <type> [<validation>*]
item - The Attribute to Convertpublic TextEntity encodeRelationship(Association assoc)
relationship (OneToMany | ManyToOne | OneToOne | ManyToMany) {
<from entity>[{<relationship name>[(<display field>)]}] to <to entity>[{<relationship name>[(<display field>)]}]
}
assoc - a Associationpublic TextEntity encodeRelationshipClazz(Association assoc)