org.almendra.janet.cas.node
Class ApplicationDescriptor
java.lang.Object
org.almendra.janet.cas.node.Descriptor
org.almendra.janet.cas.node.ApplicationDescriptor
- Direct Known Subclasses:
- SystemApplicationDescriptor
public class ApplicationDescriptor
- extends Descriptor
- Author:
- Oliver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParentTag
public static final java.lang.String XMLParentTag
- See Also:
- Constant Field Values
XMLNodeTag
public static final java.lang.String XMLNodeTag
- See Also:
- Constant Field Values
XMLNameTag
public static final java.lang.String XMLNameTag
- See Also:
- Constant Field Values
XMLAgentsTag
public static final java.lang.String XMLAgentsTag
- See Also:
- Constant Field Values
XMLAgentNameTag
public static final java.lang.String XMLAgentNameTag
- See Also:
- Constant Field Values
XMLExportedEventsTag
public static final java.lang.String XMLExportedEventsTag
- See Also:
- Constant Field Values
name
protected java.lang.String name
capabilityDescriptors
protected java.util.List capabilityDescriptors
agentNames
protected java.util.List agentNames
exportedEvents
protected java.util.List exportedEvents
ApplicationDescriptor
public ApplicationDescriptor()
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String applicationName)
- Parameters:
name
- The name to set.
getCapabilityDescriptors
public java.util.List getCapabilityDescriptors()
- Returns:
- Returns the capabilities.
getCapabilities
public java.util.List getCapabilities(AbstractApplication app)
throws DescriptorParseException
- Throws:
DescriptorParseException
addCapabilityDescriptor
public void addCapabilityDescriptor(CapabilityDescriptor desc)
createAppDesc
public static ApplicationDescriptor createAppDesc(org.jdom.Element element)
throws XMLParseException
- Throws:
XMLParseException
fill
public void fill(org.jdom.Element element)
throws XMLParseException
- Throws:
XMLParseException
setExportedEvents
protected void setExportedEvents(org.jdom.Element element)
throws XMLParseException
- Parameters:
element
-
- Throws:
XMLParseException
createEventDescriptor
protected EventDescriptor createEventDescriptor(org.jdom.Element eventNode)
throws XMLParseException
- Parameters:
eventNode
-
- Returns:
-
- Throws:
XMLParseException
setName
protected void setName(org.jdom.Element element)
throws XMLParseException
- Parameters:
element
-
- Throws:
XMLParseException
isMustHaveAgentsDefined
protected boolean isMustHaveAgentsDefined()
- Returns:
fillCapabilities
protected void fillCapabilities(org.jdom.Element element)
throws XMLParseException
- Throws:
XMLParseException
fillCapabilities
protected void fillCapabilities(org.jdom.Element element,
boolean mustHaveAgentsDefined)
throws XMLParseException
- Throws:
XMLParseException
setCapabilityDescriptors
public void setCapabilityDescriptors(java.util.List capabilityDescriptors)
- Parameters:
capabilityDescriptors
- The capabilityDescriptors to set.
addAgentName
public void addAgentName(java.lang.String agentName)
fill
protected void fill(AbstractApplication app)
throws DescriptorParseException
- Throws:
DescriptorParseException
toSystemApplication
public SystemApplication toSystemApplication()
throws DescriptorParseException
- Throws:
DescriptorParseException
toApplication
public Application toApplication()
throws DescriptorParseException
- Throws:
DescriptorParseException
getExportedEvents
public java.util.List getExportedEvents()
- Returns:
- Returns the exportedEvents.
visit
public void visit(java.util.Map values)
- Parameters:
values
-