Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10892/src/org/tm4j/topicmap/tmdm/tm4j1
Modified Files:
OccurrenceImpl.java
Log Message:
More work on OccurenceImpl.java
Index: OccurrenceImpl.java
===================================================================
RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1/OccurrenceImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** OccurrenceImpl.java 23 Jan 2008 19:01:22 -0000 1.1
--- OccurrenceImpl.java 23 Jan 2008 19:37:14 -0000 1.2
***************
*** 75,79 ****
public Locator getDataLocator() {
if (!isDataInline()) {
! return TM4J1Utils.iriToLocator(getRepresentedObject().getValue(),getContainer().getLocatorFactory());
} else {
return null;
--- 75,83 ----
public Locator getDataLocator() {
if (!isDataInline()) {
! try {
! return TM4J1Utils.iriToLocator(getRepresentedObject().getValue(),getContainer().getLocatorFactory());
! } catch (LocatorFactoryException e) {
! throw new RuntimeException("This should never happen.",e);
! }
} else {
return null;
***************
*** 113,116 ****
--- 117,124 ----
}
+ protected static Locator createLocator(String iri,TopicMapObjectImpl tmo) throws LocatorFactoryException {
+ return tmo.getContainer().getLocatorFactory().createLocator("URI",iri);
+ }
+
/**
* Gets the resource data string associated with this occurrence. This function returns
|