blob: 3c0380cf8b08c97daadd46280953c3e9681e1c0f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.pde.internal.ds.core;
/**
* Interface containing constants used for the declarative services editor.
*
* @since 3.4
*/
public interface IDSConstants {
// Elements
public static final String ELEMENT_ROOT = "component"; //$NON-NLS-1$
public static final String ELEMENT_IMPLEMENTATION = "implementation"; //$NON-NLS-1$
public static final String ELEMENT_PROPERTIES = "properties"; //$NON-NLS-1$
public static final String ELEMENT_PROPERTY = "property"; //$NON-NLS-1$
public static final String ELEMENT_SERVICE = "service"; //$NON-NLS-1$
public static final String ELEMENT_PROVIDE = "provide"; //$NON-NLS-1$
public static final String ELEMENT_REFERENCE = "reference"; //$NON-NLS-1$
//Component Attributes
public static final String ATTRIBUTE_COMPONENT_NAME = "name"; //$NON-NLS-1$
public static final String ATTRIBUTE_ENABLED = "enabled"; //$NON-NLS-1$
public static final String ATTRIBUTE_FACTORY = "factory"; //$NON-NLS-1$
public static final String ATTRIBUTE_IMMEDIATE = "immediate"; //$NON-NLS-1$
//Implementation Attributes
public static final String ATTRIBUTE_CLASS = "class"; //$NON-NLS-1$
//Property Attributes
public static final String ATTRIBUTE_PROPERTY_NAME = "name"; //$NON-NLS-1$
public static final String ATTRIBUTE_PROPERTY_VALUE = "value"; //$NON-NLS-1$
public static final String ATTRIBUTE_PROPERTY_TYPE = "type"; //$NON-NLS-1$
//Properties Attributes
public static final String ATTRIBUTE_ENTRY = "entry"; //$NON-NLS-1$
//Service Attributes
public static final String ATTRIBUTE_SERVICE_FACTORY = "servicefactory"; //$NON-NLS-1$
//Provide Attributes
public static final String ATTRIBUTE_PROVIDE_INTERFACE = "interface"; //$NON-NLS-1$
//Reference Attributes
public static final String ATTRIBUTE_REFERENCE_NAME = "name"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_INTERFACE = "interface"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_CARDINALITY = "cardinality"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_POLICY= "policy"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_TARGET= "target"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_BIND= "bind"; //$NON-NLS-1$
public static final String ATTRIBUTE_REFERENCE_UNBIND= "unbind"; //$NON-NLS-1$
//Types
public static final int TYPE_ROOT = 0;
public static final int TYPE_IMPLEMENTATION = 1;
public static final int TYPE_PROPERTIES = 2;
public static final int TYPE_PROPERTY = 3;
public static final int TYPE_SERVICE = 4;
public static final int TYPE_PROVIDE = 5;
public static final int TYPE_REFERENCE = 6;
}