|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A primitive or composite component.
Field Summary | |
static long |
ATTRIBUTE_CONTROLLER_CLASS_INVALID
A status flag indicating that the component's attribute
controller interface is invalid. |
static long |
ATTRIBUTE_CONTROLLER_CLASS_NOT_FOUND
A status flag indicating that the component's attribute
controller interface cannot be found. |
static long |
ATTRIBUTE_CONTROLLER_MISSING
A status flag indicating that the component's attribute
controller interface is missing. |
static long |
IMPLEMENTATION_CLASS_INVALID
A status flag indicating that the component's
implementation class is invalid. |
static long |
IMPLEMENTATION_CLASS_NOT_FOUND
A status flag indicating that the component's
implementation class cannot be found. |
static long |
IMPLEMENTATION_MISSING
A status flag indicating that the component's
implementation is missing. |
static long |
INTERFACES_INVALID
A status flag indicating that the component's interfaces
are invalid. |
static long |
NAME_MISSING
A status flag indicating that the component's name is
missing. |
static long |
OK
The status flags corresponding to a valid component. |
Method Summary | |
void |
addClientInterface(ClientInterface itf)
Adds the given client interface to this component. |
void |
addServerInterface(ServerInterface itf)
Adds the given server interface to this component. |
void |
addSubComponent(Component child)
Adds the given component as a sub component of this component. |
void |
bind(ClientInterface citf,
java.lang.String suffix,
ServerInterface sitf)
Binds the given client interface to the given server interface. |
boolean |
contains(Component child)
Returns true if this component contains the given sub component. |
boolean |
containsMasterOfExternalComponent(Component root)
Returns true if the given component contains a master component but does not contain all its slaves. |
boolean |
containsSlaveOfExternalComponent(Component root)
Returns true if the given component contains a slave component but does not contain its master. |
java.lang.String |
getAttribute(java.lang.String attributeName)
Return the value of the given attribute of this component. |
java.lang.String |
getAttributeController()
Returns the name of the attribute controller interface of this component. |
java.util.List |
getAttributeNames()
Returns the names of the attributes of this component. |
Interface |
getClientInterface(java.lang.String name)
Returns the external client interface of this component whose name is given. |
java.util.List |
getClientInterfaces()
Returns the external client interfaces of this component. |
java.lang.String |
getComponentControllerDescriptor()
Returns the component controller descriptor of this component. |
Configuration |
getConfiguration()
Returns the configuration to which this component belongs. |
java.lang.String |
getImplementation()
Returns the implementation of this component. |
Component |
getMasterComponent()
Returns the master component of this component. |
java.lang.String |
getName()
Returns the name of this component. |
Component |
getParent()
Returns the parent component of this component. |
java.lang.Object[] |
getPath()
Returns the path of this component from the root component. |
Component |
getRootComponent()
Returns the root component of the configuration. |
Interface |
getServerInterface(java.lang.String name)
Returns the external server interface of this component whose name is given. |
java.util.List |
getServerInterfaces()
Returns the external server interfaces of this component. |
java.util.List |
getSlaveComponents()
Returns the slave components of this component. |
long |
getStatus()
Returns the status of this component. |
Component |
getSubComponent(java.lang.String name)
Returns the sub component of this component whose name is given. |
java.util.List |
getSubComponents()
Returns the sub components of this component. |
java.lang.String |
getTemplateControllerDescriptor()
Returns the template controller descriptor of this component. |
java.lang.String |
getType()
Returns the type of this component. |
boolean |
isComposite()
Returns true if this component is a composite component. |
boolean |
isShared()
Returns true if this component has slave component. |
void |
rebind(ClientInterface citf,
ServerInterface sitf)
Rebinds the given client interface to the given server interface. |
void |
removeClientInterface(ClientInterface itf)
Removes the given client interface from this component. |
void |
removeServerInterface(ServerInterface itf)
Removes the given server interface from this component. |
void |
removeSubComponent(Component child)
Removes the given sub component from this component. |
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Sets the value of an attribute of this component. |
void |
setAttributeController(java.lang.String attributeController)
Sets the name of the attribute controller interface of this component. |
void |
setComponentControllerDescriptor(java.lang.String desc)
Sets the component controller descriptor of this component. |
void |
setImplementation(java.lang.String implementation)
Sets the implementation of this component. |
void |
setName(java.lang.String name)
Sets the name of this component. |
void |
setStatus(long status)
Sets the status of this component. |
void |
setTemplateControllerDescriptor(java.lang.String desc)
Sets the template controller descriptor of this component. |
void |
setType(java.lang.String type)
Sets the type of this component. |
void |
unbind(ClientInterface citf)
Unbinds the given client interface. |
Field Detail |
public static final long OK
status
flags corresponding to a valid component.
public static final long NAME_MISSING
status
flag indicating that the component's name is
missing.
public static final long IMPLEMENTATION_MISSING
status
flag indicating that the component's
implementation is missing.
public static final long IMPLEMENTATION_CLASS_NOT_FOUND
status
flag indicating that the component's
implementation class cannot be found.
public static final long IMPLEMENTATION_CLASS_INVALID
status
flag indicating that the component's
implementation class is invalid.
public static final long INTERFACES_INVALID
status
flag indicating that the component's interfaces
are invalid.
public static final long ATTRIBUTE_CONTROLLER_MISSING
status
flag indicating that the component's attribute
controller interface is missing.
public static final long ATTRIBUTE_CONTROLLER_CLASS_NOT_FOUND
status
flag indicating that the component's attribute
controller interface cannot be found.
public static final long ATTRIBUTE_CONTROLLER_CLASS_INVALID
status
flag indicating that the component's attribute
controller interface is invalid.
Method Detail |
public Configuration getConfiguration()
public long getStatus()
setStatus(long)
public void setStatus(long status)
status
- the new status of this component.getStatus()
public Component getParent()
public Component getRootComponent()
getParent
until the root component is found.
public java.lang.Object[] getPath()
public java.lang.String getName()
setName(java.lang.String)
public void setName(java.lang.String name)
nameChanged
method.
name
- the new component name.getName()
public java.lang.String getType()
setType(java.lang.String)
public void setType(java.lang.String type)
typeChanged
method.
type
- the new component type.getType()
public java.lang.String getImplementation()
setImplementation(java.lang.String)
public void setImplementation(java.lang.String implementation)
implementationChanged
method.
implementation
- the new component implementation.getImplementation()
public java.util.List getClientInterfaces()
ClientInterface
objects
corresponding to the external client interfaces of this component.public Interface getClientInterface(java.lang.String name)
name
- the name of the interface that must be returned.
public void addClientInterface(ClientInterface itf)
clientInterfaceAdded
method.
itf
- the interface that must be added to this component. This
interface must have been created for this specific component (see
createClientInterface
).public void removeClientInterface(ClientInterface itf)
clientInterfaceRemoved
method.
itf
- the interface that must be removed from this component.public java.util.List getServerInterfaces()
ServerInterface
objects corresponding to the external server interfaces of this
component.public Interface getServerInterface(java.lang.String name)
name
- the name of the interface that must be returned.
public void addServerInterface(ServerInterface itf)
serverInterfaceAdded
method.
itf
- the interface that must be added to this component. This
interface must have been created for this specific component (see
createServerInterface
).public void removeServerInterface(ServerInterface itf)
serverInterfaceRemoved
method.
itf
- the interface that must be removed from this component.public void bind(ClientInterface citf, java.lang.String suffix, ServerInterface sitf)
interfaceBound
method.
citf
- a client interface of this component.sitf
- a server interface.public void rebind(ClientInterface citf, ServerInterface sitf)
interfaceRebound
method.
citf
- a client interface of this component.sitf
- a server interface.public void unbind(ClientInterface citf)
interfaceUnbound
method.
citf
- a client interface of this component.public java.lang.String getAttributeController()
setAttributeController(java.lang.String)
public void setAttributeController(java.lang.String attributeController)
attributeControllerChanged
method.
attributeController
- the new attribute controller interface name.getAttributeController()
public java.util.List getAttributeNames()
public java.lang.String getAttribute(java.lang.String attributeName)
attributeName
- the name of an attribute of this component.
setAttribute(java.lang.String, java.lang.String)
public void setAttribute(java.lang.String attributeName, java.lang.String attributeValue)
attributeChanged
method.
attributeName
- the name of an existing or of a new attribute of this
component.attributeValue
- the new value of this attribute.getAttribute(java.lang.String)
public java.lang.String getTemplateControllerDescriptor()
setTemplateControllerDescriptor(java.lang.String)
public void setTemplateControllerDescriptor(java.lang.String desc)
templateControllerDescriptorChanged
method.
desc
- the new template controller descriptor of this component.getTemplateControllerDescriptor()
public java.lang.String getComponentControllerDescriptor()
setComponentControllerDescriptor(java.lang.String)
public void setComponentControllerDescriptor(java.lang.String desc)
componentControllerDescriptorChanged
method.
desc
- the new component controller descriptor of this component.getComponentControllerDescriptor()
public boolean isShared()
getSlaveComponent
list is empty.public Component getMasterComponent()
public java.util.List getSlaveComponents()
Component
objects that
correspond to the slave components of this component. This list is
empty is this component is not a master component.public boolean isComposite()
getSubComponents
list is empty.public boolean contains(Component child)
child
- a component.
public boolean containsSlaveOfExternalComponent(Component root)
root
- a component.
public boolean containsMasterOfExternalComponent(Component root)
root
- a component.
public java.util.List getSubComponents()
Component
objects that correspond
to the sub components of this component. This list is empty if this
component is a primitive component.public Component getSubComponent(java.lang.String name)
name
- the name of a sub component of this component.
public void addSubComponent(Component child)
subComponentAdded
method.
child
- a component.public void removeSubComponent(Component child)
subComponentRemoved
method.
child
- a sub component of this component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |