org.scrashmeow.ojb.console.framework
Class ObjectEditorContext

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.framework.ObjectEditorContext
All Implemented Interfaces:
java.io.Serializable

public class ObjectEditorContext
extends java.lang.Object
implements java.io.Serializable

Author:
Alexander Bibighaus
See Also:
Serialized Form

Nested Class Summary
 class ObjectEditorContext.ReferencedObject
          Class ReferencedObject @add-javadoc!!!
 
Constructor Summary
ObjectEditorContext()
          Constructor for ObjectEditorContext.
 
Method Summary
 void addCollectionItem(java.lang.String name, java.lang.Object nested)
          Method addCollectionItem @add-javadoc!!!
 void clearReference(java.lang.String key)
          Method clearReference @add-javadoc!!!
 java.lang.String getClassName()
          Returns the className.
 java.util.Collection getCollection(java.lang.String name)
          Method getCollection @add-javadoc!!!
 java.util.Map getCollections()
          Returns the collections.
 java.lang.Object getInstance()
          Returns the instance.
 int getMode()
          Returns the mode.
 java.lang.String getParentCollectionName()
          Returns the parentCollectionName.
 ObjectEditorContext getParentContext()
          Returns the parentContext.
 java.lang.String getParentContextKey()
          Returns the parentContextKey.
 java.lang.String getParentReferenceName()
          Returns the parentReferenceName.
 java.lang.Object getReference(java.lang.String key)
          Method getReference @add-javadoc!!!
 java.util.Map getReferences()
          Returns the references.
 java.lang.String getUid()
          Returns the uid.
 boolean hasCollection(java.lang.String name)
          Method hasCollection @add-javadoc!!!
 boolean hasInitializedReference(java.lang.String key)
          Method hasInitializedReference @add-javadoc!!!
 boolean hasParentCollectionName()
          Method hasParentCollectionName @add-javadoc!!!
 boolean hasParentContext()
          Method hasParentContext @add-javadoc!!!
 boolean hasParentReferenceName()
          Method hasParentReferenceName @add-javadoc!!!
 void initReference(java.lang.String key)
          Method initReference @add-javadoc!!!
 boolean isEdit()
          Method isEdit @add-javadoc!!!
 boolean isInsert()
          Method isInsert @add-javadoc!!!
 void putCollection(java.lang.String name, java.util.Collection col)
          Method putCollection @add-javadoc!!!
 void putReference(java.lang.String key, java.lang.Object ref)
          Method putReference @add-javadoc!!!
 void removeCollection(java.lang.String name)
          Method removeCollection @add-javadoc!!!
 void removeReference(java.lang.String key)
          Method removeReference @add-javadoc!!!
 void setClassName(java.lang.String className)
          Sets the className.
 void setCollectionItem(java.lang.String name, java.lang.Object nested, int index)
          Method setCollectionItem @add-javadoc!!!
 void setCollections(java.util.Map collections)
          Sets the collections.
 void setEdit()
          Method setEdit @add-javadoc!!!
 void setInsert()
          Method setInsert @add-javadoc!!!
 void setInstance(java.lang.Object instance)
          Sets the instance.
 void setMode(int mode)
          Sets the mode.
 void setParentCollectionName(java.lang.String parentCollectionName)
          Sets the parentCollectionName.
 void setParentContext(ObjectEditorContext parentContext)
          Sets the parentContext.
 void setParentContextKey(java.lang.String parentContextKey)
          Sets the parentContextKey.
 void setParentReferenceName(java.lang.String parentReferenceName)
          Sets the parentReferenceName.
 void setReferences(java.util.Map references)
          Sets the references.
 void setUid(java.lang.String uid)
          Sets the uid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEditorContext

public ObjectEditorContext()
Constructor for ObjectEditorContext.

Method Detail

getCollections

public java.util.Map getCollections()
Returns the collections.

Returns:
Map

setCollections

public void setCollections(java.util.Map collections)
Sets the collections.

Parameters:
collections - The collections to set

addCollectionItem

public void addCollectionItem(java.lang.String name,
                              java.lang.Object nested)
Method addCollectionItem @add-javadoc!!!

Parameters:
name - @add-javadoc!!!
nested - @add-javadoc!!!

hasCollection

public boolean hasCollection(java.lang.String name)
Method hasCollection @add-javadoc!!!

Parameters:
name - @add-javadoc!!!
Returns:
@add-javadoc!!!

setCollectionItem

