Class ForwardingXMLHelper
- java.lang.Object
-
- org.eclipse.emf.compare.ide.internal.utils.ForwardingXMLHelper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.xmi.XMLHelper
XMLHelper.ManyReference
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecore.xmi.XMLHelper
DATATYPE_IS_MANY, DATATYPE_SINGLE, IS_MANY_ADD, IS_MANY_MOVE, OTHER
-
-
Constructor Summary
Constructors Constructor Description ForwardingXMLHelper(XMLHelper delegate)
Default constructor.
-
Method Summary
-
-
-
Constructor Detail
-
ForwardingXMLHelper
public ForwardingXMLHelper(XMLHelper delegate)
Default constructor.- Parameters:
delegate
- The actual helper we'll delegate all calls to.
-
-
Method Detail
-
setOptions
public void setOptions(Map<?,?> options)
- Specified by:
setOptions
in interfaceXMLHelper
-
setNoNamespacePackage
public void setNoNamespacePackage(EPackage pkg)
- Specified by:
setNoNamespacePackage
in interfaceXMLHelper
-
getNoNamespacePackage
public EPackage getNoNamespacePackage()
- Specified by:
getNoNamespacePackage
in interfaceXMLHelper
-
setAnySimpleType
public void setAnySimpleType(EClass type)
- Specified by:
setAnySimpleType
in interfaceXMLHelper
-
setXMLMap
public void setXMLMap(XMLResource.XMLMap map)
-
getXMLMap
public XMLResource.XMLMap getXMLMap()
-
setExtendedMetaData
public void setExtendedMetaData(ExtendedMetaData extendedMetaData)
- Specified by:
setExtendedMetaData
in interfaceXMLHelper
-
getExtendedMetaData
public ExtendedMetaData getExtendedMetaData()
- Specified by:
getExtendedMetaData
in interfaceXMLHelper
-
getResource
public XMLResource getResource()
- Specified by:
getResource
in interfaceXMLHelper
-
getValue
public Object getValue(EObject eObject, EStructuralFeature eStructuralFeature)
-
getName
public String getName(ENamedElement eNamedElement)
-
populateNameInfo
public void populateNameInfo(NameInfo nameInfo, EClass eClass)
- Specified by:
populateNameInfo
in interfaceXMLHelper
-
populateNameInfo
public void populateNameInfo(NameInfo nameInfo, EDataType eDataType)
- Specified by:
populateNameInfo
in interfaceXMLHelper
-
getQName
public String getQName(EStructuralFeature feature)
-
populateNameInfo
public void populateNameInfo(NameInfo nameInfo, EStructuralFeature feature)
- Specified by:
populateNameInfo
in interfaceXMLHelper
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interfaceXMLHelper
-
getPrefixes
public List<String> getPrefixes(EPackage ePackage)
- Specified by:
getPrefixes
in interfaceXMLHelper
-
createObject
@Deprecated public EObject createObject(EFactory eFactory, String name)
Deprecated.- Specified by:
createObject
in interfaceXMLHelper
-
createObject
public EObject createObject(EFactory eFactory, EClassifier type)
- Specified by:
createObject
in interfaceXMLHelper
-
getType
public EClassifier getType(EFactory eFactory, String typeName)
-
setValue
public void setValue(EObject eObject, EStructuralFeature eStructuralFeature, Object value, int position)
-
getFeature
public EStructuralFeature getFeature(EClass eClass, String namespaceURI, String name)
- Specified by:
getFeature
in interfaceXMLHelper
-
getFeature
public EStructuralFeature getFeature(EClass eClass, String namespaceURI, String name, boolean isElement)
- Specified by:
getFeature
in interfaceXMLHelper
-
getFeatureKind
public int getFeatureKind(EStructuralFeature feature)
- Specified by:
getFeatureKind
in interfaceXMLHelper
-
getXMLEncoding
public String getXMLEncoding(String javaEncoding)
- Specified by:
getXMLEncoding
in interfaceXMLHelper
-
getJavaEncoding
public String getJavaEncoding(String xmlEncoding)
- Specified by:
getJavaEncoding
in interfaceXMLHelper
-
setManyReference
public List<XMIException> setManyReference(XMLHelper.ManyReference reference, String location)
- Specified by:
setManyReference
in interfaceXMLHelper
-
setCheckForDuplicates
public void setCheckForDuplicates(boolean checkForDuplicates)
- Specified by:
setCheckForDuplicates
in interfaceXMLHelper
-
setProcessDanglingHREF
public void setProcessDanglingHREF(String value)
- Specified by:
setProcessDanglingHREF
in interfaceXMLHelper
-
getDanglingHREFException
public DanglingHREFException getDanglingHREFException()
- Specified by:
getDanglingHREFException
in interfaceXMLHelper
-
getAnyContentPrefixToURIMapping
public Map<String,String> getAnyContentPrefixToURIMapping()
- Specified by:
getAnyContentPrefixToURIMapping
in interfaceXMLHelper
-
recordPrefixToURIMapping
public void recordPrefixToURIMapping()
- Specified by:
recordPrefixToURIMapping
in interfaceXMLHelper
-
pushContext
public void pushContext()
- Specified by:
pushContext
in interfaceXMLHelper
-
popContext
public void popContext()
- Specified by:
popContext
in interfaceXMLHelper
-
popContext
public void popContext(Map<String,EFactory> prefixesToFactories)
- Specified by:
popContext
in interfaceXMLHelper
-
convertToString
public String convertToString(EFactory factory, EDataType dataType, Object data)
- Specified by:
convertToString
in interfaceXMLHelper
-
getPrefixToNamespaceMap
public EMap<String,String> getPrefixToNamespaceMap()
- Specified by:
getPrefixToNamespaceMap
in interfaceXMLHelper
-
setPrefixToNamespaceMap
public void setPrefixToNamespaceMap(EMap<String,String> prefixToNamespaceMap)
- Specified by:
setPrefixToNamespaceMap
in interfaceXMLHelper
-
setMustHavePrefix
public void setMustHavePrefix(boolean mustHavePrefix)
- Specified by:
setMustHavePrefix
in interfaceXMLHelper
-
-