72 |
|
|
73 |
public AttributeMetadataImpl(final AttributeDescriptor attDesc, |
public AttributeMetadataImpl(final AttributeDescriptor attDesc, |
74 |
final int weight, final List<String> langs) { |
final int weight, final List<String> langs) { |
75 |
this(attDesc.getName(), langs); |
this( new NameImpl(attDesc.getName().getNamespaceURI(), attDesc.getName().getLocalPart()), langs); |
76 |
setWeight(weight); |
setWeight(weight); |
77 |
} |
} |
78 |
|
|
79 |
public AttributeMetadataImpl(final AttributeDescriptor attDesc, |
public AttributeMetadataImpl(final AttributeDescriptor attDesc, |
80 |
final List<String> langs) { |
final List<String> langs) { |
81 |
this(attDesc.getName(), langs); |
this(new NameImpl(attDesc.getName().getNamespaceURI(), attDesc.getName().getLocalPart()), langs); |
82 |
} |
} |
83 |
|
|
84 |
/** |
/** |
185 |
* further down. |
* further down. |
186 |
*/ |
*/ |
187 |
@Override |
@Override |
188 |
public int compareTo(final AttributeMetadata atm2) { |
public int compareTo(final AttributeMetadataInterface atm2) { |
189 |
return new Integer(weight).compareTo(new Double(atm2.getWeight()) |
return new Integer(weight).compareTo(new Double(atm2.getWeight()) |
190 |
.intValue()); |
.intValue()); |
191 |
} |
} |
194 |
* @see Copyable inferface |
* @see Copyable inferface |
195 |
*/ |
*/ |
196 |
@Override |
@Override |
197 |
public AttributeMetadata copy() { |
public AttributeMetadataInterface copy() { |
198 |
return copyTo(new AttributeMetadataImpl()); |
return copyTo(new AttributeMetadataImpl()); |
199 |
} |
} |
200 |
|
|
202 |
* @see Copyable inferface |
* @see Copyable inferface |
203 |
*/ |
*/ |
204 |
@Override |
@Override |
205 |
public AttributeMetadata copyTo(final AttributeMetadata amd) { |
public AttributeMetadataInterface copyTo(final AttributeMetadataInterface amd) { |
206 |
getTitle().copyTo(amd.getTitle()); |
getTitle().copyTo(amd.getTitle()); |
207 |
getDesc().copyTo(amd.getDesc()); |
getDesc().copyTo(amd.getDesc()); |
208 |
amd.setUnit(getUnit()); |
amd.setUnit(getUnit()); |