Revision 43377 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureType.java
DefaultFeatureType.java | ||
---|---|---|
27 | 27 |
import java.util.ArrayList; |
28 | 28 |
import java.util.Arrays; |
29 | 29 |
import java.util.Collections; |
30 |
import java.util.HashSet; |
|
31 | 30 |
import java.util.Iterator; |
32 | 31 |
import java.util.List; |
33 |
import java.util.Set; |
|
34 | 32 |
import org.apache.commons.lang3.ArrayUtils; |
33 |
import org.apache.commons.lang3.StringUtils; |
|
35 | 34 |
|
36 | 35 |
import org.cresques.cts.IProjection; |
37 | 36 |
|
... | ... | |
75 | 74 |
private List srsList = null; |
76 | 75 |
|
77 | 76 |
protected DefaultFeatureType(String id) { |
77 |
if( StringUtils.isEmpty(id) ) { |
|
78 |
id = "default"; |
|
79 |
} |
|
78 | 80 |
this.internalID = Integer.toHexString((int) (Math.random()*100000)).toUpperCase(); |
79 | 81 |
this.id = id; |
80 | 82 |
this.rules = new DefaultFeatureRules(); |
... | ... | |
87 | 89 |
} |
88 | 90 |
|
89 | 91 |
protected DefaultFeatureType() { |
90 |
this("default");
|
|
92 |
this((String)null);
|
|
91 | 93 |
} |
92 | 94 |
|
93 | 95 |
protected DefaultFeatureType(DefaultFeatureType other) { |
94 |
this("default");
|
|
96 |
this((String)null);
|
|
95 | 97 |
initialize(other, true); |
96 | 98 |
} |
97 | 99 |
|
98 | 100 |
protected DefaultFeatureType(DefaultFeatureType other, |
99 | 101 |
boolean copyAttributes) { |
100 |
this("default");
|
|
102 |
this((String)null);
|
|
101 | 103 |
initialize(other, copyAttributes); |
102 | 104 |
} |
103 | 105 |
|
Also available in: Unified diff