Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14343/src/org/tm4j/topicmap/tmdm/tm4j1
Modified Files:
OccurrenceImpl.java
Log Message:
Use shortcut OccurenceImpl.createLocator()
Index: OccurrenceImpl.java
===================================================================
RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1/OccurrenceImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** OccurrenceImpl.java 23 Jan 2008 19:37:14 -0000 1.2
--- OccurrenceImpl.java 23 Jan 2008 19:45:06 -0000 1.3
***************
*** 95,99 ****
public void setDataLocator(Locator loc) throws PropertyVetoException {
try {
! getRepresentedObject().setDatatypeAndValue(getContainer().getLocatorFactory().createLocator("URI",PSI.XMLSchema.IRI),TM4J1Utils.locatorToIRI(loc));
} catch (LocatorFactoryException e) {
throw new RuntimeException("This should never happen.",e);
--- 95,99 ----
public void setDataLocator(Locator loc) throws PropertyVetoException {
try {
! getRepresentedObject().setDatatypeAndValue(createLocator(PSI.XMLSchema.IRI,this),TM4J1Utils.locatorToIRI(loc));
} catch (LocatorFactoryException e) {
throw new RuntimeException("This should never happen.",e);
***************
*** 111,115 ****
public void setData(String data) throws PropertyVetoException {
try {
! getRepresentedObject().setDatatypeAndValue(getContainer().getLocatorFactory().createLocator("URI",PSI.XMLSchema.String),data);
} catch (LocatorFactoryException e) {
throw new RuntimeException("This should never happen.",e);
--- 111,115 ----
public void setData(String data) throws PropertyVetoException {
try {
! getRepresentedObject().setDatatypeAndValue(createLocator(PSI.XMLSchema.String,this),data);
} catch (LocatorFactoryException e) {
throw new RuntimeException("This should never happen.",e);
|