org.netbeans.modules.xml.xam
Interface Component<C extends Component>

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, DocumentComponent<C>, 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, Nameable<T>, Named<T>, NamedElement, NamedReferenceable<T>, 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:
AbstractComponent, 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 Component<C extends Component>

A component in model.


Method Summary
 boolean canPaste(Component child)
          Returns true if given component can be added as this component child.
 Component copy(C parent)
          Returns a copy of this component for adding into the given parent component.
 java.util.List<C> getChildren()
           
<T extends C>
java.util.List<T>
getChildren(java.lang.Class<T> type)
           
 java.util.List<C> getChildren(java.util.Collection<java.lang.Class<? extends C>> types)
           
 Model getModel()
           
 C getParent()
           
 

Method Detail

getParent

C getParent()
Returns:
parent component.

getChildren

java.util.List<C> getChildren()
Returns:
the unmodifiable list of child components.

getChildren

<T extends C> java.util.List<T> getChildren(java.lang.Class<T> type)
Parameters:
type - Interested children type to return.
Returns:
unmodifiable list of directly contained component of specified type.

getChildren

java.util.List<C> getChildren(java.util.Collection<java.lang.Class<? extends C>> types)
Parameters:
types - Interested children type to return.
Returns:
unmodifiable list of directly contained component of specified types.

getModel

Model getModel()
Returns:
the model where this element is being used or null if not currently part of a model.

copy

Component copy(C parent)
Returns a copy of this component for adding into the given parent component.


canPaste

boolean canPaste(Component child)
Returns true if given component can be added as this component child.