blob: 2fd5ddd630a1984af25df73c57107402c1b58e48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*******************************************************************************
* Copyright (c) 2000, 2005 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.core.ischema;
/**
* Classes that implement this interface represent definition
* of one element in the extension point schema.
* Elements are defined at the global scope and contain
* type (typically complex types with compositors) and
* attribute definitions.
*/
public interface ISchemaElement extends ISchemaObject, ISchemaRepeatable, ISchemaAttributeProvider, IMetaElement {
/**
* Returns an approximate representation of this element's content
* model in DTD form. The resulting representation may not
* be accurate because XML schema is more powerful and
* provides for grammar definitions that are not possible
* with DTDs.
*
* param addLinks if true, the representation will contain
* HTML tags for quick access to referenced elements.
*
*@return DTD approximation of this element's grammar
*/
String getDTDRepresentation(boolean addLinks);
/**
* Returns type object that represents the type defined in this element.
* The type can be simple (defining an element that can only contain text)
* or complex (with attributes and/or compositors).
*/
public ISchemaType getType();
}
|