Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 199217 Details for
Bug 349711
[metatype] Improve metatype implementation in equinox to allow better use of schema extensions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
updated proposed api
349711-20110706-1805.txt (text/plain), 6.94 KB, created by
John Ross
on 2011-07-06 19:09:22 EDT
(
hide
)
Description:
updated proposed api
Filename:
MIME Type:
Creator:
John Ross
Created:
2011-07-06 19:09:22 EDT
Size:
6.94 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.metatype >Index: src/org/eclipse/equinox/metatype/i1/Attribute.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Attribute.java >diff -N src/org/eclipse/equinox/metatype/i1/Attribute.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Attribute.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,46 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+/** >+ * A value for an attribute of an object. >+ * >+ * An Attribute contains the data from a single <code><attribute></code> >+ * element within the metadata XML. It represents a value, whose intent and >+ * format are described by the associated {@link #getAttributeDefinition() >+ * attribute definition}, for a configuration dictionary. >+ * >+ * @ThreadSafe >+ * @noimplement This interface is not intended to be implemented by clients. >+ */ >+public interface Attribute extends Extendable { >+ /** >+ * Returns the attribute definition associated with this attribute as >+ * defined by the <code>adref</code> attribute of the <code> >+ * <attribute></code> element. >+ * >+ * @return The attribute definition associated with this attribute. >+ */ >+ EquinoxAttributeDefinition getAttributeDefinition(); >+ >+ /** >+ * Returns the values for this attribute as specified within the <code> >+ * content</code> attribute of the <code><attribute></code> element. >+ * If there is more than one value, the returned string will be a >+ * comma-delimited list. All escape characters are retained. >+ * >+ * @return The values for this attribute. >+ */ >+ String getContent(); >+ >+ /** >+ * Returns the list of values for this attribute as specified within zero >+ * or more child <code><value></code> elements of the <code> >+ * <attribute></code> element. The list order represents the element >+ * order presented within the XML. The list will be empty if no <code> >+ * <value></code> elements were present. >+ * >+ * @return A list of values for this attribute. >+ */ >+ List<String> getValues(); >+} >Index: src/org/eclipse/equinox/metatype/i1/Designate.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Designate.java >diff -N src/org/eclipse/equinox/metatype/i1/Designate.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Designate.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+public interface Designate extends Extendable { >+ String getBundle(); >+ >+ String getFactoryPid(); >+ >+ boolean isMerge(); >+ >+ boolean isOptional(); >+ >+ DesignateObject getObject(); >+ >+ String getPid(); >+} >Index: src/org/eclipse/equinox/metatype/i1/DesignateObject.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/DesignateObject.java >diff -N src/org/eclipse/equinox/metatype/i1/DesignateObject.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/DesignateObject.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,9 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+ >+public interface DesignateObject extends Extendable { >+ List<Attribute> getAttributes(); >+ >+ EquinoxObjectClassDefinition getObjectClassDefinition(); >+} >Index: src/org/eclipse/equinox/metatype/i1/EquinoxAttributeDefinition.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/EquinoxAttributeDefinition.java >diff -N src/org/eclipse/equinox/metatype/i1/EquinoxAttributeDefinition.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/EquinoxAttributeDefinition.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,7 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import org.osgi.service.metatype.AttributeDefinition; >+ >+public interface EquinoxAttributeDefinition extends AttributeDefinition, Extendable { >+ // Empty interface to support extendable attribute definitions. >+} >Index: src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeInformation.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeInformation.java >diff -N src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeInformation.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeInformation.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,7 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import org.osgi.service.metatype.MetaTypeInformation; >+ >+public interface EquinoxMetaTypeInformation extends MetaTypeInformation { >+ EquinoxObjectClassDefinition getObjectClassDefinition(String id, String locale); >+} >Index: src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeService.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeService.java >diff -N src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeService.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/EquinoxMetaTypeService.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,8 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import org.osgi.framework.Bundle; >+import org.osgi.service.metatype.MetaTypeService; >+ >+public interface EquinoxMetaTypeService extends MetaTypeService { >+ EquinoxMetaTypeInformation getMetaTypeInformation(Bundle bundle); >+} >Index: src/org/eclipse/equinox/metatype/i1/EquinoxObjectClassDefinition.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/EquinoxObjectClassDefinition.java >diff -N src/org/eclipse/equinox/metatype/i1/EquinoxObjectClassDefinition.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/EquinoxObjectClassDefinition.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,10 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.List; >+import org.osgi.service.metatype.ObjectClassDefinition; >+ >+public interface EquinoxObjectClassDefinition extends ObjectClassDefinition, Extendable { >+ List<Designate> getDesignates(); >+ >+ EquinoxAttributeDefinition[] getAttributeDefinitions(int filter); >+} >Index: src/org/eclipse/equinox/metatype/i1/Extendable.java >=================================================================== >RCS file: src/org/eclipse/equinox/metatype/i1/Extendable.java >diff -N src/org/eclipse/equinox/metatype/i1/Extendable.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/equinox/metatype/i1/Extendable.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,10 @@ >+package org.eclipse.equinox.metatype.i1; >+ >+import java.util.Map; >+import java.util.Set; >+ >+public interface Extendable { >+ Map<String, String> getExtensionAttributes(String schema); >+ >+ Set<String> getExtensionSchemas(); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 349711
:
199144
|
199217
|
199393
|
199394