|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpersistence.PDLParser
Parser van persistentClass-tags uit persistentiebestand naar TableComponent-structuur.
Nested Class Summary | |
private class |
PDLParser.ContentTagList
Contains queue of Maps which contains mappings: array -> Integer (default 0, dus geen array) compType -> String (verplicht ! |
Field Summary | |
private boolean |
addArrayString
|
private static java.util.Collection |
allClassesToPersist
|
private java.lang.String |
attributeName
|
private TableComponent |
currentRoot
|
private java.lang.String |
fullPrincipalClassName
|
private java.lang.String |
getMethodName
|
private org.w3c.dom.Node |
involvedNode
|
private java.lang.String |
isAccessor
|
private int |
maxSizeTableName
|
private java.lang.String |
setMethodName
|
Constructor Summary | |
PDLParser(org.w3c.dom.Node involvedNode,
java.lang.String fullPrincipalClassName)
|
Method Summary | |
private void |
canonizeTableComponentNames(TableComponent parent)
Embeds all table names belonging to parent tree between "$"s and creates aliases. |
private java.lang.String |
constructTableName(java.lang.String currentClassName,
java.lang.String table,
int major,
int minor)
Constructs table name by checking first for given alternative (table), otherwise making up a table name. |
private java.util.List |
filterWhiteSpaceNodes(org.w3c.dom.NodeList children)
Filters empty #text-nodes out of NodeList |
private java.util.Collection |
getFKeys(TableComponent parent)
Get Collection of FK-(Reference)Attributes for children of parent. |
private void |
getTables(TableComponent parent,
java.util.Map contentTag)
Add a KEY-field to a MapTable and add compType(Key)-properties to parent. |
private void |
getTables(TableComponent parent,
PDLParser.ContentTagList contentTagList,
boolean childOfRoot)
Bouw TableComponent-tree op. |
private void |
initChildOfRoot(boolean childOfRoot,
TableComponent attr)
|
static boolean |
isToPersist(java.lang.String fullClassName)
Checks whether fullClassName has to be persisted. |
TableComponent |
parse()
Recursive depth-first creation of TableComponent-treecomponents of currentRoot. |
static void |
setAllClassesToPersist(java.util.Collection collection)
Collection contains all classes which will have to be persisted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.w3c.dom.Node involvedNode
private java.lang.String fullPrincipalClassName
private TableComponent currentRoot
private static java.util.Collection allClassesToPersist
private java.lang.String setMethodName
private java.lang.String getMethodName
private java.lang.String attributeName
private java.lang.String isAccessor
private boolean addArrayString
private final int maxSizeTableName
Constructor Detail |
public PDLParser(org.w3c.dom.Node involvedNode, java.lang.String fullPrincipalClassName)
Method Detail |
public TableComponent parse() throws CompTypeRequiredException, MissingContentTagException
CompTypeRequiredException
MissingContentTagException
private void canonizeTableComponentNames(TableComponent parent)
parent
- private java.lang.String constructTableName(java.lang.String currentClassName, java.lang.String table, int major, int minor)
currentClassName
- table
- without major/minor pversionmajor
- minor
-
private java.util.List filterWhiteSpaceNodes(org.w3c.dom.NodeList children)
children
-
private void getTables(TableComponent parent, PDLParser.ContentTagList contentTagList, boolean childOfRoot) throws MissingContentTagException
parent
- contentTagList
-
MissingContentTagException
private java.util.Collection getFKeys(TableComponent parent)
parent
-
private void initChildOfRoot(boolean childOfRoot, TableComponent attr)
private void getTables(TableComponent parent, java.util.Map contentTag)
parent
- contentTag
-
MissingContentTagException
public static void setAllClassesToPersist(java.util.Collection collection)
collection
- public static boolean isToPersist(java.lang.String fullClassName)
fullClassName
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |