com.dynamide
Class DynamideObject

java.lang.Object
  extended by com.dynamide.DynamideObject
All Implemented Interfaces:
IGet
Direct Known Subclasses:
Admin, BshInterpreter, BufferConsole, ContextNode, Datatype, DynamideHandler, IDEApp, NullConsole, Property, RDBTable, RegisteredActions, ScriptEvent, ServletTools, SessionDatabase, SimpleDatasource, TclInterpreter, TemplateProvider, WebApps, WMTransform, XDB

public abstract class DynamideObject
extends java.lang.Object
implements IGet

The base class for all Objects that would normally descend from java.lang.Object.

Author:
Laramie Crocker

Field Summary
protected  java.lang.String m_id
           
 
Constructor Summary
DynamideObject(DynamideObject owner)
           
 
Method Summary
 void clearProfiler()
           
 java.lang.String dump()
          Subclasses can override this with something more descriptive, for logging and debugging.
 java.lang.String dump(boolean linebreaks)
          Add linebreaks for viewing in a console; subclasses can override this with something more descriptive, for logging and debugging.
 java.lang.String dumpHTML()
          Subclasses can override this with something more descriptive, for logging and debugging.
 java.lang.String expand(java.lang.String raw)
          Evaluate any string in the Webmacro interpreter.
 void finalize()
           
 DynamideObject findParentExpander()
           
 Page findParentPage()
           
 Session findParentSession()
           
 Page findTopParentPage()
           
 java.lang.Object get(java.lang.String what)
          Subclasses can override this.
 java.lang.String getCategoryID()
           
 java.lang.String getDotName()
           
 java.lang.String getID()
           
 IGet getNextGetter()
           
 java.lang.String getObjectID()
           
 DynamideObject getOwner()
           
 Profiler getProfiler()
           
 boolean isDebugEnabled()
           
 boolean isInfoEnabled()
           
 void logDebug(java.lang.String message)
           
 void logDebug(java.lang.String categoryID, java.lang.String message)
           
 void logDebug(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 void logDebug(java.lang.String message, java.lang.Throwable throwable)
           
 void logError(java.lang.String message)
           
 void logError(java.lang.String categoryID, java.lang.String message)
           
 void logError(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 void logError(java.lang.String message, java.lang.Throwable throwable)
           
 void logInfo(java.lang.String message)
           
 void logInfo(java.lang.String categoryID, java.lang.String message)
           
 void logInfo(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 void logInfo(java.lang.String message, java.lang.Throwable throwable)
           
 void logWarn(java.lang.String message)
           
 void logWarn(java.lang.String categoryID, java.lang.String message)
           
 void logWarn(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 void logWarn(java.lang.String message, java.lang.Throwable throwable)
           
 java.lang.String popLogContext()
           
static int printf(java.lang.String format, java.lang.Object[] args)
           
 void printProfiler()
           
 void profileEnter(java.lang.String msg)
           
 void profileLeave(java.lang.String msg)
           
 void pushLogContext(java.lang.String context)
           
 void setDotName(java.lang.String new_value)
           
 void setID(java.lang.String new_value)
           
 void setNextGetter(IGet nextGetterInChain)
           
 void setObjectID(java.lang.String new_value)
           
 void setOwner(DynamideObject new_value)
           
static java.lang.String sprintf(java.lang.String format, java.lang.Object[] args)
           
 void useProfiler()
           
 java.lang.String walkParents()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_id

protected java.lang.String m_id
Constructor Detail

DynamideObject

public DynamideObject(DynamideObject owner)
Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getObjectID

public java.lang.String getObjectID()

setObjectID

public void setObjectID(java.lang.String new_value)

getID

public java.lang.String getID()

setID

public void setID(java.lang.String new_value)

getCategoryID

public java.lang.String getCategoryID()

getOwner

public DynamideObject getOwner()

setOwner

public void setOwner(DynamideObject new_value)

getDotName

public java.lang.String getDotName()

setDotName

public void setDotName(java.lang.String new_value)

dump

public java.lang.String dump(boolean linebreaks)
Add linebreaks for viewing in a console; subclasses can override this with something more descriptive, for logging and debugging.


dump

public java.lang.String dump()
Subclasses can override this with something more descriptive, for logging and debugging.


dumpHTML

public java.lang.String dumpHTML()
Subclasses can override this with something more descriptive, for logging and debugging.


get

public java.lang.Object get(java.lang.String what)
                     throws java.lang.Exception
Subclasses can override this.

Specified by:
get in interface IGet
Throws:
java.lang.Exception

setNextGetter

public void setNextGetter(IGet nextGetterInChain)

getNextGetter

public IGet getNextGetter()

isDebugEnabled

public boolean isDebugEnabled()

isInfoEnabled

public boolean isInfoEnabled()

logDebug

public void logDebug(java.lang.String message)

logDebug

public void logDebug(java.lang.String categoryID,
                     java.lang.String message)

logDebug

public void logDebug(java.lang.String categoryID,
                     java.lang.String message,
                     java.lang.Throwable throwable)

logDebug

public void logDebug(java.lang.String message,
                     java.lang.Throwable throwable)

logInfo

public void logInfo(java.lang.String message)

logInfo

public void logInfo(java.lang.String categoryID,
                    java.lang.String message)

logInfo

public void logInfo(java.lang.String categoryID,
                    java.lang.String message,
                    java.lang.Throwable throwable)

logInfo

public void logInfo(java.lang.String message,
                    java.lang.Throwable throwable)

logWarn

public void logWarn(java.lang.String message)

logWarn

public void logWarn(java.lang.String categoryID,
                    java.lang.String message)

logWarn

public void logWarn(java.lang.String categoryID,
                    java.lang.String message,
                    java.lang.Throwable throwable)

logWarn

public void logWarn(java.lang.String message,
                    java.lang.Throwable throwable)

logError

public void logError(java.lang.String message)

logError

public void logError(java.lang.String categoryID,
                     java.lang.String message)

logError

public void logError(java.lang.String categoryID,
                     java.lang.String message,
                     java.lang.Throwable throwable)

logError

public void logError(java.lang.String message,
                     java.lang.Throwable throwable)

pushLogContext

public void pushLogContext(java.lang.String context)

popLogContext

public java.lang.String popLogContext()

getProfiler

public Profiler getProfiler()

useProfiler

public void useProfiler()

printProfiler

public void printProfiler()

clearProfiler

public void clearProfiler()

profileEnter

public void profileEnter(java.lang.String msg)

profileLeave

public void profileLeave(java.lang.String msg)

findParentPage

public Page findParentPage()

findTopParentPage

public Page findTopParentPage()

findParentSession

public Session findParentSession()

findParentExpander

public DynamideObject findParentExpander()

walkParents

public java.lang.String walkParents()

expand

public java.lang.String expand(java.lang.String raw)
                        throws DynamideException
Evaluate any string in the Webmacro interpreter. "session" is already in the context which gives you the keys to the kingdom. See also Session.eval(String) which is used to expand expressions in the beanshell interpreter.

Throws:
DynamideException

printf

public static int printf(java.lang.String format,
                         java.lang.Object[] args)

sprintf

public static java.lang.String sprintf(java.lang.String format,
                                       java.lang.Object[] args)


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.