Revision: 14491
http://gate.svn.sourceforge.net/gate/?rev=14491&view=rev
Author: nirajaswani
Date: 2011-11-03 21:36:15 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
calling toXml() calls toXmlAsASingleDocument(this) method if the
currentDocument is set to null
Modified Paths:
--------------
gate/trunk/plugins/Alignment/src/gate/compound/impl/AbstractCompoundDocument.java
Modified:
gate/trunk/plugins/Alignment/src/gate/compound/impl/AbstractCompoundDocument.java
===================================================================
---
gate/trunk/plugins/Alignment/src/gate/compound/impl/AbstractCompoundDocument.java
2011-11-03 21:25:37 UTC (rev 14490)
+++
gate/trunk/plugins/Alignment/src/gate/compound/impl/AbstractCompoundDocument.java
2011-11-03 21:36:15 UTC (rev 14491)
@@ -311,7 +311,7 @@
*/
public DocumentContent getContent() {
if(currentDocument == null) {
- return new DocumentContentImpl("");
+ throw new GateRuntimeException(CURR_DOC_NOT_SET_MSG);
}
else {
return currentDocument.getContent();
@@ -459,7 +459,7 @@
*/
public String toXml() {
if(currentDocument == null) {
- throw new GateRuntimeException(CURR_DOC_NOT_SET_MSG);
+ return toXmlAsASingleDocument(this);
}
else {
return currentDocument.toXml();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs