diff --git a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/EcoreXPathContextFactory.java b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/EcoreXPathContextFactory.java index 64bca787569..1a7efcb947d 100644 --- a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/EcoreXPathContextFactory.java +++ b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/EcoreXPathContextFactory.java @@ -29,6 +29,7 @@ public class EcoreXPathContextFactory { * * @return the factory */ + @Deprecated public static XPathContextFactory newInstance() { return new JavaXPathContextFactoryImpl<>(); } diff --git a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContext.java b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContext.java index a596b220cf1..64e2aa55ef5 100644 --- a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContext.java +++ b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContext.java @@ -38,6 +38,7 @@ public interface XPathContext { * to evaluate * @return Object found */ + @Deprecated Object getValue(String xpath); /** @@ -50,6 +51,7 @@ public interface XPathContext { * required type * @return Object found */ + @Deprecated T getValue(String xpath, Class requiredType); /** @@ -62,6 +64,7 @@ public interface XPathContext { * @param xpath to iterate * @return Iterator<Object> */ + @Deprecated Iterator iterate(String xpath); /** @@ -76,6 +79,7 @@ public interface XPathContext { * type * @since 0.5 */ + @Deprecated default Stream stream(String xpath, Class type) { Iterator iterator = iterate(xpath); return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, Spliterator.ORDERED), false) diff --git a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContextFactory.java b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContextFactory.java index 3e8200a4cb6..9ae791e6a28 100644 --- a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContextFactory.java +++ b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathContextFactory.java @@ -32,6 +32,7 @@ public abstract class XPathContextFactory { * @param contextBean Object * @return XPathContext */ + @Deprecated public abstract XPathContext newContext(T contextBean); /** @@ -55,6 +56,7 @@ public abstract class XPathContextFactory { * @param the object type the xpath is created for * @return Create a new XPath-Factory */ + @Deprecated public static XPathContextFactory newInstance() { return new JavaXPathContextFactoryImpl<>(); } diff --git a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathNotFoundException.java b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathNotFoundException.java index 39543fa8e5a..367f27bb905 100644 --- a/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathNotFoundException.java +++ b/bundles/org.eclipse.e4.emf.xpath/src/org/eclipse/e4/emf/xpath/XPathNotFoundException.java @@ -24,6 +24,7 @@ public class XPathNotFoundException extends IllegalArgumentException { private static final long serialVersionUID = -4174244860692153739L; + @Deprecated public XPathNotFoundException(String message) { super(message); }