Revision 42701
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 | ||
---|---|---|
103 | 103 |
protected void initialize(DefaultFeatureType other, boolean copyAttributes) { |
104 | 104 |
this.id = other.getId(); |
105 | 105 |
if (copyAttributes) { |
106 |
Iterator iter = other.iterator(); |
|
107 |
DefaultFeatureAttributeDescriptor attr; |
|
108 |
while (iter.hasNext()) { |
|
109 |
attr = (DefaultFeatureAttributeDescriptor) iter.next(); |
|
110 |
this.intitalizeAddAttibute(attr); |
|
111 |
} |
|
112 |
if( other.pk!=null ) { |
|
113 |
this.pk = new FeatureAttributeDescriptor[other.pk.length]; |
|
114 |
for( int i=0; i<other.pk.length; i++ ) { |
|
115 |
this.pk[i] = other.pk[i].getCopy(); |
|
116 |
} |
|
106 |
Iterator iter = other.iterator(); |
|
107 |
DefaultFeatureAttributeDescriptor attr; |
|
108 |
while (iter.hasNext()) { |
|
109 |
attr = (DefaultFeatureAttributeDescriptor) iter.next(); |
|
110 |
this.intitalizeAddAttibute(attr); |
|
111 |
} |
|
112 |
if( other.pk!=null ) { |
|
113 |
this.pk = new FeatureAttributeDescriptor[other.pk.length]; |
|
114 |
for( int i=0; i<other.pk.length; i++ ) { |
|
115 |
this.pk[i] = other.pk[i].getCopy(); |
|
117 | 116 |
} |
118 | 117 |
} |
119 | 118 |
} |
Also available in: Unified diff