org.netbeans.modules.xml.xam.dom
Interface DocumentComponent<C extends DocumentComponent>

All Superinterfaces:
Component<C>
All Known Subinterfaces:
Activity, ActivityHolder, AfterExtensions, AfterImport, AfterSources, AfterTargets, Alert, AnotherVersionBpelComponent, AnotherVersionBpelProcess, Assign, AssignChild, BaseCorrelation, BaseFaultHandlers, BaseScope, Binding, BindingFault, BindingInput, BindingOperation, BindingOutput, BooleanExpr, BpelContainer, BpelEntity, BPELExtensibilityComponent, BpelReferenceable, Branches, Catch, CatchAll, CompensatableActivityHolder, Compensate, CompensateScope, CompensationHandler, CompensationHandlerHolder, CompletionCondition, CompositeActivity, Condition, Copy, Correlation, CorrelationContainer, CorrelationProperty, CorrelationSet, CorrelationSetContainer, CorrelationsHolder, DeadlineExpression, Definitions, Documentation, Documentation, Documentation, DurationExpression, Else, ElseIf, Empty, EventHandlers, Exit, Expression, ExtendableActivity, ExtensibilityElement, ExtensibilityElement.EmbeddedModel, ExtensibilityElement.ParentSelector, ExtensibilityElement.UpdaterProvider, ExtensibleAssign, ExtensibleElements, Extension, ExtensionActivity, ExtensionContainer, ExtensionEntity, Fault, FaultHandler, FaultHandlers, FinalCounterValue, Flow, For, ForEach, From, FromChild, FromPart, FromPartContainer, FromPartsHolder, If, Import, Import, Input, Invoke, Link, LinkContainer, Literal, Log, Message, MessageExchange, MessageExchangeContainer, NotificationOperation, OnAlarmEvent, OnAlarmPick, OnEvent, OneWayOperation, OnMessage, OnMessageCommon, Operation, OperationParameter, Output, Part, PartnerLink, PartnerLinkContainer, PartnerLinkType, PatternedCorrelation, PatternedCorrelationContainer, Pick, Port, PortType, Process, PropertyAlias, Query, Query, Receive, ReferenceableExtensibilityElement, ReferenceableWSDLComponent, RepeatEvery, RepeatUntil, Reply, RequestResponseOperation, ReThrow, Role, Scope, Sequence, Service, ServiceRef, SolicitResponseOperation, Source, SourceContainer, StartCounterValue, Target, TargetContainer, TerminationHandler, Throw, TimeEvent, TimeEventHolder, To, ToPart, ToPartContainer, ToPartsHolder, Trace, Types, Validate, Variable, VariableContainer, VariableDeclaration, VariableDeclarationScope, Wait, While, WSDLComponent
All Known Implementing Classes:
AbstractDocumentComponent, ActivityHolderImpl, ActivityImpl, AlertImpl, AnotherVersionBpelProcessImpl, AssignImpl, BaseScopeImpl, BindingFaultImpl, BindingImpl, BindingInputImpl, BindingOperationImpl, BindingOutputImpl, BooleanExprImpl, BpelContainerImpl, BpelEntityImpl, BranchesImpl, CatchAllImpl, CatchImpl, CompensateImpl, CompensateScopeImpl, CompensationHandlerImpl, CompletionConditionImpl, CompositeActivityImpl, ConditionalActivity, ConditionImpl, CopyImpl, CorrelationContainerImpl, CorrelationImpl, CorrelationPropertyImpl, CorrelationSetContainerImpl, CorrelationSetImpl, DeadlineExpressionImpl, DefinitionsImpl, DocumentationImpl, DocumentationImpl, DocumentationImpl, ElseIfImpl, ElseImpl, EmptyImpl, EventHandlersImpl, ExitImpl, ExpressionImpl, ExtensibleAssignImpl, ExtensibleElementsImpl, ExtensionActivityImpl, ExtensionContainerImpl, ExtensionImpl, FaultHandlersImpl, FaultImpl, FinalCounterValueImpl, FlowImpl, ForEachImpl, ForImpl, FromHolderImpl, FromImpl, FromPartConainerImpl, FromPartImpl, org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement, IfImpl, ImportImpl, ImportImpl, InputImpl, InvokeImpl, InvokeReceiveReplyCommonImpl, LinkContainerImpl, LinkImpl, LiteralImpl, LoggingEntityImpl, LogImpl, MessageExchangeContainerImpl, MessageExchangeImpl, MessageImpl, NamedElementImpl, org.netbeans.modules.xml.wsdl.model.spi.NamedExtensibilityElementBase, NamedImpl, NamespaceSpecImpl, NotificationOperationImpl, OnAlarmEventImpl, OnAlarmPickImpl, OnEventImpl, OneWayOperationImpl, OnMessageCommonImpl, OnMessageImpl, OperationImpl, OperationParameterImpl, OutputImpl, PartImpl, PartnerLinkContainerImpl, PartnerLinkImpl, PartnerLinkTypeImpl, PatternedCorrelationContainerImpl, PatternedCorrelationImpl, PickImpl, PortImpl, PortTypeImpl, ProcessImpl, PropertyAliasImpl, QueryImpl, QueryImpl, ReceiveImpl, RepeatEveryImpl, RepeatUntilImpl, ReplyImpl, ReplyReceiveIntersectImpl, RequestResponseOperationImpl, ReThrowImpl, RoleImpl, ScopeImpl, SequenceImpl, ServiceImpl, ServiceRefImpl, SolicitResponseOperationImpl, SourceContainerImpl, SourceImpl, StartCounterValueImpl, TargetContainerImpl, TargetImpl, TerminationHandlerImpl, ThrowImpl, ToFromIntersectImpl, ToImpl, ToPartContainerImpl, ToPartImpl, TraceImpl, TypesImpl, ValidateImpl, VariableContainerImpl, VariableImpl, WaitImpl, WhileImpl, org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase

