|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.dat.cx.CxComponent
|
+--com.dat.cx.CxPort
|
+--com.dat.cx.CxXmlPort
CxPort provides semantics for an xml port component. An Xml port may be typed according to the type of xml document it can recieve. If typed, only documents of that type will be processed on recieving a document
| Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
| Fields inherited from interface com.dat.cx.CxPortInterface |
COMPOSITE, EVENT, INTERFACE, METHOD, PROVIDES, USES |
| Constructor Summary | |
CxXmlPort()
Default constructor |
|
CxXmlPort(java.lang.String name,
boolean direction,
CxComponent type)
Constructor |
|
| Method Summary | |
XSet |
export(XSet doc,
CxProject project)
Export the definition of this xml port (only this component) |
CxComponent |
getDocType()
Get the document type |
CxProperty |
getDocTypeProperty()
|
java.lang.String |
getPortIcon()
Get the port icon. |
java.util.Vector |
importSpec(XSet spec)
Import specification from an XML element |
void |
importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
Import the definition of an xml port from another xml port. |
boolean |
isValidEvent(CxXmlEvent xmlEvent)
Validate that the input event contains a document whose type is compatible with the port |
boolean |
isXmlPort()
Determines if the component is an xml port |
void |
recieve(java.util.EventObject event)
Recieve an event as required by the CxListener interface. |
void |
setDocType(CxComponent docType)
Set the document type |
void |
setPortIcon(java.lang.String portIcon)
Set the icon for the port |
| Methods inherited from class com.dat.cx.CxPort |
addCxListener, exportInfo, getCxListeners, getDisplay, getEditFrame, getIcon, getPortDirection, hasCxListeners, importInfo, inversePortDirection, isPort, makeInfo, removeCxListener, setPortDirection |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CxXmlPort()
public CxXmlPort(java.lang.String name,
boolean direction,
CxComponent type)
name - the name for the portdirection - the direction of the port, true for PROVIDES, false for USEStype - the type of the xml port| Method Detail |
public boolean isXmlPort()
isXmlPort in class CxComponent
public void importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
importTemplate in class CxPortfrom - the xml port from which to import a definitioncopy - indicate that this is a copy 'vs' extendsinherit - indicate that the definition is inherited as part of an extendsinverse - (not used)public java.util.Vector importSpec(XSet spec)
importSpec in class CxComponentspec - the xml element containing the specification
public XSet export(XSet doc,
CxProject project)
export in class CxPortdoc - the XSet document being constructed. The definition is added to this documentpublic void recieve(java.util.EventObject event)
recieve in class CxPortevent - the recieved eventpublic boolean isValidEvent(CxXmlEvent xmlEvent)
xmlEvent - the input event containing the documentpublic CxComponent getDocType()
public CxProperty getDocTypeProperty()
public void setDocType(CxComponent docType)
docType - the new document typepublic java.lang.String getPortIcon()
public void setPortIcon(java.lang.String portIcon)
portIcon - the port icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||