|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.electrocodeogram.cpc.core.api.provider.xml.MappingStore
public class MappingStore
Simple input and output wrapper for IMappingProvider
s.
IMappingProvider
Field Summary | |
---|---|
protected java.util.List<IStatefulObject> |
statefulChildObjects
|
protected IStatefulObject |
statefulParentObject
|
Constructor Summary | |
---|---|
protected |
MappingStore()
For use by sub classes only. |
|
MappingStore(ICloneFile cloneFile,
java.util.List<IClone> clones)
Creates a new MappingStore instance. |
|
MappingStore(IStatefulObject statefulObject)
Creates a new MappingStore instance. |
|
MappingStore(IStatefulObject statefulParentObject,
java.util.List<IStatefulObject> statefulChildObjects)
Creates a new MappingStore instance. |
|
MappingStore(java.util.List<IStatefulObject> statefulObjects)
Creates a new MappingStore instance. |
Method Summary | |
---|---|
ICloneFile |
getCloneFile()
Retrieves the ICloneFile which was stored as parent object in this
mapping store. |
java.util.List<IClone> |
getClones()
Retrieves the child objects as a list of IClone instances. |
java.util.List<IStatefulObject> |
getStatefulChildObjects()
A list of IStatefulObject s which should be mapped to/where mapped from a string representation. |
IStatefulObject |
getStatefulParentObject()
An additional parent IStatefulObject for the given child objects.This value may be NULL. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IStatefulObject statefulParentObject
protected java.util.List<IStatefulObject> statefulChildObjects
Constructor Detail |
---|
protected MappingStore()
public MappingStore(IStatefulObject statefulObject)
MappingStore
instance.
statefulObject
- a IStatefulObject
, never null.public MappingStore(java.util.List<IStatefulObject> statefulObjects)
MappingStore
instance.
statefulObjects
- a list of IStatefulObject
s, may be empty, never null.public MappingStore(IStatefulObject statefulParentObject, java.util.List<IStatefulObject> statefulChildObjects)
MappingStore
instance.
statefulParentObject
- the parent IStatefulObject
which all given child objects should
be located under, never null. This is typically an ICloneFile
instance.statefulChildObjects
- a list of IStatefulObject
s which should be located within the
given parent object, may be empty, never null. This is typically a list of IClone
instances.public MappingStore(ICloneFile cloneFile, java.util.List<IClone> clones)
MappingStore
instance.
cloneFile
- clones
- Method Detail |
---|
public IStatefulObject getStatefulParentObject()
IStatefulObject
for the given child objects.
IStatefulObject
, may be NULL.public ICloneFile getCloneFile() throws MappingException
ICloneFile
which was stored as parent object in this
mapping store. This may fail if this mapping store has no designated parent object
or if it has a different type.
ICloneFile
instance if the parent object exists, NULL otherwise.
MappingException
- if the parent object does not have type ICloneFile
.getStatefulParentObject()
public java.util.List<IStatefulObject> getStatefulChildObjects()
IStatefulObject
s which should be mapped to/where mapped from a string representation.
IStatefulObject
s, may be empty, never null.public java.util.List<IClone> getClones() throws MappingException
IClone
instances. This may fail
if this store does other types of classes.
IClone
s, may be empty, never null.
MappingException
- if any of the getStatefulChildObjects()
is not of type
IClone
.getStatefulChildObjects()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |