Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added "allow discovery" setting to access control form

  • Loading branch information...
commit bd29b8295486723b6c2f202b66091c100a47a6f0 1 parent 196cec0
@gregjan gregjan authored
Showing with 2,175 additions and 1,921 deletions.
  1. +1 −0  access-control.edit/plugin.properties
  2. +144 −123 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AccessControlTypeItemProvider.java
  3. +43 −43 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AclEditPlugin.java
  4. +124 −124 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AclItemProviderAdapterFactory.java
  5. +76 −76 access-control.edit/src/edu/unc/lib/schemas/acl/provider/DocumentRootItemProvider.java
  6. +87 −87 access-control.edit/src/edu/unc/lib/schemas/acl/provider/GrantTypeItemProvider.java
  7. +8 −0 access-control/model/acl.ecore
  8. +1 −0  access-control/model/acl.genmodel
  9. +134 −78 access-control/src/edu/unc/lib/schemas/acl/AccessControlType.java
  10. +24 −24 access-control/src/edu/unc/lib/schemas/acl/AclFactory.java
  11. +269 −241 access-control/src/edu/unc/lib/schemas/acl/AclPackage.java
  12. +44 −44 access-control/src/edu/unc/lib/schemas/acl/DocumentRoot.java
  13. +30 −30 access-control/src/edu/unc/lib/schemas/acl/GrantType.java
  14. +287 −199 access-control/src/edu/unc/lib/schemas/acl/impl/AccessControlTypeImpl.java
  15. +61 −61 access-control/src/edu/unc/lib/schemas/acl/impl/AclFactoryImpl.java
  16. +298 −279 access-control/src/edu/unc/lib/schemas/acl/impl/AclPackageImpl.java
  17. +163 −163 access-control/src/edu/unc/lib/schemas/acl/impl/DocumentRootImpl.java
  18. +121 −121 access-control/src/edu/unc/lib/schemas/acl/impl/GrantTypeImpl.java
  19. +85 −85 access-control/src/edu/unc/lib/schemas/acl/util/AclAdapterFactory.java
  20. +19 −19 access-control/src/edu/unc/lib/schemas/acl/util/AclResourceFactoryImpl.java
  21. +7 −7 access-control/src/edu/unc/lib/schemas/acl/util/AclResourceImpl.java
  22. +98 −98 access-control/src/edu/unc/lib/schemas/acl/util/AclSwitch.java
  23. +18 −18 access-control/src/edu/unc/lib/schemas/acl/util/AclXMLProcessor.java
  24. +1 −0  etc/acl.xsd
  25. +32 −1 workbench_plugin/src/main/java/unc/lib/cdr/workbench/acl/AccessControlFormPage.java
