1 | if (attribs != null)↵ | | 1 | if (attribs != null)↵
|
2 | {↵ | | 2 | {↵
|
3 | InternalEObject internalEObject = (InternalEObject)obj;↵ | | 3 | InternalEObject internalEObject = (InternalEObject)obj;↵
|
4 | for (int i = 0, size = attribs.getLength(); i < size; ++i)↵ | | 4 | for (int i = 0, size = attribs.getLength(); i < size; ++i)↵
|
5 | {↵ | | 5 | {↵
|
6 | String name = attribs.getQName(i);↵ | | 6 | String name = attribs.getQName(i);↵
|
7 | if (name.equals(ID_ATTRIB))↵ | | 7 | if (name.equals(idAttribute))↵
|
8 | {↵ | | 8 | {↵
|
9 | xmlResource.setID(internalEObject, attribs.getValue(i));↵ | | 9 | xmlResource.setID(internalEObject, attribs.getValue(i));↵
|
10 | }↵ | | 10 | }↵
|
11 | else if (name.equals(hrefAttribute) && (!recordUnknownFeature || types.peek() != UNKNOWN_FEATURE_TYPE || obj.eClass() != anyType))↵ | | 11 | else if (name.equals(hrefAttribute) && (!recordUnknownFeature || types.peek() != UNKNOWN_FEATURE_TYPE || obj.eClass() != anyType))↵
|
12 | {↵ | | 12 | {↵
|
13 | handleProxy(internalEObject, attribs.getValue(i));↵ | | 13 | handleProxy(internalEObject, attribs.getValue(i));↵
|
14 | }↵ | | 14 | }↵
|
15 | else if (isNamespaceAware)↵ | | 15 | else if (isNamespaceAware)↵
|
16 | {↵ | | 16 | {↵
|
17 | String namespace = attribs.getURI(i);↵ | | 17 | String namespace = attribs.getURI(i);↵
|
18 | if (!ExtendedMetaData.XSI_URI.equals(namespace) && !notFeatures.contains(name))↵ | | 18 | if (!ExtendedMetaData.XSI_URI.equals(namespace))↵
|
19 | {↵ | | 19 | {↵
|
20 | setAttribValue(obj, name, attribs.getValue(i));↵ | | 20 | setAttribValue(obj, name, attribs.getValue(i));↵
|
21 | }↵ | | 21 | }↵
|
22 | }↵ | | 22 | }↵
|
23 | else if (!name.startsWith(XMLResource.XML_NS) && !notFeatures.contains(name))↵ | | 23 | else if (!name.startsWith(XMLResource.XML_NS) && !notFeatures.contains(name))↵
|
24 | {↵ | | 24 | {↵
|
25 | setAttribValue(obj, name, attribs.getValue(i));↵ | | 25 | setAttribValue(obj, name, attribs.getValue(i));↵
|
26 | }↵ | | 26 | }↵
|
27 | }↵ | | 27 | }↵
|
28 | } | | 28 | }
|