blob: 51fabb3a4b7a5fc915ce4a6d87916192cf74511a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
package transex3.model;
import java.util.*;
public class ResourceFile {
Vector sdfStrings = new Vector();
HashMap sdfHashMap = new HashMap();
String filepathid = null;
String modulename = null;
String filename = null;
public String getModuleName(){
return modulename;
}
public String getFilePath(){
return filepathid;
}
public String getFileName(){
return filename;
}
/* public List readSoureStrings( java.io.File aSdfFile ){
List sdfList=null;
return sdfList;
};*/
public void addString( SdfString aSdfstring ){
sdfStrings.add( aSdfstring );
sdfHashMap.put( aSdfstring.getFileId() , aSdfstring );
if( filepathid == null )
filepathid = aSdfstring.getFilePath();
if( modulename == null )
modulename = aSdfstring.getModuleName();
if( filename == null )
filename = aSdfstring.getFileName();
}
public void ParseString( String aSourceString ){
//sourceString = new SdfEntity();
SdfEntity aSdfEntity = new SdfEntity();
aSdfEntity.setProperties( aSourceString );
SdfString sdfstring = null;
if( sdfHashMap.containsKey( aSdfEntity.getFileId() ) ){
sdfstring = (SdfString) sdfHashMap.get( aSdfEntity.getFileId() );
}
else
{
sdfstring = new SdfString();
addString( sdfstring );
}
sdfstring.addLanguageString( aSdfEntity );
}
/*public void ParseSdfFile( java.util.Vector aSdfList ){
ListIterator aLI = aSdfList.listIterator();
String current;
String[] splitted;
SdfEntity aSdfEntity;
SdfString aSdfString = new SdfString();
while( aLI.hasNext() ){
aSdfEntity = new SdfEntity();
aSdfEntity.setProperties( (String) aLI.next() );
SdfString aString;
if( sdfHashMap.containsKey( aSdfEntity.getFileId() ) )
aString = (SdfString) sdfHashMap.get( aSdfEntity.getFileId() );
else
{
aString = new SdfString();
addString( aString );
}
aString.addLanguageString( aSdfEntity );
}
}*/
}
|