001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: /**
043: * This interface is the intersection of all generated methods.
044: *
045: * @Generated
046: */package org.netbeans.modules.uml.codegen.dataaccess.xmlbeans;
047:
048: public interface CommonBean {
049: public org.w3c.dom.Comment addComment(String comment);
050:
051: public void addPropertyChangeListener(String n,
052: java.beans.PropertyChangeListener l);
053:
054: public void addPropertyChangeListener(
055: java.beans.PropertyChangeListener l);
056:
057: public int addValue(String name, Object value);
058:
059: public org.netbeans.modules.schema2beans.BaseBean[] childBeans(
060: boolean recursive);
061:
062: public void childBeans(boolean recursive, java.util.List beans);
063:
064: public Object clone();
065:
066: public org.w3c.dom.Comment[] comments();
067:
068: public String dtdName();
069:
070: public void dump(StringBuffer str, String indent);
071:
072: public boolean equals(Object obj);
073:
074: public String fullName();
075:
076: public String[] getAttributeNames();
077:
078: public String[] getAttributeNames(String propName);
079:
080: public String getAttributeValue(String name);
081:
082: public String getAttributeValue(String propName, String name);
083:
084: public String getAttributeValue(String propName, int index,
085: String name);
086:
087: public String getDefaultNamespace();
088:
089: public Object getValue(String name);
090:
091: public Object getValue(String name, int index);
092:
093: public Object[] getValues(String name);
094:
095: public int indexOf(String name, Object value);
096:
097: public boolean isChoiceProperty();
098:
099: public boolean isChoiceProperty(String name);
100:
101: public boolean isNull(String name);
102:
103: public boolean isNull(String name, int index);
104:
105: public boolean isRoot();
106:
107: public void merge(org.netbeans.modules.schema2beans.BaseBean bean);
108:
109: public void merge(org.netbeans.modules.schema2beans.BaseBean bean,
110: int mode);
111:
112: public String name();
113:
114: public org.netbeans.modules.schema2beans.BaseBean parent();
115:
116: public void reindent();
117:
118: public void removeComment(org.w3c.dom.Comment comment);
119:
120: public void removePropertyChangeListener(String n,
121: java.beans.PropertyChangeListener l);
122:
123: public void removePropertyChangeListener(
124: java.beans.PropertyChangeListener l);
125:
126: public int removeValue(String name, Object value);
127:
128: public void removeValue(String name, int index);
129:
130: public void setAttributeValue(String propName, int index,
131: String name, String value);
132:
133: public void setDefaultNamespace(String namespace);
134:
135: public void setValue(String name, Object value);
136:
137: public void setValue(String name, Object[] value);
138:
139: public void setValue(String name, int index, Object value);
140:
141: public int size(String name);
142:
143: public String toString();
144:
145: public void validate()
146: throws org.netbeans.modules.schema2beans.ValidateException;
147:
148: public void write(java.io.OutputStream out)
149: throws java.io.IOException,
150: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException;
151:
152: public void write(java.io.OutputStream out, String encoding)
153: throws java.io.IOException,
154: org.netbeans.modules.schema2beans.Schema2BeansException;
155:
156: public void write(java.io.Writer w) throws java.io.IOException,
157: org.netbeans.modules.schema2beans.Schema2BeansException;
158:
159: public void write(java.io.Writer w, String encoding)
160: throws java.io.IOException,
161: org.netbeans.modules.schema2beans.Schema2BeansException;
162:
163: public void writeNoReindent(java.io.OutputStream out)
164: throws java.io.IOException,
165: org.netbeans.modules.schema2beans.Schema2BeansException;
166:
167: }
|