-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Zimmermann
committed
Jul 30, 2008
1 parent
aa1d678
commit 7d487a8
Showing
45 changed files
with
798 additions
and
1,784 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...va/exceptions/CarindinalityException.java → ...zi/exceptions/CarindinalityException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lum/owl4java/exceptions/O4JException.java → ...bulum/jakuzi/exceptions/O4JException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/java/de/incunabulum/jakuzi/generator/JModelPreparation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package de.incunabulum.jakuzi.generator; | ||
|
||
import org.apache.commons.logging.Log; | ||
import org.apache.commons.logging.LogFactory; | ||
|
||
import de.incunabulum.jakuzi.jmodel.JModel; | ||
|
||
public class JModelPreparation { | ||
|
||
private static Log log = LogFactory.getLog(JModelPreparation.class); | ||
|
||
private boolean reasignDomainlessProperties; | ||
private JModel jmodel; | ||
|
||
public JModel prepareModel(JModel model) { | ||
this.jmodel = model; | ||
log.info("Prepaing model for class writer"); | ||
|
||
// assign properties without domain to restrictions | ||
if (reasignDomainlessProperties) | ||
reasignProperties(); | ||
|
||
// add all parent properties to a class | ||
aggregateProperties(); | ||
|
||
// dito for the restrictions | ||
aggregateRestrictions(); | ||
|
||
// remove duplicate restrictions; cleanup | ||
cleanupRestrictions(); | ||
|
||
return this.jmodel; | ||
} | ||
|
||
protected void reasignProperties() { | ||
|
||
} | ||
|
||
protected void aggregateProperties() { | ||
|
||
} | ||
|
||
protected void aggregateRestrictions() { | ||
|
||
} | ||
|
||
protected void cleanupRestrictions() { | ||
|
||
} | ||
|
||
|
||
|
||
public void setReasignDomainlessProperties(boolean reasignDomainlessProperties) { | ||
this.reasignDomainlessProperties = reasignDomainlessProperties; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.