Class XmlStorageUtil
java.lang.Object
org.eclipse.cdt.core.settings.model.XmlStorageUtil
This class serves as a bridge from Xml Document trees to
ICStorageElement trees.
This allows importing of old style Xml trees into ICStorageElement
based project descriptions
- Since:
- 5.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ICStorageElement
Return an ICStorageElement tree based around the specified document N.B.static ICStorageElement
Return an ICStorageElement tree based around the specified Element.
-
Constructor Details
-
XmlStorageUtil
public XmlStorageUtil()
-
-
Method Details
-
createCStorageTree
Return an ICStorageElement tree based around the specified document N.B. the tree is backed by the passed in document so care should be taken to ensure that the tree is only subsequently through the ICStorageElement interface The ICStorageElement tree is based on the first Element found in the Document- Parameters:
doc
-- Returns:
- ICStorageElement tree or null if impossible
-
createCStorageTree
Return an ICStorageElement tree based around the specified Element. NB the returned ICStorageElement is backed by the passed in Element which should only be modified via the ICStorageElement interface subsequent to this conversion.- Parameters:
el
- input XML element- Returns:
- ICStorageElement tree
-