[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-cvs
Subject: [Jibx-cvs] core/build/src/org/jibx/schema/codegen CodeGen.java, 1.56,
From: Dennis Sosnoski <dsosnoski () users ! sourceforge ! net>
Date: 2010-08-07 4:21:04
Message-ID: E1Ohau8-0002yV-TC () sfp-cvsdas-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Update of /cvsroot/jibx/core/build/src/org/jibx/schema/codegen
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv11347/build/src/org/jibx/schema/codegen
Modified Files:
CodeGen.java
Log Message:
Add getRootBinding() method and support code.
Index: CodeGen.java
===================================================================
RCS file: /cvsroot/jibx/core/build/src/org/jibx/schema/codegen/CodeGen.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** CodeGen.java 30 Jul 2010 06:09:16 -0000 1.56
--- CodeGen.java 7 Aug 2010 04:21:02 -0000 1.57
***************
*** 168,171 ****
--- 168,174 ----
private BindingOrganizer m_bindingDirectory;
+ /** Root binding definition holder (set by {@link #writeBindings(String, \
String, List, ProblemHandler)}). */ + private BindingHolder m_rootHolder;
+
/**
* Constructor.
***************
*** 1606,1613 ****
}
}
! BindingHolder root = m_bindingDirectory.configureFiles(name, pack, \
pregens); IClassLocator iloc = new DummyClassLocator();
org.jibx.binding.model.ValidationContext vctx = new \
org.jibx.binding.model.ValidationContext(iloc);
! if (m_bindingDirectory.validateBindings(root, m_targetDir, vctx)) {
m_bindingDirectory.writeBindings(m_targetDir);
} else {
--- 1609,1616 ----
}
}
! m_rootHolder = m_bindingDirectory.configureFiles(name, pack, pregens);
IClassLocator iloc = new DummyClassLocator();
org.jibx.binding.model.ValidationContext vctx = new \
org.jibx.binding.model.ValidationContext(iloc);
! if (m_bindingDirectory.validateBindings(m_rootHolder, m_targetDir, vctx)) {
m_bindingDirectory.writeBindings(m_targetDir);
} else {
***************
*** 1618,1621 ****
--- 1621,1634 ----
/**
+ * Get the root binding definition. This is only allowed after the call to
+ * {@link #writeBindings(String, String, List, ProblemHandler)}.
+ *
+ * @return root binding element
+ */
+ public BindingElement getRootBinding() {
+ return m_rootHolder.getBinding();
+ }
+
+ /**
* Add the schemas specified by customizations to the set to be loaded.
*
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Jibx-cvs mailing list
Jibx-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic