|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Component
The base interface for all components of the model. Each component has two types of children: components and extensions. The two are treated separately. There may be arbitrary number of components of the same type registered with a single parent component and each must have a unique name. Only a single extension of a given type is allowed per parent component.
| Method Summary | |
|---|---|
void |
addComponent(Component component)Adds a new child component to this parent component. |
void |
addExtension(QName type, Object extension)Adds a new extension of the given type as a child of this component. |
void |
addExtensionAttribute(QName type, Object extensionAttribute)Adds a new extension attribute of the given type to this component. |
Object |
createExtension(QName extensionType)Creates a new instance of the extension of the provided types. |
List |
getAllExtensions(QName extensionType)Get all child extensions of this component with the given type |
Component |
getComponent(QName componentType, QName componentName)The child component (if any) with the provided type and name. |
Collection |
getComponents()A collection of all the child components of this component. |
Collection<Component> |
getComponents(QName type)A collection of the child components of this component, that are of the specified type |
Object |
getExtension(QName extensionType)The child extension of this component with the given type. |
Object |
getExtension(QName extensionType, boolean create)Returns or optionally creates a child extension of this component with the given type. |
Object |
getExtensionAttribute(QName extensionAttributeType)The extension attribute of this component with the given type. |
QName[] |
getExtensionAttributeTypes()Returns an array of all the currently registered extension attribute types for this component. |
QName[] |
getExtensionTypes()Returns an array of all the currently registered extension types for this component. |
Factory |
getFactory()A reference to the factory that created the component. |
Model |
getModel()A reference to the model in which the component exists. |
QName |
getName()The unique name of this component within the content of its parent. |
Component |
getParent()The parent of this component in the model. |
QName |
getType()The component type name. |
void |
removeComponent(QName componentType, QName componentName)Removes a child component with the given type and name. |
void |
removeExtension(QName extensionType)Removes an extension of the given type from this component. |
void |
removeExtensionAttribute(QName extensionAttributeType)Removes an extension attribute of the given type from this component. |
| Method Detail |
|---|
QName getType()
Factory getFactory()
Model getModel()
Component getParent()
QName getName()
QName[] getExtensionTypes()
Object getExtension(QName extensionType)
extensionType - The extension type of the extension to returned.List getAllExtensions(QName extensionType)
extensionName -
Object getExtension(QName extensionType,
boolean create)
extensionType - Type type of the extension to be found or created.create - True if an extension should be created if not found and false otherwise.Object createExtension(QName extensionType)
extensionType - The type of the extension to be created.
void addExtension(QName type,
Object extension)
type - Type type of the extension being added.extension - The extension to be added.void removeExtension(QName extensionType)
extensionType - The type of extension to remove.QName[] getExtensionAttributeTypes()
Object getExtensionAttribute(QName extensionAttributeType)
extensionType - The extension attribute type of the extension attribute to returned.
void addExtensionAttribute(QName type,
Object extensionAttribute)
type - Type type of the extension attribute being added.extensionAttribute - The extension attribute to be added.void removeExtensionAttribute(QName extensionAttributeType)
extensionAttributeType - The type of extension attribute to remove.Collection getComponents()
Collection<Component> getComponents(QName type)
type - The type of the components to return
Component getComponent(QName componentType,
QName componentName)
componentType - The type of the component to return.componentName - The name of the component to return.void addComponent(Component component)
component - The new child component. Will replace any existing child component with the same type and name.
void removeComponent(QName componentType,
QName componentName)
componentType - The type of the child component to remove.componentName - The name of the child component to remove.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||