Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.cerberus.component.descriptor
Class ComponentDescriptor  view ComponentDescriptor download ComponentDescriptor.java

java.lang.Object
  extended bycom.aendvari.cerberus.component.descriptor.ComponentDescriptor

public class ComponentDescriptor
extends java.lang.Object

Describes the attributes and messages of an assembled component.


Nested Class Summary
static class ComponentDescriptor.Attribute
          Represents a single attribute of the component.
static class ComponentDescriptor.Message
          Represents a single message of the component.
protected static class ComponentDescriptor.Property
          Represents a single property of the component.
 
Field Summary
protected  java.util.Map attributes
          Contains the attributes of this component.
protected  java.lang.String backingClass
          The backing class of this component.
protected  java.lang.String definition
          The definition component.
protected  java.util.Map messages
          Contains the message of this component.
protected  java.lang.String name
          The name of this component.
 
Constructor Summary
ComponentDescriptor()
          Constructs a ComponentDescriptor instance.
ComponentDescriptor(ComponentDescriptor descriptor)
          Constructs a ComponentDescriptor instance as a copy of the one supplied.
 
Method Summary
 void addAttribute(java.lang.String name, int access, java.lang.String value)
          Sets the value of the specified attribute.
 void addMessage(java.lang.String name, int type, int access, java.lang.String topic, MessageSignature signature)
          Sets the topic of the specified message.
 ComponentDescriptor.Attribute getAttribute(java.lang.String name)
          Returns the specified attribute.
 java.util.Collection getAttributes()
          Returns all attributes of this component.
 java.lang.String getBackingClass()
          Returns the class of this component.
 java.lang.String getDefinition()
          Returns the definition of this component.
 ComponentDescriptor.Message getMessage(java.lang.String name)
          Returns the topic of the specified message.
 java.util.Collection getMessages()
          Returns all message topics of this component.
 java.lang.String getName()
          Returns the name of this component.
 void setBackingClass(java.lang.String setClass)
          Sets the class of this component.
 void setDefinition(java.lang.String setDefinition)
          Sets the definition of this component.
 void setName(java.lang.String setName)
          Sets the name of this component.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of this component.


definition

protected java.lang.String definition
The definition component.


backingClass

protected java.lang.String backingClass
The backing class of this component.


attributes

protected java.util.Map attributes
Contains the attributes of this component.


messages

protected java.util.Map messages
Contains the message of this component.

Constructor Detail

ComponentDescriptor

public ComponentDescriptor()
Constructs a ComponentDescriptor instance.


ComponentDescriptor

public ComponentDescriptor(ComponentDescriptor descriptor)
Constructs a ComponentDescriptor instance as a copy of the one supplied.

Method Detail

getName

public java.lang.String getName()
Returns the name of this component.


setName

public void setName(java.lang.String setName)
Sets the name of this component.


setBackingClass

public void setBackingClass(java.lang.String setClass)
Sets the class of this component.


getBackingClass

public java.lang.String getBackingClass()
Returns the class of this component.


setDefinition

public void setDefinition(java.lang.String setDefinition)
Sets the definition of this component.


getDefinition

public java.lang.String getDefinition()
Returns the definition of this component.


getAttribute

public ComponentDescriptor.Attribute getAttribute(java.lang.String name)
Returns the specified attribute.


addAttribute

public void addAttribute(java.lang.String name,
                         int access,
                         java.lang.String value)
Sets the value of the specified attribute.


getAttributes

public java.util.Collection getAttributes()
Returns all attributes of this component.


getMessage

public ComponentDescriptor.Message getMessage(java.lang.String name)
Returns the topic of the specified message.


addMessage

public void addMessage(java.lang.String name,
                       int type,
                       int access,
                       java.lang.String topic,
                       MessageSignature signature)
Sets the topic of the specified message.


getMessages

public java.util.Collection getMessages()
Returns all message topics of this component.


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).