Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/metadata/IMetaclass.java')
-rw-r--r--plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/metadata/IMetaclass.java67
1 files changed, 67 insertions, 0 deletions
diff --git a/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/metadata/IMetaclass.java b/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/metadata/IMetaclass.java
new file mode 100644
index 00000000000..8ec251c4353
--- /dev/null
+++ b/plugins/xwt/org.eclipse.papyrus.xwt/src/org/eclipse/papyrus/xwt/metadata/IMetaclass.java
@@ -0,0 +1,67 @@
+/*******************************************************************************
+ * Copyright (c) 2006, 2010 Soyatec (http://www.soyatec.com) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Soyatec - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.papyrus.xwt.metadata;
+
+import org.eclipse.papyrus.xwt.IEventGroup;
+
+/**
+ * UI metaclass
+ *
+ * @author yyang
+ */
+public interface IMetaclass {
+
+ public String getName();
+
+ public IProperty[] getProperties();
+
+ public IMetaclass getSuperClass();
+
+ public IEvent[] getEvents();
+
+ public IProperty findProperty(String name);
+
+ public void removeProperty(String name);
+
+ public IProperty findDefaultProperty();
+
+ public IEvent findEvent(String name);
+
+ public Object newInstance(Object[] parameters);
+
+ public boolean isAbstract();
+
+ public boolean isInstance(Object object);
+
+ public boolean isSubclassOf(IMetaclass metaclass);
+
+ public boolean isSuperclassOf(IMetaclass metaclass);
+
+ public boolean isAssignableFrom(IMetaclass metaclass);
+
+ public Class<?> getType();
+
+ public IProperty addProperty(IProperty property);
+
+ public Class<?> getDataContextType();
+
+ public void addEventGroup(IEventGroup eventGroup);
+
+ public IEventGroup getEventGroup(String event);
+
+ public void addInitializer(IObjectInitializer initializer);
+
+ public void removeInitializer(IObjectInitializer initializer);
+
+ public IObjectInitializer[] getInitializers();
+
+ public void initialize(Object instance);
+}

Back to the top