blob: d81097cca59ce064c36a018939470833cb161816 [file] [log] [blame]
nitindd6e591d2005-03-14 22:21:57 +00001/*******************************************************************************
amywuecebb042007-04-10 20:07:35 +00002 * Copyright (c) 2001, 2005 IBM Corporation and others.
nitindd6e591d2005-03-14 22:21:57 +00003 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
amywuecebb042007-04-10 20:07:35 +00007 *
nitindd6e591d2005-03-14 22:21:57 +00008 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11
12package org.eclipse.wst.dtd.core.internal.emf;
13
14import java.util.Collection;
15
16import org.eclipse.emf.common.util.EList;
17import org.eclipse.emf.ecore.EClass;
18
19/**
20 * <!-- begin-user-doc --> A representation of the model object '<em><b>Element</b></em>'.
21 * <!-- end-user-doc -->
22 *
23 * <p>
24 * The following features are supported:
25 * <ul>
26 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.DTDElement#getComment <em>Comment</em>}</li>
27 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.DTDElement#getContent <em>Content</em>}</li>
28 * <li>{@link org.eclipse.wst.dtd.core.internal.emf.DTDElement#getDTDAttribute <em>DTD Attribute</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @see org.eclipse.wst.dtd.core.internal.emf.DTDPackage#getDTDElement()
33 * @model
34 * @generated
35 */
36public interface DTDElement extends EClass, DTDContent, DTDObject, DTDSourceOffset {
37
38 public void addDTDAttribute(DTDAttribute attribute);
39
40 // returns all references in the same DTDFile that reference this element
41 public Collection getReferences();
42
43 // return a brief string listing the attributes
44 public String getAttributeDetail();
45
46 /**
47 * Returns the value of the '<em><b>Comment</b></em>' attribute. <!--
48 * begin-user-doc -->
49 * <p>
50 * If the meaning of the '<em>Comment</em>' attribute isn't clear,
51 * there really should be more of a description here...
52 * </p>
53 * <!-- end-user-doc -->
54 *
55 * @return the value of the '<em>Comment</em>' attribute.
56 * @see #setComment(String)
57 * @see org.eclipse.wst.dtd.core.internal.emf.DTDPackage#getDTDElement_Comment()
58 * @model
59 * @generated
60 */
61 String getComment();
62
63 /**
64 * Sets the value of the '{@link org.eclipse.wst.dtd.core.internal.emf.DTDElement#getComment <em>Comment</em>}'
65 * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
66 *
67 * @param value
68 * the new value of the '<em>Comment</em>' attribute.
69 * @see #getComment()
70 * @generated
71 */
72 void setComment(String value);
73
74 /**
75 * Returns the value of the '<em><b>Content</b></em>' containment
76 * reference. It is bidirectional and its opposite is '{@link org.eclipse.wst.dtd.core.internal.emf.DTDElementContent#getElement <em>Element</em>}'.
77 * <!-- begin-user-doc -->
78 * <p>
79 * If the meaning of the '<em>Content</em>' containment reference
80 * isn't clear, there really should be more of a description here...
81 * </p>
82 * <!-- end-user-doc -->
83 *
84 * @return the value of the '<em>Content</em>' containment reference.
85 * @see #setContent(DTDElementContent)
86 * @see org.eclipse.wst.dtd.core.internal.emf.DTDPackage#getDTDElement_Content()
87 * @see org.eclipse.wst.dtd.core.internal.emf.DTDElementContent#getElement
88 * @model opposite="element" containment="true" required="true"
89 * @generated
90 */
91 DTDElementContent getContent();
92
93 /**
94 * Sets the value of the '{@link org.eclipse.wst.dtd.core.internal.emf.DTDElement#getContent <em>Content</em>}'
95 * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
96 *
97 * @param value
98 * the new value of the '<em>Content</em>' containment
99 * reference.
100 * @see #getContent()
101 * @generated
102 */
103 void setContent(DTDElementContent value);
104
105 /**
106 * Returns the value of the '<em><b>DTD Attribute</b></em>'
107 * containment reference list. The list contents are of type
108 * {@link DTDAttribute}. It is bidirectional and its opposite is '{@link org.eclipse.wst.dtd.core.internal.emf.DTDAttribute#getDTDElement <em>DTD Element</em>}'.
109 * <!-- begin-user-doc -->
110 * <p>
111 * If the meaning of the '<em>DTD Attribute</em>' containment
112 * reference list isn't clear, there really should be more of a
113 * description here...
114 * </p>
115 * <!-- end-user-doc -->
116 *
117 * @return the value of the '<em>DTD Attribute</em>' containment
118 * reference list.
119 * @see org.eclipse.wst.dtd.core.internal.emf.DTDPackage#getDTDElement_DTDAttribute()
120 * @see org.eclipse.wst.dtd.core.internal.emf.DTDAttribute#getDTDElement
121 * @model type="DTDAttribute" opposite="DTDElement" containment="true"
122 * @generated
123 */
124 EList getDTDAttribute();
125
126} // DTDElement