org.apache.tuscany.sca.implementation.java.impl
Class JavaResourceImpl

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.impl.JavaResourceImpl

public class JavaResourceImpl
extends java.lang.Object

A resource dependency declared by a Java component implementation


Constructor Summary
JavaResourceImpl(JavaElementImpl element)
           
 
Method Summary
 JavaElementImpl getElement()
           
 java.lang.String getMappedName()
          Returns the URI of the resource
 java.lang.String getName()
          The name of the resource
 boolean isOptional()
          If true, the resource is optional
 void setMappedName(java.lang.String mappedName)
          Sets the resource URI
 void setOptional(boolean optional)
          Sets whether the resource is optional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaResourceImpl

public JavaResourceImpl(JavaElementImpl element)
Method Detail

getName

public java.lang.String getName()
The name of the resource

Returns:
the name of the resource

getMappedName

public java.lang.String getMappedName()
Returns the URI of the resource

Returns:
the URI of the resource

setMappedName

public void setMappedName(java.lang.String mappedName)
Sets the resource URI


isOptional

public boolean isOptional()
If true, the resource is optional

Returns:
true if the resource is optional

setOptional

public void setOptional(boolean optional)
Sets whether the resource is optional


getElement

public JavaElementImpl getElement()
Returns:
the element