View
1  access-control.edit/plugin.properties
@@ -37,3 +37,4 @@ _UI_XMLTypeDocumentRoot_text_feature = Text
_UI_XMLTypeDocumentRoot_processingInstruction_feature = Processing Instruction
_UI_Unknown_feature = Unspecified
+_UI_AccessControlType_discoverable_feature = Discoverable
View
267 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AccessControlTypeItemProvider.java
@@ -49,181 +49,202 @@
IItemLabelProvider,
IItemPropertySource {
/**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public AccessControlTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+ super(adapterFactory);
+ }
/**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addEmbargoUntilPropertyDescriptor(object);
- addInheritPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addDiscoverablePropertyDescriptor(object);
+ addEmbargoUntilPropertyDescriptor(object);
+ addInheritPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
/**
- * This adds a property descriptor for the Embargo Until feature.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Discoverable feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDiscoverablePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_AccessControlType_discoverable_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_AccessControlType_discoverable_feature", "_UI_AccessControlType_type"),
+ AclPackage.Literals.ACCESS_CONTROL_TYPE__DISCOVERABLE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Embargo Until feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addEmbargoUntilPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_AccessControlType_embargoUntil_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_AccessControlType_embargoUntil_feature", "_UI_AccessControlType_type"),
- AclPackage.Literals.ACCESS_CONTROL_TYPE__EMBARGO_UNTIL,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_AccessControlType_embargoUntil_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_AccessControlType_embargoUntil_feature", "_UI_AccessControlType_type"),
+ AclPackage.Literals.ACCESS_CONTROL_TYPE__EMBARGO_UNTIL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This adds a property descriptor for the Inherit feature.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Inherit feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addInheritPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_AccessControlType_inherit_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_AccessControlType_inherit_feature", "_UI_AccessControlType_type"),
- AclPackage.Literals.ACCESS_CONTROL_TYPE__INHERIT,
- true,
- false,
- false,
- ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_AccessControlType_inherit_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_AccessControlType_inherit_feature", "_UI_AccessControlType_type"),
+ AclPackage.Literals.ACCESS_CONTROL_TYPE__INHERIT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(AclPackage.Literals.ACCESS_CONTROL_TYPE__GRANT);
- }
- return childrenFeatures;
- }
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(AclPackage.Literals.ACCESS_CONTROL_TYPE__GRANT);
+ }
+ return childrenFeatures;
+ }
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
/**
- * This returns AccessControlType.gif.
- * <!-- begin-user-doc -->
+ * This returns AccessControlType.gif.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/AccessControlType"));
- }
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/AccessControlType"));
+ }
/**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public String getText(Object object) {
- XMLGregorianCalendar labelValue = ((AccessControlType)object).getEmbargoUntil();
- String label = labelValue == null ? null : labelValue.toString();
- return label == null || label.length() == 0 ?
- getString("_UI_AccessControlType_type") :
- getString("_UI_AccessControlType_type") + " " + label;
- }
+ AccessControlType accessControlType = (AccessControlType)object;
+ return getString("_UI_AccessControlType_type") + " " + accessControlType.isDiscoverable();
+ }
/**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(AccessControlType.class)) {
- case AclPackage.ACCESS_CONTROL_TYPE__EMBARGO_UNTIL:
- case AclPackage.ACCESS_CONTROL_TYPE__INHERIT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case AclPackage.ACCESS_CONTROL_TYPE__GRANT:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(AccessControlType.class)) {
+ case AclPackage.ACCESS_CONTROL_TYPE__DISCOVERABLE:
+ case AclPackage.ACCESS_CONTROL_TYPE__EMBARGO_UNTIL:
+ case AclPackage.ACCESS_CONTROL_TYPE__INHERIT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case AclPackage.ACCESS_CONTROL_TYPE__GRANT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
/**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (AclPackage.Literals.ACCESS_CONTROL_TYPE__GRANT,
- AclFactory.eINSTANCE.createGrantType()));
- }
+ newChildDescriptors.add
+ (createChildParameter
+ (AclPackage.Literals.ACCESS_CONTROL_TYPE__GRANT,
+ AclFactory.eINSTANCE.createGrantType()));
+ }
/**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public ResourceLocator getResourceLocator() {
- return AclEditPlugin.INSTANCE;
- }
+ return AclEditPlugin.INSTANCE;
+ }
}
View
86 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AclEditPlugin.java
@@ -18,76 +18,76 @@
*/
public final class AclEditPlugin extends EMFPlugin {
/**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public static final AclEditPlugin INSTANCE = new AclEditPlugin();
/**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
private static Implementation plugin;
/**
- * Create the instance.
- * <!-- begin-user-doc -->
+ * Create the instance.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public AclEditPlugin() {
- super
- (new ResourceLocator [] {
- });
- }
+ super
+ (new ResourceLocator [] {
+ });
+ }
/**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
+ * @return the singleton instance.
+ * @generated
+ */
@Override
public ResourceLocator getPluginResourceLocator() {
- return plugin;
- }
+ return plugin;
+ }
/**
- * Returns the singleton instance of the Eclipse plugin.
- * <!-- begin-user-doc -->
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the singleton instance.
- * @generated
- */
+ * @return the singleton instance.
+ * @generated
+ */
public static Implementation getPlugin() {
- return plugin;
- }
+ return plugin;
+ }
/**
- * The actual implementation of the Eclipse <b>Plugin</b>.
- * <!-- begin-user-doc -->
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public static class Implementation extends EclipsePlugin {
/**
- * Creates an instance.
- * <!-- begin-user-doc -->
+ * Creates an instance.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public Implementation() {
- super();
+ super();
- // Remember the static instance.
- //
- plugin = this;
- }
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
}
}
View
248 access-control.edit/src/edu/unc/lib/schemas/acl/provider/AclItemProviderAdapterFactory.java
@@ -38,214 +38,214 @@
*/
public class AclItemProviderAdapterFactory extends AclAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
/**
- * This keeps track of the root adapter factory that delegates to this adapter factory.
- * <!-- begin-user-doc -->
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected ComposedAdapterFactory parentAdapterFactory;
/**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
- * <!-- begin-user-doc -->
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected IChangeNotifier changeNotifier = new ChangeNotifier();
/**
- * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
- * <!-- begin-user-doc -->
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected Collection<Object> supportedTypes = new ArrayList<Object>();
/**
- * This constructs an instance.
- * <!-- begin-user-doc -->
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public AclItemProviderAdapterFactory() {
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- }
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
/**
- * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.AccessControlType} instances.
- * <!-- begin-user-doc -->
+ * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.AccessControlType} instances.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected AccessControlTypeItemProvider accessControlTypeItemProvider;
/**
- * This creates an adapter for a {@link edu.unc.lib.schemas.acl.AccessControlType}.
- * <!-- begin-user-doc -->
+ * This creates an adapter for a {@link edu.unc.lib.schemas.acl.AccessControlType}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Adapter createAccessControlTypeAdapter() {
- if (accessControlTypeItemProvider == null) {
- accessControlTypeItemProvider = new AccessControlTypeItemProvider(this);
- }
+ if (accessControlTypeItemProvider == null) {
+ accessControlTypeItemProvider = new AccessControlTypeItemProvider(this);
+ }
- return accessControlTypeItemProvider;
- }
+ return accessControlTypeItemProvider;
+ }
/**
- * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.DocumentRoot} instances.
- * <!-- begin-user-doc -->
+ * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected DocumentRootItemProvider documentRootItemProvider;
/**
- * This creates an adapter for a {@link edu.unc.lib.schemas.acl.DocumentRoot}.
- * <!-- begin-user-doc -->
+ * This creates an adapter for a {@link edu.unc.lib.schemas.acl.DocumentRoot}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Adapter createDocumentRootAdapter() {
- if (documentRootItemProvider == null) {
- documentRootItemProvider = new DocumentRootItemProvider(this);
- }
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
- return documentRootItemProvider;
- }
+ return documentRootItemProvider;
+ }
/**
- * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.GrantType} instances.
- * <!-- begin-user-doc -->
+ * This keeps track of the one adapter used for all {@link edu.unc.lib.schemas.acl.GrantType} instances.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected GrantTypeItemProvider grantTypeItemProvider;
/**
- * This creates an adapter for a {@link edu.unc.lib.schemas.acl.GrantType}.
- * <!-- begin-user-doc -->
+ * This creates an adapter for a {@link edu.unc.lib.schemas.acl.GrantType}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Adapter createGrantTypeAdapter() {
- if (grantTypeItemProvider == null) {
- grantTypeItemProvider = new GrantTypeItemProvider(this);
- }
+ if (grantTypeItemProvider == null) {
+ grantTypeItemProvider = new GrantTypeItemProvider(this);
+ }
- return grantTypeItemProvider;
- }
+ return grantTypeItemProvider;
+ }
/**
- * This returns the root adapter factory that contains this factory.
- * <!-- begin-user-doc -->
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
- }
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
/**
- * This sets the composed adapter factory that contains this factory.
- * <!-- begin-user-doc -->
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
/**
- * This implementation substitutes the factory itself as the key for the adapter.
- * <!-- begin-user-doc -->
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
+ return super.adapt(notifier, this);
+ }
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
- return adapter;
- }
- }
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
- return null;
- }
+ return null;
+ }
/**
- * This adds a listener.
- * <!-- begin-user-doc -->
+ * This adds a listener.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
+ changeNotifier.addListener(notifyChangedListener);
+ }
/**
- * This removes a listener.
- * <!-- begin-user-doc -->
+ * This removes a listener.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
+ changeNotifier.removeListener(notifyChangedListener);
+ }
/**
- * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
- * <!-- begin-user-doc -->
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
+ changeNotifier.fireNotifyChanged(notification);
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
/**
- * This disposes all of the item providers created by this factory.
- * <!-- begin-user-doc -->
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public void dispose() {
- if (accessControlTypeItemProvider != null) accessControlTypeItemProvider.dispose();
- if (documentRootItemProvider != null) documentRootItemProvider.dispose();
- if (grantTypeItemProvider != null) grantTypeItemProvider.dispose();
- }
+ if (accessControlTypeItemProvider != null) accessControlTypeItemProvider.dispose();
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (grantTypeItemProvider != null) grantTypeItemProvider.dispose();
+ }
}
View
152 access-control.edit/src/edu/unc/lib/schemas/acl/provider/DocumentRootItemProvider.java
@@ -45,127 +45,127 @@
IItemLabelProvider,
IItemPropertySource {
/**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public DocumentRootItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+ super(adapterFactory);
+ }
/**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- }
- return itemPropertyDescriptors;
- }
+ }
+ return itemPropertyDescriptors;
+ }
/**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(AclPackage.Literals.DOCUMENT_ROOT__ACCESS_CONTROL);
- }
- return childrenFeatures;
- }
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(AclPackage.Literals.DOCUMENT_ROOT__ACCESS_CONTROL);
+ }
+ return childrenFeatures;
+ }
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
- return super.getChildFeature(object, child);
- }
+ return super.getChildFeature(object, child);
+ }
/**
- * This returns DocumentRoot.gif.
- * <!-- begin-user-doc -->
+ * This returns DocumentRoot.gif.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/DocumentRoot"));
- }
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
/**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public String getText(Object object) {
- return getString("_UI_DocumentRoot_type");
- }
+ return getString("_UI_DocumentRoot_type");
+ }
/**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public void notifyChanged(Notification notification) {
- updateChildren(notification);
+ updateChildren(notification);
- switch (notification.getFeatureID(DocumentRoot.class)) {
- case AclPackage.DOCUMENT_ROOT__ACCESS_CONTROL:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case AclPackage.DOCUMENT_ROOT__ACCESS_CONTROL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
/**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
+ super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add
- (createChildParameter
- (AclPackage.Literals.DOCUMENT_ROOT__ACCESS_CONTROL,
- AclFactory.eINSTANCE.createAccessControlType()));
- }
+ newChildDescriptors.add
+ (createChildParameter
+ (AclPackage.Literals.DOCUMENT_ROOT__ACCESS_CONTROL,
+ AclFactory.eINSTANCE.createAccessControlType()));
+ }
/**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public ResourceLocator getResourceLocator() {
- return AclEditPlugin.INSTANCE;
- }
+ return AclEditPlugin.INSTANCE;
+ }
}
View
174 access-control.edit/src/edu/unc/lib/schemas/acl/provider/GrantTypeItemProvider.java
@@ -44,86 +44,86 @@
IItemLabelProvider,
IItemPropertySource {
/**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public GrantTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+ super(adapterFactory);
+ }
/**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
- addGroupPropertyDescriptor(object);
- addRolePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
+ addGroupPropertyDescriptor(object);
+ addRolePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
/**
- * This adds a property descriptor for the Group feature.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Group feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addGroupPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_GrantType_group_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_GrantType_group_feature", "_UI_GrantType_type"),
- AclPackage.Literals.GRANT_TYPE__GROUP,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GrantType_group_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GrantType_group_feature", "_UI_GrantType_type"),
+ AclPackage.Literals.GRANT_TYPE__GROUP,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This adds a property descriptor for the Role feature.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Role feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addRolePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_GrantType_role_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_GrantType_role_feature", "_UI_GrantType_type"),
- AclPackage.Literals.GRANT_TYPE__ROLE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GrantType_role_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GrantType_role_feature", "_UI_GrantType_type"),
+ AclPackage.Literals.GRANT_TYPE__ROLE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This returns GrantType.gif.
- * <!-- begin-user-doc -->
+ * This returns GrantType.gif.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/GrantType"));
- }
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/GrantType"));
+ }
/**
* This returns the label text for the adapted class.
@@ -143,46 +143,46 @@ public String getText(Object object) {
}
/**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(GrantType.class)) {
- case AclPackage.GRANT_TYPE__GROUP:
- case AclPackage.GRANT_TYPE__ROLE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(GrantType.class)) {
+ case AclPackage.GRANT_TYPE__GROUP:
+ case AclPackage.GRANT_TYPE__ROLE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
/**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
/**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
@Override
public ResourceLocator getResourceLocator() {
- return AclEditPlugin.INSTANCE;
- }
+ return AclEditPlugin.INSTANCE;
+ }
}
View
8 access-control/model/acl.ecore
@@ -16,6 +16,14 @@
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="discoverable" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="true" unsettable="true">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="discoverable"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="embargoUntil" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date"
unsettable="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
View
1  access-control/model/acl.genmodel
@@ -9,6 +9,7 @@
ecorePackage="acl.ecore#/">
<genClasses ecoreClass="acl.ecore#//AccessControlType">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference acl.ecore#//AccessControlType/grant"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute acl.ecore#//AccessControlType/discoverable"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute acl.ecore#//AccessControlType/embargoUntil"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute acl.ecore#//AccessControlType/inherit"/>
</genClasses>
View
212 access-control/src/edu/unc/lib/schemas/acl/AccessControlType.java
@@ -21,6 +21,7 @@
* The following features are supported:
* <ul>
* <li>{@link edu.unc.lib.schemas.acl.AccessControlType#getGrant <em>Grant</em>}</li>
+ * <li>{@link edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable <em>Discoverable</em>}</li>
* <li>{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}</li>
* <li>{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}</li>
* </ul>
@@ -32,129 +33,184 @@
*/
public interface AccessControlType extends EObject {
/**
- * Returns the value of the '<em><b>Grant</b></em>' containment reference list.
- * The list contents are of type {@link edu.unc.lib.schemas.acl.GrantType}.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Grant</b></em>' containment reference list.
+ * The list contents are of type {@link edu.unc.lib.schemas.acl.GrantType}.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Grant</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Grant</em>' containment reference list.
- * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_Grant()
- * @model containment="true"
- * extendedMetaData="kind='element' name='grant' namespace='##targetNamespace'"
- * @generated
- */
+ * @return the value of the '<em>Grant</em>' containment reference list.
+ * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_Grant()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='grant' namespace='##targetNamespace'"
+ * @generated
+ */
EList<GrantType> getGrant();
/**
- * Returns the value of the '<em><b>Embargo Until</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Discoverable</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Discoverable</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Discoverable</em>' attribute.
+ * @see #isSetDiscoverable()
+ * @see #unsetDiscoverable()
+ * @see #setDiscoverable(boolean)
+ * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_Discoverable()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute' name='discoverable' namespace='##targetNamespace'"
+ * @generated
+ */
+ boolean isDiscoverable();
+
+ /**
+ * Sets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable <em>Discoverable</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Discoverable</em>' attribute.
+ * @see #isSetDiscoverable()
+ * @see #unsetDiscoverable()
+ * @see #isDiscoverable()
+ * @generated
+ */
+ void setDiscoverable(boolean value);
+
+ /**
+ * Unsets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable <em>Discoverable</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetDiscoverable()
+ * @see #isDiscoverable()
+ * @see #setDiscoverable(boolean)
+ * @generated
+ */
+ void unsetDiscoverable();
+
+ /**
+ * Returns whether the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable <em>Discoverable</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Discoverable</em>' attribute is set.
+ * @see #unsetDiscoverable()
+ * @see #isDiscoverable()
+ * @see #setDiscoverable(boolean)
+ * @generated
+ */
+ boolean isSetDiscoverable();
+
+ /**
+ * Returns the value of the '<em><b>Embargo Until</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Embargo Until</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Embargo Until</em>' attribute.
- * @see #isSetEmbargoUntil()
- * @see #unsetEmbargoUntil()
- * @see #setEmbargoUntil(XMLGregorianCalendar)
- * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_EmbargoUntil()
- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Date"
- * extendedMetaData="kind='attribute' name='embargo-until' namespace='##targetNamespace'"
- * @generated
- */
+ * @return the value of the '<em>Embargo Until</em>' attribute.
+ * @see #isSetEmbargoUntil()
+ * @see #unsetEmbargoUntil()
+ * @see #setEmbargoUntil(XMLGregorianCalendar)
+ * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_EmbargoUntil()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Date"
+ * extendedMetaData="kind='attribute' name='embargo-until' namespace='##targetNamespace'"
+ * @generated
+ */
XMLGregorianCalendar getEmbargoUntil();
/**
- * Sets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute.
- * <!-- begin-user-doc -->
+ * Sets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Embargo Until</em>' attribute.
- * @see #isSetEmbargoUntil()
- * @see #unsetEmbargoUntil()
- * @see #getEmbargoUntil()
- * @generated
- */
+ * @param value the new value of the '<em>Embargo Until</em>' attribute.
+ * @see #isSetEmbargoUntil()
+ * @see #unsetEmbargoUntil()
+ * @see #getEmbargoUntil()
+ * @generated
+ */
void setEmbargoUntil(XMLGregorianCalendar value);
/**
- * Unsets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute.
- * <!-- begin-user-doc -->
+ * Unsets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #isSetEmbargoUntil()
- * @see #getEmbargoUntil()
- * @see #setEmbargoUntil(XMLGregorianCalendar)
- * @generated
- */
+ * @see #isSetEmbargoUntil()
+ * @see #getEmbargoUntil()
+ * @see #setEmbargoUntil(XMLGregorianCalendar)
+ * @generated
+ */
void unsetEmbargoUntil();
/**
- * Returns whether the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute is set.
- * <!-- begin-user-doc -->
+ * Returns whether the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}' attribute is set.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return whether the value of the '<em>Embargo Until</em>' attribute is set.
- * @see #unsetEmbargoUntil()
- * @see #getEmbargoUntil()
- * @see #setEmbargoUntil(XMLGregorianCalendar)
- * @generated
- */
+ * @return whether the value of the '<em>Embargo Until</em>' attribute is set.
+ * @see #unsetEmbargoUntil()
+ * @see #getEmbargoUntil()
+ * @see #setEmbargoUntil(XMLGregorianCalendar)
+ * @generated
+ */
boolean isSetEmbargoUntil();
/**
- * Returns the value of the '<em><b>Inherit</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Inherit</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inherit</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inherit</em>' attribute.
- * @see #isSetInherit()
- * @see #unsetInherit()
- * @see #setInherit(boolean)
- * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_Inherit()
- * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean"
- * extendedMetaData="kind='attribute' name='inherit' namespace='##targetNamespace'"
- * @generated
- */
+ * @return the value of the '<em>Inherit</em>' attribute.
+ * @see #isSetInherit()
+ * @see #unsetInherit()
+ * @see #setInherit(boolean)
+ * @see edu.unc.lib.schemas.acl.AclPackage#getAccessControlType_Inherit()
+ * @model default="true" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute' name='inherit' namespace='##targetNamespace'"
+ * @generated
+ */
boolean isInherit();
/**
- * Sets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute.
- * <!-- begin-user-doc -->
+ * Sets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>Inherit</em>' attribute.
- * @see #isSetInherit()
- * @see #unsetInherit()
- * @see #isInherit()
- * @generated
- */
+ * @param value the new value of the '<em>Inherit</em>' attribute.
+ * @see #isSetInherit()
+ * @see #unsetInherit()
+ * @see #isInherit()
+ * @generated
+ */
void setInherit(boolean value);
/**
- * Unsets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute.
- * <!-- begin-user-doc -->
+ * Unsets the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #isSetInherit()
- * @see #isInherit()
- * @see #setInherit(boolean)
- * @generated
- */
+ * @see #isSetInherit()
+ * @see #isInherit()
+ * @see #setInherit(boolean)
+ * @generated
+ */
void unsetInherit();
/**
- * Returns whether the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute is set.
- * <!-- begin-user-doc -->
+ * Returns whether the value of the '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}' attribute is set.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return whether the value of the '<em>Inherit</em>' attribute is set.
- * @see #unsetInherit()
- * @see #isInherit()
- * @see #setInherit(boolean)
- * @generated
- */
+ * @return whether the value of the '<em>Inherit</em>' attribute is set.
+ * @see #unsetInherit()
+ * @see #isInherit()
+ * @see #setInherit(boolean)
+ * @generated
+ */
boolean isSetInherit();
} // AccessControlType
View
48 access-control/src/edu/unc/lib/schemas/acl/AclFactory.java
@@ -18,47 +18,47 @@
*/
public interface AclFactory extends EFactory {
/**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
AclFactory eINSTANCE = edu.unc.lib.schemas.acl.impl.AclFactoryImpl.init();
/**
- * Returns a new object of class '<em>Access Control Type</em>'.
- * <!-- begin-user-doc -->
+ * Returns a new object of class '<em>Access Control Type</em>'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Access Control Type</em>'.
- * @generated
- */
+ * @return a new object of class '<em>Access Control Type</em>'.
+ * @generated
+ */
AccessControlType createAccessControlType();
/**
- * Returns a new object of class '<em>Document Root</em>'.
- * <!-- begin-user-doc -->
+ * Returns a new object of class '<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Document Root</em>'.
- * @generated
- */
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
DocumentRoot createDocumentRoot();
/**
- * Returns a new object of class '<em>Grant Type</em>'.
- * <!-- begin-user-doc -->
+ * Returns a new object of class '<em>Grant Type</em>'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Grant Type</em>'.
- * @generated
- */
+ * @return a new object of class '<em>Grant Type</em>'.
+ * @generated
+ */
GrantType createGrantType();
/**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
+ * @return the package supported by this factory.
+ * @generated
+ */
AclPackage getAclPackage();
} //AclFactory
View
510 access-control/src/edu/unc/lib/schemas/acl/AclPackage.java
@@ -28,316 +28,336 @@
*/
public interface AclPackage extends EPackage {
/**
- * The package name.
- * <!-- begin-user-doc -->
+ * The package name.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
String eNAME = "acl";
/**
- * The package namespace URI.
- * <!-- begin-user-doc -->
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
String eNS_URI = "http://cdr.unc.edu/definitions/acl#";
/**
- * The package namespace name.
- * <!-- begin-user-doc -->
+ * The package namespace name.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
String eNS_PREFIX = "acl";
/**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
AclPackage eINSTANCE = edu.unc.lib.schemas.acl.impl.AclPackageImpl.init();
/**
- * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl <em>Access Control Type</em>}' class.
- * <!-- begin-user-doc -->
+ * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl <em>Access Control Type</em>}' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl
- * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getAccessControlType()
- * @generated
- */
+ * @see edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl
+ * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getAccessControlType()
+ * @generated
+ */
int ACCESS_CONTROL_TYPE = 0;
/**
- * The feature id for the '<em><b>Grant</b></em>' containment reference list.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Grant</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int ACCESS_CONTROL_TYPE__GRANT = 0;
/**
- * The feature id for the '<em><b>Embargo Until</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Discoverable</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTROL_TYPE__DISCOVERABLE = 1;
+
+ /**
+ * The feature id for the '<em><b>Embargo Until</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTROL_TYPE__EMBARGO_UNTIL = 1;
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTROL_TYPE__EMBARGO_UNTIL = 2;
/**
- * The feature id for the '<em><b>Inherit</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Inherit</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTROL_TYPE__INHERIT = 2;
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTROL_TYPE__INHERIT = 3;
/**
- * The number of structural features of the '<em>Access Control Type</em>' class.
- * <!-- begin-user-doc -->
+ * The number of structural features of the '<em>Access Control Type</em>' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ACCESS_CONTROL_TYPE_FEATURE_COUNT = 3;
+ * @generated
+ * @ordered
+ */
+ int ACCESS_CONTROL_TYPE_FEATURE_COUNT = 4;
/**
- * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.DocumentRootImpl <em>Document Root</em>}' class.
- * <!-- begin-user-doc -->
+ * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.DocumentRootImpl <em>Document Root</em>}' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see edu.unc.lib.schemas.acl.impl.DocumentRootImpl
- * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getDocumentRoot()
- * @generated
- */
+ * @see edu.unc.lib.schemas.acl.impl.DocumentRootImpl
+ * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getDocumentRoot()
+ * @generated
+ */
int DOCUMENT_ROOT = 1;
/**
- * The feature id for the '<em><b>Mixed</b></em>' attribute list.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Mixed</b></em>' attribute list.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int DOCUMENT_ROOT__MIXED = 0;
/**
- * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
/**
- * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
/**
- * The feature id for the '<em><b>Access Control</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Access Control</b></em>' containment reference.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int DOCUMENT_ROOT__ACCESS_CONTROL = 3;
/**
- * The number of structural features of the '<em>Document Root</em>' class.
- * <!-- begin-user-doc -->
+ * The number of structural features of the '<em>Document Root</em>' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int DOCUMENT_ROOT_FEATURE_COUNT = 4;
/**
- * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.GrantTypeImpl <em>Grant Type</em>}' class.
- * <!-- begin-user-doc -->
+ * The meta object id for the '{@link edu.unc.lib.schemas.acl.impl.GrantTypeImpl <em>Grant Type</em>}' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see edu.unc.lib.schemas.acl.impl.GrantTypeImpl
- * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getGrantType()
- * @generated
- */
+ * @see edu.unc.lib.schemas.acl.impl.GrantTypeImpl
+ * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getGrantType()
+ * @generated
+ */
int GRANT_TYPE = 2;
/**
- * The feature id for the '<em><b>Group</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Group</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int GRANT_TYPE__GROUP = 0;
/**
- * The feature id for the '<em><b>Role</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * The feature id for the '<em><b>Role</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int GRANT_TYPE__ROLE = 1;
/**
- * The number of structural features of the '<em>Grant Type</em>' class.
- * <!-- begin-user-doc -->
+ * The number of structural features of the '<em>Grant Type</em>' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- * @ordered
- */
+ * @generated
+ * @ordered
+ */
int GRANT_TYPE_FEATURE_COUNT = 2;
/**
- * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.AccessControlType <em>Access Control Type</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.AccessControlType <em>Access Control Type</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Access Control Type</em>'.
- * @see edu.unc.lib.schemas.acl.AccessControlType
- * @generated
- */
+ * @return the meta object for class '<em>Access Control Type</em>'.
+ * @see edu.unc.lib.schemas.acl.AccessControlType
+ * @generated
+ */
EClass getAccessControlType();
/**
- * Returns the meta object for the containment reference list '{@link edu.unc.lib.schemas.acl.AccessControlType#getGrant <em>Grant</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the containment reference list '{@link edu.unc.lib.schemas.acl.AccessControlType#getGrant <em>Grant</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Grant</em>'.
- * @see edu.unc.lib.schemas.acl.AccessControlType#getGrant()
- * @see #getAccessControlType()
- * @generated
- */
+ * @return the meta object for the containment reference list '<em>Grant</em>'.
+ * @see edu.unc.lib.schemas.acl.AccessControlType#getGrant()
+ * @see #getAccessControlType()
+ * @generated
+ */
EReference getAccessControlType_Grant();
/**
- * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Embargo Until</em>'.
- * @see edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil()
- * @see #getAccessControlType()
- * @generated
- */
+ * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable <em>Discoverable</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Discoverable</em>'.
+ * @see edu.unc.lib.schemas.acl.AccessControlType#isDiscoverable()
+ * @see #getAccessControlType()
+ * @generated
+ */
+ EAttribute getAccessControlType_Discoverable();
+
+ /**
+ * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil <em>Embargo Until</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Embargo Until</em>'.
+ * @see edu.unc.lib.schemas.acl.AccessControlType#getEmbargoUntil()
+ * @see #getAccessControlType()
+ * @generated
+ */
EAttribute getAccessControlType_EmbargoUntil();
/**
- * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.AccessControlType#isInherit <em>Inherit</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Inherit</em>'.
- * @see edu.unc.lib.schemas.acl.AccessControlType#isInherit()
- * @see #getAccessControlType()
- * @generated
- */
+ * @return the meta object for the attribute '<em>Inherit</em>'.
+ * @see edu.unc.lib.schemas.acl.AccessControlType#isInherit()
+ * @see #getAccessControlType()
+ * @generated
+ */
EAttribute getAccessControlType_Inherit();
/**
- * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.DocumentRoot <em>Document Root</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Document Root</em>'.
- * @see edu.unc.lib.schemas.acl.DocumentRoot
- * @generated
- */
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see edu.unc.lib.schemas.acl.DocumentRoot
+ * @generated
+ */
EClass getDocumentRoot();
/**
- * Returns the meta object for the attribute list '{@link edu.unc.lib.schemas.acl.DocumentRoot#getMixed <em>Mixed</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the attribute list '{@link edu.unc.lib.schemas.acl.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Mixed</em>'.
- * @see edu.unc.lib.schemas.acl.DocumentRoot#getMixed()
- * @see #getDocumentRoot()
- * @generated
- */
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see edu.unc.lib.schemas.acl.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
EAttribute getDocumentRoot_Mixed();
/**
- * Returns the meta object for the map '{@link edu.unc.lib.schemas.acl.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the map '{@link edu.unc.lib.schemas.acl.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
- * @see edu.unc.lib.schemas.acl.DocumentRoot#getXMLNSPrefixMap()
- * @see #getDocumentRoot()
- * @generated
- */
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see edu.unc.lib.schemas.acl.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
EReference getDocumentRoot_XMLNSPrefixMap();
/**
- * Returns the meta object for the map '{@link edu.unc.lib.schemas.acl.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the map '{@link edu.unc.lib.schemas.acl.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the map '<em>XSI Schema Location</em>'.
- * @see edu.unc.lib.schemas.acl.DocumentRoot#getXSISchemaLocation()
- * @see #getDocumentRoot()
- * @generated
- */
+ * @return the meta object for the map '<em>XSI Schema Location</em>'.
+ * @see edu.unc.lib.schemas.acl.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
EReference getDocumentRoot_XSISchemaLocation();
/**
- * Returns the meta object for the containment reference '{@link edu.unc.lib.schemas.acl.DocumentRoot#getAccessControl <em>Access Control</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the containment reference '{@link edu.unc.lib.schemas.acl.DocumentRoot#getAccessControl <em>Access Control</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Access Control</em>'.
- * @see edu.unc.lib.schemas.acl.DocumentRoot#getAccessControl()
- * @see #getDocumentRoot()
- * @generated
- */
+ * @return the meta object for the containment reference '<em>Access Control</em>'.
+ * @see edu.unc.lib.schemas.acl.DocumentRoot#getAccessControl()
+ * @see #getDocumentRoot()
+ * @generated
+ */
EReference getDocumentRoot_AccessControl();
/**
- * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.GrantType <em>Grant Type</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for class '{@link edu.unc.lib.schemas.acl.GrantType <em>Grant Type</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Grant Type</em>'.
- * @see edu.unc.lib.schemas.acl.GrantType
- * @generated
- */
+ * @return the meta object for class '<em>Grant Type</em>'.
+ * @see edu.unc.lib.schemas.acl.GrantType
+ * @generated
+ */
EClass getGrantType();
/**
- * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.GrantType#getGroup <em>Group</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.GrantType#getGroup <em>Group</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Group</em>'.
- * @see edu.unc.lib.schemas.acl.GrantType#getGroup()
- * @see #getGrantType()
- * @generated
- */
+ * @return the meta object for the attribute '<em>Group</em>'.
+ * @see edu.unc.lib.schemas.acl.GrantType#getGroup()
+ * @see #getGrantType()
+ * @generated
+ */
EAttribute getGrantType_Group();
/**
- * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.GrantType#getRole <em>Role</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the meta object for the attribute '{@link edu.unc.lib.schemas.acl.GrantType#getRole <em>Role</em>}'.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Role</em>'.
- * @see edu.unc.lib.schemas.acl.GrantType#getRole()
- * @see #getGrantType()
- * @generated
- */
+ * @return the meta object for the attribute '<em>Role</em>'.
+ * @see edu.unc.lib.schemas.acl.GrantType#getRole()
+ * @see #getGrantType()
+ * @generated
+ */
EAttribute getGrantType_Role();
/**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
AclFactory getAclFactory();
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
@@ -346,109 +366,117 @@
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
interface Literals {
/**
- * The meta object literal for the '{@link edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl <em>Access Control Type</em>}' class.
- * <!-- begin-user-doc -->
+ * The meta object literal for the '{@link edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl <em>Access Control Type</em>}' class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl
- * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getAccessControlType()
- * @generated
- */
+ * @see edu.unc.lib.schemas.acl.impl.AccessControlTypeImpl
+ * @see edu.unc.lib.schemas.acl.impl.AclPackageImpl#getAccessControlType()
+ * @generated
+ */
EClass ACCESS_CONTROL_TYPE = eINSTANCE.getAccessControlType();
/**
- * The meta object literal for the '<em><b>Grant</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
+ * The meta object literal for the '<em><b>Grant</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
EReference ACCESS_CONTROL_TYPE__GRANT = eINSTANCE.getAccessControlType_Grant();
/**
- * The meta object literal for the '<em><b>Embargo Until</b></em>' attribute feature.
- * <!-- begin-user-doc -->
+ * The meta object literal for the '<em><b>Discoverable</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ACCESS_CONTROL_TYPE__DISCOVERABLE = eINSTANCE.getAccessControlType_Discoverable();
+
+ /**
+ * The meta object literal for the '<em><b>Embargo Until</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
EAttribute ACCESS_CONTROL_TYPE__EMBARGO_UNTIL = eINSTANCE.getAccessControlType_EmbargoUntil();
/**
- * The meta object literal for the '<em><b>Inherit</b></em>' attribute feature.
- * <!-- begin-user-doc -->
+ * The meta object literal for the '<em><b>Inherit</b></em>' attribute feature.
+ * <!-- begin-user-doc --