KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > api > persistence > model > mapping > MappingElement


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * MappingElement.java
26  *
27  * Created on March 3, 2000, 1:11 PM
28  */

29
30 package com.sun.jdo.api.persistence.model.mapping;
31
32 import java.beans.PropertyChangeListener JavaDoc;
33 import java.beans.VetoableChangeListener JavaDoc;
34
35 import com.sun.jdo.api.persistence.model.ModelException;
36
37 /**
38  *
39  * @author raccah
40  * @version %I%
41  */

42 public interface MappingElement extends MappingElementProperties, Comparable JavaDoc
43 {
44     /** Add a property change listener.
45      * @param l the listener to add
46      */

47     public void addPropertyChangeListener (PropertyChangeListener JavaDoc l);
48
49     /** Remove a property change listener.
50      * @param l the listener to remove
51      */

52     public void removePropertyChangeListener (PropertyChangeListener JavaDoc l);
53
54     /** Add a vetoable change listener.
55      * @param l the listener to add
56      */

57     public void addVetoableChangeListener (VetoableChangeListener JavaDoc l);
58
59     /** Remove a vetoable change listener.
60      * @param l the listener to remove
61      */

62     public void removeVetoableChangeListener (VetoableChangeListener JavaDoc l);
63
64     /** Get the name of this mapping element.
65      * @return the name
66      */

67     public String JavaDoc getName ();
68
69     /** Set the name of this mapping element.
70      * @param name the name
71      * @exception ModelException if impossible
72      */

73     public void setName (String JavaDoc name) throws ModelException;
74 }
75
Popular Tags