01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: /**
21: *
22: */package org.netbeans.modules.bpel.model.api;
23:
24: import org.netbeans.modules.bpel.model.api.events.VetoException;
25:
26: /**
27: * @author ads
28: * <p>
29: * Java class for documentation element declaration.
30: * <p>
31: * The following schema fragment specifies the expected content
32: * contained within this class.
33: *
34: * <pre>
35: * <xsd:element name="documentation" type="tDocumentation"/>
36: * <xsd:complexType name="tDocumentation" mixed="true">
37: * <xsd:sequence>
38: * <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
39: * </xsd:sequence>
40: * <xsd:attribute name="source" type="xsd:anyURI"/>
41: * <xsd:attribute ref="xml:lang"/>
42: * </xsd:complexType>
43: * </pre>
44: */
45: public interface Documentation extends BpelContainer, ContentElement {
46:
47: String SOURCE = "source"; // NOI18N
48:
49: String LANGUAGE = "xml:lang"; // NOI18N
50:
51: /**
52: * @return "source" attribute value.
53: */
54: String getSource();
55:
56: /**
57: * Set source attribute value to <code>uri</code>.
58: *
59: * @param uri New "source" attribute value.
60: * @throws VetoException
61: * Will be thrown if uri is not acceptable as value here.
62: */
63: void setSource(String uri) throws VetoException;
64:
65: /**
66: * Removes source attribute.
67: */
68: void removeSource();
69:
70: /**
71: * @return "xml:lang" attribute value.
72: */
73: String getLanguage();
74:
75: /**
76: * Set "xml:lang" attribute value to <code>lang</code>.
77: *
78: * @param lang New language value.
79: * @throws VetoException ( @link VetoException ) will be thrown
80: * if new value is not acceptable here.
81: */
82: void setLanguage(String lang) throws VetoException;
83:
84: /**
85: * Removes "xml:lang" attribute.
86: */
87: void removeLanguage();
88:
89: }
|