org.apache.tuscany.sca.extension.helper.utils
Class AbstractImplementation

java.lang.Object
  extended by org.apache.tuscany.sca.extension.helper.utils.AbstractImplementation
All Implemented Interfaces:
Base, ComponentType, Implementation
Direct Known Subclasses:
DynamicImplementation

public abstract class AbstractImplementation
extends java.lang.Object
implements Implementation

Helper for implementing Implementations, implements all the standard getters and setters on the Implementation interface.


Constructor Summary
AbstractImplementation()
           
 
Method Summary
 java.util.List<PolicySet> getApplicablePolicySets()
           
 java.util.List<ConfiguredOperation> getConfiguredOperations()
           
 ConstrainingType getConstrainingType()
          Returns a constraining type defining the shape of the implementation.
 java.util.List<java.lang.Object> getExtensions()
           
 java.util.List<PolicySet> getPolicySets()
           
 java.util.List<Property> getProperties()
          Returns the list of properties that can be set.
 Property getProptery(java.lang.String name)
           
 Reference getReference(java.lang.String name)
           
 java.util.List<Reference> getReferences()
          Returns the list of reference types that are used.
 java.util.List<Intent> getRequiredIntents()
           
 Service getService(java.lang.String name)
           
 java.util.List<Service> getServices()
          Returns a list of services that are offered.
 IntentAttachPointType getType()
           
 java.lang.String getURI()
          Returns the URI of this component type.
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setConstrainingType(ConstrainingType constrainingType)
          Sets a constraining type defining the shape of the implementation.
 void setType(IntentAttachPointType type)
           
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 void setURI(java.lang.String uri)
          Sets the URI of this component type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractImplementation

public AbstractImplementation()
Method Detail

getProperties

public java.util.List<Property> getProperties()
Description copied from interface: ComponentType
Returns the list of properties that can be set.

Specified by:
getProperties in interface ComponentType
Returns:
the list of properties that can be set

getReferences

public java.util.List<Reference> getReferences()
Description copied from interface: ComponentType
Returns the list of reference types that are used.

Specified by:
getReferences in interface ComponentType
Returns:
the list of reference types that are used

getServices

public java.util.List<Service> getServices()
Description copied from interface: ComponentType
Returns a list of services that are offered.

Specified by:
getServices in interface ComponentType
Returns:
a list of services that are offered

getURI

public java.lang.String getURI()
Description copied from interface: ComponentType
Returns the URI of this component type.

Specified by:
getURI in interface ComponentType
Returns:
the URI of the component type

setURI

public void setURI(java.lang.String uri)
Description copied from interface: ComponentType
Sets the URI of this component type.

Specified by:
setURI in interface ComponentType
Parameters:
uri - the URI of the component type

getConstrainingType

public ConstrainingType getConstrainingType()
Description copied from interface: ComponentType
Returns a constraining type defining the shape of the implementation.

Specified by:
getConstrainingType in interface ComponentType
Returns:
a constraining type

setConstrainingType

public void setConstrainingType(ConstrainingType constrainingType)
Description copied from interface: ComponentType
Sets a constraining type defining the shape of the implementation.

Specified by:
setConstrainingType in interface ComponentType
Parameters:
constrainingType - the constraining type to set

getExtensions

public java.util.List<java.lang.Object> getExtensions()

isUnresolved

public boolean isUnresolved()
Description copied from interface: Base
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Base
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean unresolved)
Description copied from interface: Base
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Base
Parameters:
unresolved - whether the model element is unresolved

getService

public Service getService(java.lang.String name)

getReference

public Reference getReference(java.lang.String name)

getProptery

public Property getProptery(java.lang.String name)

getConfiguredOperations

public java.util.List<ConfiguredOperation> getConfiguredOperations()

getApplicablePolicySets

public java.util.List<PolicySet> getApplicablePolicySets()

getPolicySets

public java.util.List<PolicySet> getPolicySets()

getRequiredIntents

public java.util.List<Intent> getRequiredIntents()

getType

public IntentAttachPointType getType()

setType

public void setType(IntentAttachPointType type)