|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtualweaver.xotics.datamodel.XoObjectSupport
com.virtualweaver.xotics.datamodel.XoPolymorphWrapper
This class represents all polymorph implementations of an element. It is used to
take place as an XO object facade for the element when it is not added to a DM instance.
When an XoPolymorphWrapper
is being added, it replaces itself by appropriate
real impl based on a type found in parent content-model.
Field Summary |
Fields inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport |
propertyChangeSupport, vetoableChangeSupport |
Constructor Summary | |
XoPolymorphWrapper()
Creates a new instance, should not be used, as such instance is delivered by a call to XoRegistry.createXoObject(String, String) . |
Method Summary | |
void |
addXoPolymorph(XoPolymorph po,
java.lang.String type,
boolean isDefaultImpl)
Registers a polymorph object with its param type coming from data-model definition or polymorph itself. |
java.lang.Object |
clone()
Duplicates this and all its polymorph objects. |
XoObject |
cloneXoPolymorph(XoPolymorph po)
Duplicates polymorph and its wrapper (this) and thus other polymorph of this wrapper. |
XoObject |
getDefaultXoPolymorph()
When no implementation is suitable, this implementation is returned. |
XoObject |
getXoPolymorph(java.lang.String type)
Returns the polymorph object associated with param type string.
|
Methods inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport |
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, clone, equalsXoObject, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XoPolymorphWrapper()
XoRegistry.createXoObject(String, String)
.
Method Detail |
public XoObject getXoPolymorph(java.lang.String type)
type
string.
It can be used to set properties to any implementation before adding it to DM instance
type
- identifier of a specific implementation
type
or null if not foundpublic XoObject getDefaultXoPolymorph()
public void addXoPolymorph(XoPolymorph po, java.lang.String type, boolean isDefaultImpl)
po
- type
- isDefaultImpl
- public XoObject cloneXoPolymorph(XoPolymorph po)
public java.lang.Object clone()
clone
in interface XoObject
clone
in class XoObjectSupport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |