org.jboss.metadata.javaee.spec
Class ResourceReferenceMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.spec.ResourceInjectionMetaData
              extended by org.jboss.metadata.javaee.support.ResourceInjectionMetaDataWithDescriptions
                  extended by org.jboss.metadata.javaee.spec.ResourceReferenceMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData, MergeableMappedMetaData<ResourceReferenceMetaData>, MergeableMetaData<ResourceReferenceMetaData>

public class ResourceReferenceMetaData
extends ResourceInjectionMetaDataWithDescriptions
implements MergeableMappedMetaData<ResourceReferenceMetaData>

ResourceReferenceMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ResourceReferenceMetaData()
          Create a new ResourceReferenceMetaData.
 
Method Summary
 ResourceAuthorityType getResAuth()
          Get the authority.
 String getResourceName()
          Get the resourceName.
 String getResourceRefName()
          Get the resourceRefName.
 ResourceSharingScopeType getResSharingScope()
          Get the sharingScope.
 String getResUrl()
          Get the resUrl.
 String getType()
          Get the type.
 boolean isContainerAuth()
          Get the containerAuth.
 boolean isShareable()
          Get the isShareable.
 ResourceReferenceMetaData merge(ResourceReferenceMetaData original)
          Merge some metadata
 void merge(ResourceReferenceMetaData override, ResourceReferenceMetaData original)
          Merge the contents of override with original into this.
 void setResAuth(ResourceAuthorityType authority)
          Set the authority.
 void setResourceName(String resourceName)
          Set the resourceName.
 void setResourceRefName(String resourceRefName)
          Set the resourceRefName.
 void setResSharingScope(ResourceSharingScopeType sharingScope)
          Set the sharingScope.
 void setResUrl(String resUrl)
          Set the resUrl.
 void setType(String type)
          Set the type.
 String toString()
           
 
Methods inherited from class org.jboss.metadata.javaee.support.ResourceInjectionMetaDataWithDescriptions
getDescriptions, merge, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.spec.ResourceInjectionMetaData
getIgnoreDependency, getInjectionTargets, getJndiName, getMappedName, getName, getResolvedJndiName, isDependencyIgnored, merge, setIgnoreDependency, setInjectionTargets, setJndiName, setMappedName, setResolvedJndiName
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, hashCode, merge, setName
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData
getKey
 

Constructor Detail

ResourceReferenceMetaData

public ResourceReferenceMetaData()
Create a new ResourceReferenceMetaData.

Method Detail

getResourceRefName

public String getResourceRefName()
Get the resourceRefName.

Returns:
the resourceRefName.

setResourceRefName

public void setResourceRefName(String resourceRefName)
Set the resourceRefName.

Parameters:
resourceRefName - the resourceRefName.
Throws:
IllegalArgumentException - for a null resourceRefName

getType

public String getType()
Get the type.

Returns:
the type.

setType

public void setType(String type)
Set the type.

Parameters:
type - the type.
Throws:
IllegalArgumentException - for a null type

getResAuth

public ResourceAuthorityType getResAuth()
Get the authority.

Returns:
the authority.

setResAuth

public void setResAuth(ResourceAuthorityType authority)
Set the authority.

Parameters:
authority - the authority.
Throws:
IllegalArgumentException - for a null authority

isContainerAuth

public boolean isContainerAuth()
Get the containerAuth.

Returns:
the containerAuth.

getResSharingScope

public ResourceSharingScopeType getResSharingScope()
Get the sharingScope.

Returns:
the sharingScope.

setResSharingScope

public void setResSharingScope(ResourceSharingScopeType sharingScope)
Set the sharingScope.

Parameters:
sharingScope - the sharingScope.
Throws:
IllegalArgumentException - for a null sharingScope

isShareable

public boolean isShareable()
Get the isShareable.

Returns:
the isShareable.

merge

public ResourceReferenceMetaData merge(ResourceReferenceMetaData original)
Description copied from interface: MergeableMetaData
Merge some metadata

Specified by:
merge in interface MergeableMetaData<ResourceReferenceMetaData>
Parameters:
original - the original
Returns:
the merged metadata

merge

public void merge(ResourceReferenceMetaData override,
                  ResourceReferenceMetaData original)
Merge the contents of override with original into this.

Parameters:
override - data which overrides original
original - the original data

getResourceName

public String getResourceName()
Get the resourceName.

Returns:
the resourceName.

setResourceName

public void setResourceName(String resourceName)
Set the resourceName.

Parameters:
resourceName - the resourceName.
Throws:
IllegalArgumentException - for a null resourceName

getResUrl

public String getResUrl()
Get the resUrl.

Returns:
the resUrl.

setResUrl

public void setResUrl(String resUrl)
Set the resUrl.

Parameters:
resUrl - the resUrl.
Throws:
IllegalArgumentException - for a null resUrl

toString

public String toString()
Overrides:
toString in class NamedMetaData


Copyright © 2009 JBoss Inc.. All Rights Reserved.