Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.audit.service
Class DefaultProfile

java.lang.Object
  extended by oracle.jdeveloper.audit.service.Profile
      extended by oracle.jdeveloper.audit.service.DefaultProfile

public class DefaultProfile
extends Profile


Nested Class Summary
static class DefaultProfile.NameScanner
          Opens a profile file and scans until the profile name and key is found.
 
Nested classes/interfaces inherited from class oracle.jdeveloper.audit.service.Profile
Profile.Instances, Profile.Setter
 
Field Summary
static java.lang.String FORMAT
           
static java.lang.String FORMAT_PREFIX
          The prefix of the Audit profile file format identifier, declaring that the file is an Audit profile.
static java.lang.String FORMAT_VERSION
          The current version of the Audit profile file format.
 
Constructor Summary
DefaultProfile(Profile profile)
           
DefaultProfile(java.lang.String name)
          Creates a new profile with all registered analyzers and with all beans in their default state, then enables all rules and metrics.
DefaultProfile(java.lang.String name, java.lang.Class<? extends Analyzer>... analyzers)
          Creates a new profile with specific analyzers.
DefaultProfile(java.lang.String name, java.util.List<java.lang.Class<? extends Analyzer>> analyzers)
          Creates a new profile with a list of analyzers.
DefaultProfile(java.lang.String key, java.lang.String name, java.net.URL url)
          Creates a new predefined profile with all registered analyzers configured from a profile file.
DefaultProfile(java.lang.String name, java.net.URL url)
          Creates a new profile with all registered analyzers configured from a profile file.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener listener)
           
 Profile.Instances createInstances()
          Creates a set of analyzer and bean instances from this profile.
 ProfileTransaction createTransaction()
          Creates a transaction for this profile.
 boolean equals(java.lang.Object object)
           
 java.util.Collection<java.lang.Class<? extends Analyzer>> getAnalyzerClasses()
          Gets the analyzer classes from this profile.
 java.lang.String getKey()
          Gets the creation key of this profile, or null if this is a user-created profile.
 java.lang.String getName()
          Gets the name of this profile.
 java.net.URL getURL()
          Gets the URL where the contents of this profile are saved, or null if new.
 int hashCode()
           
 boolean isDefault()
          Gets whether this profile is a default profile.
 void removeChangeListener(javax.swing.event.ChangeListener listener)
           
 void save(java.net.URL url)
          Saves this profile.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMAT_PREFIX

public static final java.lang.String FORMAT_PREFIX
The prefix of the Audit profile file format identifier, declaring that the file is an Audit profile.

See Also:
Constant Field Values

FORMAT_VERSION

public static final java.lang.String FORMAT_VERSION
The current version of the Audit profile file format.
10.1.3 Boolean identifying profile as predefined replaced by a String key identifying predefined profile. Format identifier added.
10.1.3-1 Added support for dynamic property setters.
11.1.1 Disassociated setters from analyzers.
11.1.1-1 Added qualifying prefix to bean names.

See Also:
Constant Field Values

FORMAT

public static final java.lang.String FORMAT
See Also:
Constant Field Values
Constructor Detail

DefaultProfile

public DefaultProfile(java.lang.String name,
                      java.net.URL url)
Creates a new profile with all registered analyzers configured from a profile file.

Parameters:
url - The url of a profile file.

DefaultProfile

public DefaultProfile(java.lang.String key,
                      java.lang.String name,
                      java.net.URL url)
Creates a new predefined profile with all registered analyzers configured from a profile file.

Parameters:
key - The creation key of this profile.
name - The name of the profile.
url - The url of a profile file.

DefaultProfile

public DefaultProfile(java.lang.String name,
                      java.lang.Class<? extends Analyzer>... analyzers)
Creates a new profile with specific analyzers.

Parameters:
name - The name of this profile.
analyzers - The single analyzer for this profile.

DefaultProfile

public DefaultProfile(java.lang.String name,
                      java.util.List<java.lang.Class<? extends Analyzer>> analyzers)
Creates a new profile with a list of analyzers.

Parameters:
name - The name of this profile.
analyzers - The analyzers for this profile.

DefaultProfile

public DefaultProfile(java.lang.String name)
Creates a new profile with all registered analyzers and with all beans in their default state, then enables all rules and metrics.

Parameters:
name - The name of this profile.

DefaultProfile

public DefaultProfile(Profile profile)
Method Detail

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener listener)
Specified by:
addChangeListener in class Profile

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener listener)
Specified by:
removeChangeListener in class Profile

getName

public java.lang.String getName()
Description copied from class: Profile
Gets the name of this profile.

Specified by:
getName in class Profile

isDefault

public boolean isDefault()
Description copied from class: Profile
Gets whether this profile is a default profile.

Specified by:
isDefault in class Profile

getKey

public java.lang.String getKey()
Description copied from class: Profile
Gets the creation key of this profile, or null if this is a user-created profile.

Specified by:
getKey in class Profile

getURL

public java.net.URL getURL()
Description copied from class: Profile
Gets the URL where the contents of this profile are saved, or null if new.

Specified by:
getURL in class Profile

getAnalyzerClasses

public java.util.Collection<java.lang.Class<? extends Analyzer>> getAnalyzerClasses()
Description copied from class: Profile
Gets the analyzer classes from this profile.

Specified by:
getAnalyzerClasses in class Profile

createTransaction

public ProfileTransaction createTransaction()
Description copied from class: Profile
Creates a transaction for this profile.

Specified by:
createTransaction in class Profile

save

public void save(java.net.URL url)
          throws java.io.IOException
Description copied from class: Profile
Saves this profile.

Specified by:
save in class Profile
Throws:
java.io.IOException

createInstances

public Profile.Instances createInstances()
Description copied from class: Profile
Creates a set of analyzer and bean instances from this profile.

Specified by:
createInstances in class Profile

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.