Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Behaviour of String.split()
Behaviour of String.split() [message #468410] Wed, 05 August 2009 09:15 Go to previous message
Eclipse User
Originally posted by: c.k.holmes.lboro.ac.uk

Behaviour of the operation split on the class String is curious. The
following output is generated from a simple model transformation:

This input (within my ETL file):
'1234.5678'.println();
'1234.5678'.split('.').println();
'1234-5678'.println();
'1234-5678'.split('-').println();

Provides this output (in the console window):
main:
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl] Running
ETL file
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl] 1234.5678
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl] Sequence {}
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl] 1234-5678
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl] Sequence
{1234, 5678}
[epsilon.etl - IndeFile2NetworkInitialisationDataCatalogue.etl]
Completed ETL file
BUILD SUCCESSFUL

There appears to be something odd with the behaviour of the split()
operation when the string delimiter is the point character '.', should I
be calling this operation differently?

Best Wishes
Chris
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Eugenia] Running Eugenia from Ant?
Next Topic:[ETL] How to deal with removing circular references
Goto Forum:
  


Current Time: Tue May 21 12:29:27 EDT 2013

Powered by FUDForum. Page generated in 0.01700 seconds