org.netbeans.modules.j2ee.persistenceapi/1 1.0.20

org.netbeans.modules.j2ee.persistence.api
Class PersistenceScopes

java.lang.Object
  extended by org.netbeans.modules.j2ee.persistence.api.PersistenceScopes

public final class PersistenceScopes
extends Object

Describes a list of persistence scopes and allows listening on this list.


Field Summary
static String PROP_PERSISTENCE_SCOPES
          The property corresponding to getPersistenceScopes(org.netbeans.api.project.Project).
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a property change listener, allowing to listen on properties, e.g.
 PersistenceScope[] getPersistenceScopes()
          Returns the persistence scopes contained in this instance.
static PersistenceScopes getPersistenceScopes(org.netbeans.api.project.Project project)
          Returns an instance of PersistenceScopes for the given project.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a property change listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PERSISTENCE_SCOPES

public static final String PROP_PERSISTENCE_SCOPES
The property corresponding to getPersistenceScopes(org.netbeans.api.project.Project).

See Also:
Constant Field Values
Method Detail

getPersistenceScopes

public static PersistenceScopes getPersistenceScopes(org.netbeans.api.project.Project project)
Returns an instance of PersistenceScopes for the given project.

Returns:
an instance of PersistenceScopes or null if the project doesn't provide a list of persistence scopes.
Throws:
NullPointerException - if project was null.

getPersistenceScopes

public PersistenceScope[] getPersistenceScopes()
Returns the persistence scopes contained in this instance.

Returns:
an array of PersistenceScope instances; never null.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener, allowing to listen on properties, e.g. PROP_PERSISTENCE_SCOPES.

Parameters:
listener - the listener to add; can be null.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener.

Parameters:
listener - the listener to remove; can be null.

org.netbeans.modules.j2ee.persistenceapi/1 1.0.20

Built on August 9 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.