org.jboss.jca.common.api.metadata.common
Class Recovery

java.lang.Object
  extended by org.jboss.jca.common.api.metadata.common.Recovery
All Implemented Interfaces:
Serializable, JCAMetadata, ValidatableMetadata

public class Recovery
extends Object
implements JCAMetadata, ValidatableMetadata

A Recovery.

Author:
Stefano Maestri
See Also:
Serialized Form

Nested Class Summary
static class Recovery.Attribute
          A Attribute.
static class Recovery.Tag
          A Tag.
 
Constructor Summary
Recovery(Credential credential, Extension recoverPlugin, Boolean noRecovery)
          Create a new Recovery.
 
Method Summary
 boolean equals(Object obj)
           
 Credential getCredential()
          Get the security.
 Boolean getNoRecovery()
          Get the noRecovery.
 Extension getRecoverPlugin()
          Get the plugin.
 int hashCode()
           
 String toString()
           
 void validate()
          Validate this metadata according validation required by specification
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recovery

public Recovery(Credential credential,
                Extension recoverPlugin,
                Boolean noRecovery)
         throws ValidateException
Create a new Recovery.

Parameters:
credential - credential
recoverPlugin - plugin
noRecovery - niRecovery
Throws:
ValidateException - in case of not valid metadata creation
Method Detail

getCredential

public final Credential getCredential()
Get the security.

Returns:
the security.

getRecoverPlugin

public final Extension getRecoverPlugin()
Get the plugin.

Returns:
the plugin.

getNoRecovery

public final Boolean getNoRecovery()
Get the noRecovery.

Returns:
the noRecovery.

validate

public void validate()
              throws ValidateException
Description copied from interface: ValidatableMetadata
Validate this metadata according validation required by specification

Specified by:
validate in interface ValidatableMetadata
Throws:
ValidateException - in case of validation fail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)