|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.binding.BaseBinding | +--org.enhydra.zeus.binding.BaseContainer
implements the
Container
interface and defines behavior for a binding that can contain other
bindings (usually Binding
implementations). It
is used to represent objects which have nested objects.
Property
This base implementation of Container
defines the common
functionality for all Container
implementations, removing
a need for them to duplicate code for this functionality. All
implementations of Container
should extend this class
rather than directly implementing the Container
interface.
Field Summary | |
protected java.util.List |
properties
The objects this
Container holds. |
Fields inherited from class org.enhydra.zeus.binding.BaseBinding |
isJavaSerializable, isXMLRootElement, javaCollectionClass, javaImplementationPackage, javaInterfacePackage, javaName, javaType, javaVariableName, xmlName, xmlNamespaceURI, xmlParentType, xmlParentTypeNamespaceURI, xmlType, xmlTypeNamespaceURI |
Constructor Summary | |
BaseContainer()
|
Method Summary | |
void |
addProperty(Property property)
This will add a to
the member variables of this Container . |
void |
clearProperties()
This will clear all the properties for this Container . |
java.util.List |
getProperties()
This will return a list of all the objects that
this Container has. |
boolean |
removeProperty(java.lang.String javaName)
This will remove a
from this Container , given the
property's name. |
void |
setProperties(java.util.List properties)
This does a wholesale replacement of this binding's current properties, removing all current ones and replacing with the supplied List of new properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List properties
Property
objects this
Container
holds.Constructor Detail |
public BaseContainer()
Method Detail |
public void addProperty(Property property)
This will add a
to
the member variables of this Property
Container
.
It is important to note that this is simply an instance variable being added to (in most cases) a custom Java class definition. That variable/property doesn't have a value (although it might have a default value) until marshalling and unmarshalling occurs.
addProperty
in interface Container
property
- Property
to add.public boolean removeProperty(java.lang.String javaName)
This will remove a
from this Property
Container
, given the
property's name. If a successful removal occurs,
the boolean value true
is retruned.
If no Property
is found with the supplied
Java name, the boolean value
false
is returned.
removeProperty
in interface Container
javaName
- String
Java name of
Property
to remove.boolean
- indicates whether
the specified named Property
was found and removed.public void setProperties(java.util.List properties)
This does a wholesale replacement of this binding's current
properties, removing all current ones and replacing with the
supplied List
of new properties.
setProperties
in interface Container
properties
- List
of properties to use for this
container.public java.util.List getProperties()
This will return a list of all the
objects that
this Property
Container
has. If there are
none, this will return an empty List
.
getProperties
in interface Container
List
- properties for this
Container
.public void clearProperties()
This will clear all the properties for this Container
.
clearProperties
in interface Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |