org.netbeans.modules.bpel.model.ext.logging.impl
Class TraceImpl

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractComponent<C>
      extended by org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent<BpelEntity>
          extended by org.netbeans.modules.bpel.model.impl.BpelEntityImpl
              extended by org.netbeans.modules.bpel.model.impl.BpelContainerImpl
                  extended by org.netbeans.modules.bpel.model.ext.logging.impl.LoggingEntityImpl
                      extended by org.netbeans.modules.bpel.model.ext.logging.impl.TraceImpl
All Implemented Interfaces:
BpelContainer, BpelEntity, ExtensionEntity, Trace, Component<BpelEntity>, DocumentComponent<BpelEntity>, DocumentModelAccess.NodeUpdater

public class TraceImpl
extends LoggingEntityImpl
implements Trace

Author:
ads

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
AbstractDocumentComponent.PrefixAttribute
 
Field Summary
 
Fields inherited from interface org.netbeans.modules.bpel.model.ext.logging.api.Trace
LOGGING_NAMESPACE_URI
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
BUSINESS_PROCESS_1_1_NS_URI, BUSINESS_PROCESS_DRAFT_NS_URI, BUSINESS_PROCESS_NS_URI
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Fields inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
BUSINESS_PROCESS_1_1_NS_URI, BUSINESS_PROCESS_DRAFT_NS_URI, BUSINESS_PROCESS_NS_URI
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Constructor Summary
TraceImpl(LoggingEntityFactory factory, BpelBuilderImpl builder)
           
TraceImpl(LoggingEntityFactory factory, BpelModelImpl model, org.w3c.dom.Element e)
           
 
Method Summary
 void addAlert(Alert alert)
          Add alarm.
 void addLog(Log log)
          Adds OnEvent.
protected  BpelEntity create(org.w3c.dom.Element element)
          This method should be implemented by each container .
 Alert getAlert(int i)
          Returns ith onAlarmEvent.
 Alert[] getAlerts()
          Returns array of onAlarmEvent children.
protected  Attribute[] getDomainAttributes()
          This method should be implemented by any real class.
 java.lang.Class<? extends BpelEntity> getElementType()
           
 EntityUpdater getEntityUpdater()
           
 Log getLog(int i)
          Returns ith OnEvent child .
 Log[] getLogs()
          Returns aray of onEvent children.
 void insertAlert(Alert alert, int i)
          Insert alarm to the ith place.
 void insertLog(Log log, int i)
          Insert event on the ith place.
 void removeAlert(int i)
          Removes ith onAlarmEvent.
 void removeLog(int i)
          Removes ith onMessage object.
 void setAlert(Alert alert, int i)
          Set ith onAlarmEvent to alarm object.
 void setAlerts(Alert[] alerts)
          Set new array of onAlarmEvent children.
 void setLog(Log log, int i)
          Set event to the ith place.
 void setLogs(Log[] logs)
          Set new array of OnEvent children.
 int sizeOfAlerts()
           
 int sizeOfLogs()
           
 
Methods inherited from class org.netbeans.modules.bpel.model.ext.logging.impl.LoggingEntityImpl
accept, canExtend, getFactory
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BpelContainerImpl
addChild, addChildAfter, addChildBefore, canPaste, getChild, getChild, getChildren, getChildType, getMultiplicity, indexOf, insertAtAbsoluteIndex, insertAtIndex, insertAtIndexAfter, populateChildren, remove, removeChild, removeChild, setArrayAfter, setArrayBefore, setChild, setChildAtIndex
 
Methods inherited from class org.netbeans.modules.bpel.model.impl.BpelEntityImpl
accept, acceptChildren, checkDeleted, checkInTree, copy, copy, createReference, createSchemaReference, createWSDLReference, cut, getAttribute, getAttributeValueOf, getBooleanAttribute, getBpelModel, getBpelReference, getBpelReferenceList, getCookie, getCorrectedText, getEntityName, getModel, getNamespaceContext, getParent, getQNameAttribute, getSchemaReference, getSchemaReferenceList, getText, getUID, getWSDLReference, getWSDLReferenceList, postGlobalEvent, postGlobalEvent, readLock, readUnlock, removeAttribute, removeCookie, removeReference, setAttribute, setBpelAttribute, setBpelAttribute, setBpelAttribute, setBpelReference, setBpelReferenceList, setCookie, setInTree, setInTreeRecursively, setSchemaReference, setText, setText, setWSDLReference, setWSDLReferenceList, writeLock, writeUnlock
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
addPrefix, appendChildQuietly, createPrefixAttribute, ensureUnique, ensureValueNamespaceDeclared, findAttributePosition, findChildComponent, findChildComponentByIdentity, findDomainIndex, findPosition, fireChildAdded, fireChildRemoved, firePropertyChange, fireValueChanged, getAccess, getAnyAttribute, getAttributeMap, getChildElement, getChildElementText, getEffectiveParent, getLeadingText, getNamespaceURI, getNodeIndexOf, getPeer, getPrefixedName, getPrefixedName, getPrefixedName, getPrefixes, getQName, getQName, getText, getText, getTrailingText, getXmlFragment, getXmlFragmentInclusive, insertAtIndexQuietly, isInDocumentModel, lookupNamespaceURI, lookupNamespaceURI, lookupPrefix, referencesSameNode, removeAttributeQuietly, removeChildQuietly, removePrefix, resolveModel, setAnyAttribute, setAttributeQuietly, setChildElementText, setLeadingText, setQNameAttribute, setText, setTrailingText, setXmlFragment, updatePeer, updateReference, updateReference, updateReference, verifyWrite
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractComponent
addAfter, addBefore, addPropertyChangeListener, appendChild, checkNullOrDuplicateChild, getChildren, getChildren, insertAtIndex, insertAtIndex, isChildrenInitialized, removeChild, removeComponentListener, removePropertyChangeListener, setChild, setChild, setChildAfter, setChildBefore, setModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.ExtensionEntity
canExtend
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
accept, accept, copy, cut, getBpelModel, getCookie, getNamespaceContext, getParent, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelContainer
indexOf, remove
 
Methods inherited from interface org.netbeans.modules.bpel.model.api.BpelEntity
accept, accept, copy, cut, getBpelModel, getCookie, getNamespaceContext, getParent, getUID, removeCookie, setCookie
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel
 

Constructor Detail

TraceImpl

TraceImpl(LoggingEntityFactory factory,
          BpelModelImpl model,
          org.w3c.dom.Element e)

TraceImpl

TraceImpl(LoggingEntityFactory factory,
          BpelBuilderImpl builder)
Method Detail

getElementType

public java.lang.Class<? extends BpelEntity> getElementType()
Specified by:
getElementType in interface BpelEntity
Returns:
interface in OM that represented by this entity.

getEntityUpdater

public EntityUpdater getEntityUpdater()
Specified by:
getEntityUpdater in interface ExtensionEntity
Returns:
Updater that will be used for update OM while sync with sources.

getDomainAttributes

protected Attribute[] getDomainAttributes()
Description copied from class: BpelEntityImpl
This method should be implemented by any real class. It returns list of possible attributes for entity. It used in firing event about attribute change while synchronizing with source.

Specified by:
getDomainAttributes in class BpelEntityImpl

getLogs

public Log[] getLogs()
Description copied from interface: Trace
Returns aray of onEvent children.

Specified by:
getLogs in interface Trace
Returns:
array of onMessage.

getLog

public Log getLog(int i)
Description copied from interface: Trace
Returns ith OnEvent child .

Specified by:
getLog in interface Trace
Parameters:
i - index
Returns:
ith OnEvent object.

removeLog

public void removeLog(int i)
Description copied from interface: Trace
Removes ith onMessage object.

Specified by:
removeLog in interface Trace
Parameters:
i - index

setLogs

public void setLogs(Log[] logs)
Description copied from interface: Trace
Set new array of OnEvent children.

Specified by:
setLogs in interface Trace

setLog

public void setLog(Log log,
                   int i)
Description copied from interface: Trace
Set event to the ith place.

Specified by:
setLog in interface Trace
i - index

addLog

public void addLog(Log log)
Description copied from interface: Trace
Adds OnEvent.

Specified by:
addLog in interface Trace

insertLog

public void insertLog(Log log,
                      int i)
Description copied from interface: Trace
Insert event on the ith place.

Specified by:
insertLog in interface Trace
i - index

getAlerts

public Alert[] getAlerts()
Description copied from interface: Trace
Returns array of onAlarmEvent children.

Specified by:
getAlerts in interface Trace
Returns:
array of onAlarmEvent children.

getAlert

public Alert getAlert(int i)
Description copied from interface: Trace
Returns ith onAlarmEvent.

Specified by:
getAlert in interface Trace
Parameters:
i - index in array.
Returns:
ith onAlarmEvent.

removeAlert

public void removeAlert(int i)
Description copied from interface: Trace
Removes ith onAlarmEvent.

Specified by:
removeAlert in interface Trace
Parameters:
i - index for remove.

setAlerts

public void setAlerts(Alert[] alerts)
Description copied from interface: Trace
Set new array of onAlarmEvent children.

Specified by:
setAlerts in interface Trace

setAlert

public void setAlert(Alert alert,
                     int i)
Description copied from interface: Trace
Set ith onAlarmEvent to alarm object.

Specified by:
setAlert in interface Trace
i - index.

addAlert

public void addAlert(Alert alert)
Description copied from interface: Trace
Add alarm.

Specified by:
addAlert in interface Trace

insertAlert

public void insertAlert(Alert alert,
                        int i)
Description copied from interface: Trace
Insert alarm to the ith place.

Specified by:
insertAlert in interface Trace
i - index

sizeOfLogs

public int sizeOfLogs()
Specified by:
sizeOfLogs in interface Trace
Returns:
size of onMessage children.

sizeOfAlerts

public int sizeOfAlerts()
Specified by:
sizeOfAlerts in interface Trace
Returns:
size of onAlarm children.

create

protected BpelEntity create(org.w3c.dom.Element element)
Description copied from class: BpelContainerImpl
This method should be implemented by each container . Container should recognize in element its child and create Bpel element respectively. Warning! Here exist some possibility for error. Each container should recognize only those children that could be inside it as specification said. One cannot create one static mehtod for recognition all BPEL elements because f.e. container VariableContainer could have ONLY Variable inside it. It cannot have "flow" tag inside it ( it can have "flow" but this is just extention element that will not be treated as BPEL element ).

Specified by:
create in class BpelContainerImpl
Returns: