Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2011-01-18 21:10:47 +0000
committerpfullbright2011-01-18 21:10:47 +0000
commit0b589913d76b68cc8445ef5e231c87b513ac7670 (patch)
treea4b4248ff5c757115cef43fcd7ce1f8e0c60f307 /jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java
parent49650082d30ac13ab1a998effa52fea4ca4991b3 (diff)
downloadwebtools.dali-0b589913d76b68cc8445ef5e231c87b513ac7670.tar.gz
webtools.dali-0b589913d76b68cc8445ef5e231c87b513ac7670.tar.xz
webtools.dali-0b589913d76b68cc8445ef5e231c87b513ac7670.zip
added default name and namespace, content assist, and validation to XmlRootElement
Diffstat (limited to 'jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java56
1 files changed, 46 insertions, 10 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java
index 90a3d5b37e..12870d5571 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlRootElement.java
@@ -9,6 +9,8 @@
*******************************************************************************/
package org.eclipse.jpt.jaxb.core.context;
+import org.eclipse.jpt.jaxb.core.context.java.JavaContextNode;
+
/**
* Represents a JAXB xml root element.
* (A class with either an explicit @XmlRootElement annotation)
@@ -23,26 +25,60 @@ package org.eclipse.jpt.jaxb.core.context;
* @since 3.0
*/
public interface XmlRootElement
- extends
- JaxbContextNode
-{
-
+ extends JavaContextNode {
+
/**************** name *****************/
/**
- * Name corresponds to the XmRootElement annotation name element
+ * Return the specified name or the default type name if it is not specified
*/
String getName();
- void setName(String name);
- String NAME_PROPERTY = "name"; //$NON-NLS-1$
+
+ /**
+ * Return the specified name or null if it is not specified
+ */
+ String getSpecifiedName();
+
+ /**
+ * Set the name, null to unspecify (use the default)
+ */
+ void setSpecifiedName(String name);
+
+ /**
+ * String constant associated with changes to the specified name
+ */
+ String SPECIFIED_NAME_PROPERTY = "specifiedName"; //$NON-NLS-1$
+
+ /**
+ * Return the default name
+ */
+ String getDefaultName();
/**************** namespace *****************/
/**
- * namespace corresponds to the XmRootElement annotation namespace element
+ * Return the specified namespace or the default namespace if it is not specified
*/
String getNamespace();
- void setNamespace(String namespace);
- String NAMESPACE_PROPERTY = "namespace"; //$NON-NLS-1$
+
+ /**
+ * Return the specified namespace or null if it is not specified
+ */
+ String getSpecifiedNamespace();
+
+ /**
+ * Set the namespace, null to unspecify (use the default)
+ */
+ void setSpecifiedNamespace(String namespace);
+
+ /**
+ * String constant associated with changes to the specified namespace
+ */
+ String SPECIFIED_NAMESPACE_PROPERTY = "specifiedNamespace"; //$NON-NLS-1$
+
+ /**
+ * Return the default namespace
+ */
+ String getDefaultNamespace();
}

Back to the top