public abstract class DmwWrapper extends DmcContainer
core| Modifier | Constructor and Description |
|---|---|
protected |
DmwWrapper() |
protected |
DmwWrapper(DmcObject obj) |
protected |
DmwWrapper(DmcObject obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAux(ClassDefinition cd)
Adds the specified auxiliary class to the object.
|
boolean |
applyModifier(DmcTypeModifierMV mods) |
boolean |
equals(Object obj) |
String |
getBackRefs()
Returns the references to this object formatted as a String.
|
ClassDefinition |
getConstructionClass() |
DmcClassInfo |
getConstructionClassInfo() |
String |
getConstructionClassName() |
DmcObject |
getDmcObject()
Gets the core object.
|
ClassDefinitionIterableDMW |
getObjectClass() |
ArrayList<DmwWrapper> |
getReferringObjects()
Returns the objects that are referring to this object.
|
ArrayList<DmwWrapper> |
getReferringObjectsViaAttribute(DmcAttributeInfo ai) |
boolean |
hasAux(ClassDefinition cd)
Determines if the specified class is in our objectClass list.
|
boolean |
isReferenced() |
int |
referenceCount() |
void |
removeAux(ClassDefinition cd)
Removes the specified auxiliary class from the object.
|
void |
resolveReferences(DmcNameResolverIF resolver)
This method calls resolveReferences() on the underlying DMO.
|
void |
resolveReferences(DmcNameResolverWithClashSupportIF rx,
DmcNameClashResolverIF ncr)
This method is used to resolve references in names spaces where object names can clash.
|
void |
serializeIt(DmcOutputStreamIF dos)
Serializes our underlying DMO.
|
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
String |
toJSON()
The object with just the persistent attributes and none of the internal use
attributes.
|
String |
toOIF()
The object with all attributes.
|
String |
toOIF(int padding)
The object with all attributes.
|
String |
toPersistentOIF()
The object with just the persistent attributes and none of the internal use
attributes.
|
String |
toString()
The object with all attributes.
|
void |
youAreDeleted()
This method should be called by whatever mechanism you're using to manage a collection
of DMOs.
|
getDeleted, getModifier, setDeleted, setModifierprotected DmwWrapper()
protected DmwWrapper(DmcObject obj)
protected DmwWrapper(DmcObject obj, ClassDefinition cd)
public boolean applyModifier(DmcTypeModifierMV mods) throws DmcValueExceptionSet, DmcValueException
public boolean isReferenced()
public String getBackRefs()
public int referenceCount()
public void youAreDeleted()
public ArrayList<DmwWrapper> getReferringObjects()
public ArrayList<DmwWrapper> getReferringObjectsViaAttribute(DmcAttributeInfo ai)
ai - the attribute via which we're referringpublic void serializeIt(DmcOutputStreamIF dos) throws Exception, DmcValueException
dos - the output stream.Exception - another error occursDmcValueException - if values are incorrectpublic String getConstructionClassName()
public ClassDefinitionIterableDMW getObjectClass()
public void addAux(ClassDefinition cd) throws DmcValueException
cd - The auxiliary class definition.DmcValueException - if values are incorrectpublic void removeAux(ClassDefinition cd)
cd - The auxiliary class definition.public boolean hasAux(ClassDefinition cd)
cd - The class definition.public DmcObject getDmcObject()
DmcContainergetDmcObject in interface DmcContainerIFgetDmcObject in class DmcContainerpublic void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmcContainerobj - The core object.public ClassDefinition getConstructionClass()
public DmcClassInfo getConstructionClassInfo()
public String toOIF()
public String toPersistentOIF()
public String toOIF(int padding)
padding - a set padding for the attribute name.public String toString()
public String toJSON()
public void resolveReferences(DmcNameResolverIF resolver) throws DmcValueExceptionSet
resolver - an entity that can resolve schema related references and references to other objects.DmcValueExceptionSet - if values are incorrectpublic void resolveReferences(DmcNameResolverWithClashSupportIF rx, DmcNameClashResolverIF ncr) throws DmcValueExceptionSet
rx - the name resolverncr - the clash resolverDmcValueExceptionSet - if values are incorrectCopyright © 2023. All rights reserved.