org.netbeans.modules.xml.xam/1 1.18.0 1

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

All Known Subinterfaces:
DocumentComponent<C>, Nameable<T>, Named<T>, NamedReferenceable<T>
All Known Implementing Classes:
AbstractComponent, AbstractDocumentComponent

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.
 List<C> getChildren()
           
<T extends C>
List<T>
getChildren(Class<T> type)
           
 List<C> getChildren(Collection<Class<? extends C>> types)
           
 Model getModel()
           
 C getParent()
           
 

Method Detail

getParent

C getParent()
Returns:
parent component.

getChildren

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

getChildren

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

getChildren

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

getModel

@CheckForNull
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.


org.netbeans.modules.xml.xam/1 1.18.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.