public void setCollectionItem(java.lang.String name,
                              java.lang.Object nested,
                              int index)
Method setCollectionItem @add-javadoc!!!

Parameters:
name - @add-javadoc!!!
nested - @add-javadoc!!!
index - @add-javadoc!!!

putCollection

public void putCollection(java.lang.String name,
                          java.util.Collection col)
Method putCollection @add-javadoc!!!

Parameters:
name - @add-javadoc!!!
col - @add-javadoc!!!

removeCollection

public void removeCollection(java.lang.String name)
Method removeCollection @add-javadoc!!!

Parameters:
name - @add-javadoc!!!

getCollection

public java.util.Collection getCollection(java.lang.String name)
Method getCollection @add-javadoc!!!

Parameters:
name - @add-javadoc!!!
Returns:
@add-javadoc!!!

setEdit

public void setEdit()
Method setEdit @add-javadoc!!!


setInsert

public void setInsert()
Method setInsert @add-javadoc!!!


isEdit

public boolean isEdit()
Method isEdit @add-javadoc!!!

Returns:
@add-javadoc!!!

isInsert

public boolean isInsert()
Method isInsert @add-javadoc!!!

Returns:
@add-javadoc!!!

getMode

public int getMode()
Returns the mode.

Returns:
int

setMode

public void setMode(int mode)
Sets the mode.

Parameters:
mode - The mode to set

getUid

public java.lang.String getUid()
Returns the uid.

Returns:
String

setUid

public void setUid(java.lang.String uid)
Sets the uid.

Parameters:
uid - The uid to set

getParentContext

public ObjectEditorContext getParentContext()
Returns the parentContext.

Returns:
ObjectEditorContext

setParentContext

public void setParentContext(ObjectEditorContext parentContext)
Sets the parentContext.

Parameters:
parentContext - The parentContext to set

hasParentContext

public boolean hasParentContext()
Method hasParentContext @add-javadoc!!!

Returns:
@add-javadoc!!!

getInstance

public java.lang.Object getInstance()
Returns the instance.

Returns:
Object

setInstance

public void setInstance(java.lang.Object instance)
Sets the instance.

Parameters:
instance - The instance to set

getClassName

public java.lang.String getClassName()
Returns the className.

Returns:
String

setClassName

public void setClassName(java.lang.String className)
Sets the className.

Parameters:
className - The className to set

getParentContextKey

public java.lang.String getParentContextKey()
Returns the parentContextKey.

Returns:
String

setParentContextKey

public void setParentContextKey(java.lang.String parentContextKey)
Sets the parentContextKey.

Parameters:
parentContextKey - The parentContextKey to set

getParentCollectionName

public java.lang.String getParentCollectionName()
Returns the parentCollectionName.

Returns:
String

setParentCollectionName

public void setParentCollectionName(java.lang.String parentCollectionName)
Sets the parentCollectionName.

Parameters:
parentCollectionName - The parentCollectionName to set

getReferences

public java.util.Map getReferences()
Returns the references.

Returns:
Map

setReferences

public void setReferences(java.util.Map references)
Sets the references.

Parameters:
references - The references to set

putReference

public void putReference(java.lang.String key,
                         java.lang.Object ref)
Method putReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!
ref - @add-javadoc!!!

removeReference

public void removeReference(java.lang.String key)
Method removeReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!

hasInitializedReference

public boolean hasInitializedReference(java.lang.String key)
Method hasInitializedReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!
Returns:
@add-javadoc!!!

initReference

public void initReference(java.lang.String key)
Method initReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!

clearReference

public void clearReference(java.lang.String key)
Method clearReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!

getReference

public java.lang.Object getReference(java.lang.String key)
Method getReference @add-javadoc!!!

Parameters:
key - @add-javadoc!!!
Returns:
@add-javadoc!!!

hasParentCollectionName

public boolean hasParentCollectionName()
Method hasParentCollectionName @add-javadoc!!!

Returns:
@add-javadoc!!!

hasParentReferenceName

public boolean hasParentReferenceName()
Method hasParentReferenceName @add-javadoc!!!

Returns:
@add-javadoc!!!

getParentReferenceName

public java.lang.String getParentReferenceName()
Returns the parentReferenceName.

Returns:
String

setParentReferenceName

public void setParentReferenceName(java.lang.String parentReferenceName)
Sets the parentReferenceName.

Parameters:
parentReferenceName - The parentReferenceName to set


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.