public interface DocumentComponent<C extends DocumentComponent>
extends Component<C>

A component in model.


Field Summary
static java.lang.String TEXT_CONTENT_PROPERTY
           
 
Method Summary
 int findAttributePosition(java.lang.String attributeName)
          Returns position of the attribute by the given name, or -1 if not found.
 C findChildComponent(org.w3c.dom.Element e)
          Returns child component backed by given element node.
 int findPosition()
          Returns the position of this component in the schema document, expressed as an offset from the start of the document.
 java.lang.String getAttribute(Attribute attribute)
           
 org.w3c.dom.Element getPeer()
          Returns the DOM element corresponding to this component.
 boolean isInDocumentModel()
          Returns true if the component is part of the document model.
 boolean referencesSameNode(org.w3c.dom.Node n)
          Returns true if the node referenced by this component is n.
 void setAttribute(java.lang.String eventPropertyName, Attribute attribute, java.lang.Object value)
          Sets the attribute value.
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getModel, getParent
 

Field Detail

TEXT_CONTENT_PROPERTY

static final java.lang.String TEXT_CONTENT_PROPERTY
See Also:
Constant Field Values
Method Detail

getPeer

org.w3c.dom.Element getPeer()
Returns the DOM element corresponding to this component.


getAttribute

java.lang.String getAttribute(Attribute attribute)
Returns:
string value of the given attribute.

setAttribute

void setAttribute(java.lang.String eventPropertyName,
                  Attribute attribute,
                  java.lang.Object value)
Sets the attribute value.

Parameters:
eventPropertyName - name property change event to fire.
attribute - the attribute to set value for.
value - for the attribute.

isInDocumentModel

boolean isInDocumentModel()
Returns true if the component is part of the document model.


findPosition

int findPosition()
Returns the position of this component in the schema document, expressed as an offset from the start of the document.

Returns:
the position of this component in the document

referencesSameNode

boolean referencesSameNode(org.w3c.dom.Node n)
Returns true if the node referenced by this component is n.


findChildComponent

C findChildComponent(org.w3c.dom.Element e)
Returns child component backed by given element node.


findAttributePosition

int findAttributePosition(java.lang.String attributeName)
Returns position of the attribute by the given name, or -1 if not found.