public class CodeSourceImpl extends PersistableDefObject implements CodeSource
| Modifier and Type | Class and Description | 
|---|---|
class  | 
CodeSourceImpl.MethodSource  | 
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationTypeCodeSource.TypemEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, DEF_SCOPE_USER, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXDEFAULT_CODE_SOURCE_NAME, DYNAMIC_CODE_SOURCE_NAME, mLogger, PERSONALIZED_CODE_SOURCE_NAME, TMP_CODE_SOURCE_NAMEXML_STATEMENT| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addExpression(ExprDef exprDef)  | 
void | 
applyDiffChildren(DifferDetails dif,
                 DiffResolver resolver)  | 
DifferDetails | 
diffChildren(DiffMergeable docDef,
            DiffMergeable orgDef,
            DifferDetails difDetails)  | 
java.lang.String | 
getCacheKey()
The key that should be used to cache the byte code that is generated
 for the code source. 
 | 
java.lang.String | 
getClassName()
The name of the class that will be generated by the compiler for
 the code source. 
 | 
java.lang.String | 
getDefXMLElementTag()  | 
java.lang.String | 
getDefXMLNameSpace()  | 
java.lang.String | 
getExpressionSource(ExprDef exprDef)  | 
groovy.lang.GroovyCodeSource | 
getGroovyCodeSource(boolean forCompile)
Retuns a groovy code source for the ADF code source. 
 | 
CodeSource.Type | 
getType()  | 
java.lang.String | 
getXMLElementTag()
Returns a piece of static info for the type of object this is invoked
 upon. 
 | 
boolean | 
hasExpression(ExprDef exprDef)
Return true if the CodeSource defines an expression for the specified
 expresmion. 
 | 
static CodeSourceImpl | 
loadFromXML(DefElement xmlElement)  | 
void | 
loadXMLContents(DefElement xmlElement,
               java.lang.String fullName)  | 
ExprDef | 
lookupExprDef(OwnerType type,
             java.lang.String path)  | 
boolean | 
removeExpression(ExprDef exprDef)  | 
void | 
setParent(NamedObjectImpl parent)
Sets this object's parent. 
 | 
void | 
writeChildren(DefWriter jos)
Writes the Object's children to the Persistent storage 
 | 
void | 
writeContents(DefWriter jos)
Objects should write their persistence output in this method 
 | 
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, applyDiffContents, beginDiffObjects, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffContents, diffObjects, ensureDifferDetails, findDefImport, finishedLoading, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMajorVersion, getMinorVersion, getOrigObject, getPropertyMap, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, loadDefObject, loadXMLContentsNoResolve, lockDefinitionContext, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerDefObject, registerSessionDefObject, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, unlockDefinitionContext, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeObject, writeVersion, writeXMLContentsaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isComponentDefinition, isDeprecated, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetFullNamegetFullName, getNamepublic void setParent(NamedObjectImpl parent)
DefinitionObjectsetParent in class DefinitionObjectparent - the named object that is to be the parent of this object.public java.lang.String getClassName()
CodeSourcegetClassName in interface CodeSourcepublic java.lang.String getCacheKey()
CodeSourcegetCacheKey in interface CodeSourcepublic ExprDef lookupExprDef(OwnerType type, java.lang.String path)
lookupExprDef in interface CodeSourcepublic java.lang.String getExpressionSource(ExprDef exprDef)
getExpressionSource in interface CodeSourcepublic boolean removeExpression(ExprDef exprDef)
removeExpression in interface CodeSourcepublic boolean addExpression(ExprDef exprDef)
addExpression in interface CodeSourcepublic boolean hasExpression(ExprDef exprDef)
CodeSourcehasExpression in interface CodeSourceexprDef - an expression def.  If null this will return true
    if the CodeSource defines any expression.public groovy.lang.GroovyCodeSource getGroovyCodeSource(boolean forCompile)
CodeSourcegetGroovyCodeSource in interface CodeSourcepublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class PersistableDefObjectpublic java.lang.String getXMLElementTag()
PersistentDefinitiongetXMLElementTag in interface PersistentDefinitiongetXMLElementTag in class PersistableDefObjectpublic java.lang.String getDefXMLNameSpace()
getDefXMLNameSpace in interface PersistentDefinitiongetDefXMLNameSpace in class PersistableDefObjectpublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionwriteContents in class PersistableDefObjectjos - the Output storage for persistencepublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class PersistableDefObjectjos - the Output storage for persistencepublic void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
loadXMLContents in class PersistableDefObjectpublic static CodeSourceImpl loadFromXML(DefElement xmlElement)
public DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
diffChildren in interface DiffMergeablediffChildren in class PersistableDefObjectpublic void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
applyDiffChildren in interface DiffMergeableapplyDiffChildren in class PersistableDefObjectpublic CodeSource.Type getType()
getType in interface CodeSource