|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExampleRootBean
Defines an example root descriptor bean. This interface provides an example of each property pattern and describes the characteristics of each in accompanying javadocs.
This bean is identified as the root bean by the presence of a
BeanAnnotations.ROOT
annotation in
the interface javadoc block.
Method Summary | |
---|---|
void |
addReference(ExampleChildBean bean)
Adds bean to References (See ExampleRootBean.getReferences() ) |
ExampleChildBean |
createChild()
Creates a new child and adds it to the Children array property. |
ExampleChildBean |
createNullableChild()
Creates new instance of NullableChild and returns it. |
void |
destroyChild(ExampleChildBean childToDestroy)
Destroys childToDestroy by removing it from the Children array property. |
void |
destroyNullableChild()
Destroys existing NullableChild by setting the property to null. |
ExampleChildBean[] |
getAllChildren()
|
ExampleChildBean[] |
getChildren()
Defines, in conjunction with ExampleRootBean.createChild() and ExampleRootBean.destroyChild(weblogic.descriptor.example.ExampleChildBean)
an array property of child beans named Children. |
int |
getModifiablePrimitive()
Defines, in conjunction with ExampleRootBean.setModifiablePrimitive(int) , a modifiable
primitive property named ModifiablePrimitive. |
ExampleChildBean |
getModifiableRef()
Defines, in conjunction with ExampleRootBean.setModifiableRef(weblogic.descriptor.example.ExampleChildBean) a nullable child
bean property named ModifiableRef. |
ExampleChildBean |
getNullableChild()
Defines, in conjunction with ExampleRootBean.createNullableChild() and
ExampleRootBean.destroyNullableChild() , a nullable child bean property named
NullableChild. |
ExampleChildBean |
getReadOnlyChild()
Defines a read-only child property name ReadOnlyChild. |
int |
getReadOnlyPrimitive()
Defines a read-only primitive property named ReadOnlyPrimitive. |
ExampleChildBean |
getReadOnlyRef()
Defines a read-only bean reference named ReadOnlyRef. |
ExampleChildBean |
getReferences()
Defines, in conjunction with ExampleRootBean.addReference(weblogic.descriptor.example.ExampleChildBean) and
ExampleRootBean.removeReference(weblogic.descriptor.example.ExampleChildBean) , a array of references property named
References. |
ExampleChildBean |
lookupChild(String name)
Searches the Children array property for the first occurance of a child whose Name property matches the value of name. |
void |
removeReference(ExampleChildBean bean)
Removes bean from References (See ExampleRootBean.getReferences() |
void |
setModifiablePrimitive(int value)
See ExampleRootBean.getModifiablePrimitive() |
void |
setModifiableRef(ExampleChildBean bean)
See ExampleRootBean.getModifiableRef() |
Method Detail |
---|
int getReadOnlyPrimitive()
int getModifiablePrimitive()
ExampleRootBean.setModifiablePrimitive(int)
, a modifiable
primitive property named ModifiablePrimitive.
void setModifiablePrimitive(int value)
ExampleRootBean.getModifiablePrimitive()
ExampleChildBean getReadOnlyChild()
ExampleChildBean getNullableChild()
ExampleRootBean.createNullableChild()
and
ExampleRootBean.destroyNullableChild()
, a nullable child bean property named
NullableChild. This property will initially have a null value.
ExampleChildBean createNullableChild()
ExampleRootBean.getNullableChild()
will return
the same instance.
void destroyNullableChild()
ExampleRootBean.getNullableChild()
will return null.
ExampleChildBean[] getChildren()
ExampleRootBean.createChild()
and ExampleRootBean.destroyChild(weblogic.descriptor.example.ExampleChildBean)
an array property of child beans named Children.
Note that create and destroy methods use the component
name, Child, rather than the array property name. In most cases
the component name can be determined automatically (by computing the
singular of the array property name). In this case, because
Children is an irregular plural, we use an explicit annotation to
specify the component name (see
PropertyAnnotations.COMPONENT_NAME
).
ExampleChildBean createChild()
ExampleRootBean.getChildren()
will return an array
that includes the newly created child.
void destroyChild(ExampleChildBean childToDestroy)
ExampleRootBean.getChildren()
will return
an array that no longer includes childToDestroy. This method is
idempotent - if childToDestroy in not in the list, this method
will return normally.
childToDestroy
- ExampleChildBean lookupChild(String name)
name
-
ExampleChildBean getReadOnlyRef()
PropertyAnnotations.REFERENCE
annotation.
ExampleChildBean getModifiableRef()
ExampleRootBean.setModifiableRef(weblogic.descriptor.example.ExampleChildBean)
a nullable child
bean property named ModifiableRef. The initial value of this
property is null.
void setModifiableRef(ExampleChildBean bean)
ExampleRootBean.getModifiableRef()
bean
- - bean or null.ExampleChildBean getReferences()
ExampleRootBean.addReference(weblogic.descriptor.example.ExampleChildBean)
and
ExampleRootBean.removeReference(weblogic.descriptor.example.ExampleChildBean)
, a array of references property named
References. The initial value of this property is a zero-length
array.
void addReference(ExampleChildBean bean)
ExampleRootBean.getReferences()
)
bean
- - bean to add.void removeReference(ExampleChildBean bean)
ExampleRootBean.getReferences()
bean
- - bean or null.ExampleChildBean[] getAllChildren()
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |