org.apache.tuscany.sca.assembly.impl
Class ComponentTypeImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, ComponentType, Extensible
Direct Known Subclasses:
ImplementationImpl

public class ComponentTypeImpl
extends ExtensibleImpl
implements ComponentType, java.lang.Cloneable

Represents a component type.


Constructor Summary
protected ComponentTypeImpl()
          Constructs a new component type.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 ConstrainingType getConstrainingType()
          Returns a constraining type defining the shape of the implementation.
 java.util.List<Property> getProperties()
          Returns the list of properties that can be set.
 java.util.List<Reference> getReferences()
          Returns the list of reference types that are used.
 java.util.List<Service> getServices()
          Returns a list of services that are offered.
 java.lang.String getURI()
          Returns the URI of this component type.
 int hashCode()
           
 void setConstrainingType(ConstrainingType constrainingType)
          Sets a constraining type defining the shape of the implementation.
 void setURI(java.lang.String uri)
          Sets the URI of this component type.
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
getExtensions
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Constructor Detail

ComponentTypeImpl

protected ComponentTypeImpl()
Constructs a new component type.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

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

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

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

hashCode

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

equals

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