public class ERD2WModel
extends com.webobjects.directtoweb.D2WModel
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
_currentFile |
protected java.util.Hashtable |
_filePathRuleTraceCache |
protected java.util.Hashtable |
_uniqueAndQualifiers |
protected java.util.Hashtable |
_uniqueAssignments |
protected java.util.Hashtable |
_uniqueKeyValueQualifiers |
protected java.util.Hashtable |
_uniqueNotQualifiers |
protected java.util.Hashtable |
_uniqueOrQualifiers |
protected static java.lang.String |
ATTRIBUTE_PREFIX |
protected static java.lang.String |
ENTITY_PREFIX |
static org.apache.log4j.Logger |
log
logging support
|
static java.lang.String |
ModelWillReset |
protected static java.lang.String |
RELATIONSHIP_PREFIX |
static org.apache.log4j.Logger |
ruleDecodeLog
logs rules being decoded
|
static org.apache.log4j.Logger |
ruleTraceEnabledLog
main category for enabling or disabling tracing of rules
|
protected int |
totalQualifiers |
protected int |
uniquedQualifiers |
static java.lang.String |
WillSortRules |
_PageWrapperNameKey, _tasks, ActionsKey, AllMarker, AllowCollapsingKey, AlternateRowColorKey, AttributeKey, AttributeTypeKey, BackgroundColorForPageKey, BackgroundColorForTableKey, BoldKey, ColorKey, ComponentAvailableKey, ComponentNameKey, ComponentsToShowAtEndKey, CustomTypeKey, DisplayNameForPropertyKey, DisplayPropertyKeysKey, DummyTrueKey, DynamicPageKey, EntityKey, FormatterKey, FrameKey, FramesActiveKey, IsGeneratingKey, ItalicKey, KeyPathTypeKey, KeyWhenRelationshipKey, LengthKey, LookKey, NoneMarker, One, PageAvailableKey, PageNameKey, PropertyIsKeyPathKey, PropertyKey, PropertyKeyKey, PropertyKeyPortionInModelKey, PropertyTypeKey, ReadOnlyEntityNamesKey, RelationshipKey, RelationshipTypeKey, RequiresEntityKey, SessionKey, ShowBannerKey, StartupEntityNameKey, StartupTaskKey, TargetKey, TaskKey, VisibleEntityNamesKey, WebAssistantPageNameKey, Zero_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
ERD2WModel(EOKeyValueUnarchiver unarchiver) |
protected |
ERD2WModel(java.io.File file) |
protected |
ERD2WModel(NSArray rules)
Main constructor.
|
|
ERD2WModel(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addKeyToVector(java.lang.String key,
java.util.Vector vector) |
protected NSSet |
_addKeyToVectorKeysToTakeLiterally() |
void |
_diagnoseCache() |
protected boolean |
_shouldUseCacheForFiringRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context) |
void |
addRule(com.webobjects.directtoweb.Rule rule) |
void |
addRules(NSArray rules) |
protected EOAndQualifier |
andQualifierInCache(EOAndQualifier q) |
void |
applicationDidFinishLaunching(NSNotification n) |
void |
applicationWillDispatchRequest(NSNotification n) |
protected com.webobjects.directtoweb.Assignment |
assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
java.util.Vector v) |
NSArray |
availablePageConfigurations() |
NSArray |
availableTasks() |
protected java.util.Hashtable |
cacheFromBytes(byte[] bytes) |
protected byte[] |
cacheToBytes(java.util.Hashtable cache) |
NSArray |
canidateRuleSetForRHSInContext(java.lang.String rhs,
com.webobjects.directtoweb.D2WContext context) |
void |
clearD2WRuleCache() |
void |
clearD2WRuleCache(NSNotification n) |
protected java.io.File |
currentFile() |
protected java.lang.Object |
decodeObject(java.lang.Object o) |
protected java.lang.String |
descriptionForRule(com.webobjects.directtoweb.Rule r) |
protected java.lang.String |
descriptionForRuleSet(NSArray set) |
protected static NSDictionary |
dictionaryFromPathUrl(java.net.URL url) |
void |
dumpCache(java.lang.String fileName)
Means to dump the cache.
|
protected java.lang.Object |
encodeObject(java.lang.Object o) |
static ERD2WModel |
erDefaultModel()
Gets the default D2W model cast as an ERD2WModel.
|
protected java.lang.Object |
fireRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context) |
protected java.lang.Object |
fireSystemRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context) |
protected void |
flushUniqueCache() |
protected void |
invalidateCaches() |
protected EOKeyValueQualifier |
keyValueQualifierInCache(EOKeyValueQualifier q) |
protected void |
mergeFile(java.io.File modelFile) |
protected void |
mergePathURL(java.net.URL modelURL) |
java.util.Vector |
modelFilesPathURLsInBundles()
Overridden to support additional d2wmodel files.
|
java.lang.String |
nameForSet(NSSet set) |
protected EONotQualifier |
notQualifierInCache(EONotQualifier q) |
protected EOOrQualifier |
orQualifierInCache(EOOrQualifier q) |
void |
prepareDataStructures() |
protected EOQualifier |
qualifierContainedInEnumeration(EOQualifierEvaluation q1,
java.util.Enumeration e) |
protected EOQualifier |
qualifierInCache(EOQualifier q) |
protected ERXMultiKey |
readEntry(java.util.Hashtable cache,
java.io.ObjectInputStream in) |
void |
removeRule(com.webobjects.directtoweb.Rule rule) |
void |
resetModel()
モデル・リセット
開発中:ローカライズ・ファイルが変更されるとモデルもリセットされます
|
void |
restoreCache(java.lang.String fileName)
Means to restore the cache.
|
NSArray |
rules() |
protected void |
setCurrentFile(java.io.File currentFile) |
protected void |
sortRules() |
protected void |
uniqueQualifiers(NSArray rules) |
protected void |
uniqueRuleAssignments(NSArray rules) |
protected boolean |
writeEntry(ERXMultiKey key,
java.lang.Object value,
java.io.ObjectOutputStream out) |
_fireRule, addRuleToItsBucket, addRuleTrace, candidates, canSaveUserModel, checkPossibilityToSaveUserModel, checkRules, clientConfiguration, clientConfigurationFilesInBundles, clientConfigurationFilesPathURLsInBundles, componentDefinitions, createWebAssistantRulesWithSettings, dataTypesInvolved, defaultModel, dirty, dynamicPages, editors, encodeWebAssistantRulesWithKeyValueArchiver, encodeWithKeyValueArchiver, fireAllRulesForKeyPathInContext, inferrableKeys, initializeClientConfiguration, isPageStatic, loadRules, modelFilesInBundles, nameFromFrameworkBundle, newSettings, pageRuleKeysForPage, pageRuleKeysFromClientConfiguration, propertyRuleKeysForComponents, propertyRuleKeysFromClientConfiguration, removeAllWebAssistantRules, removeDynamicPage, removeWebAssistantRulesWithSameContextAsSettings, revertWebAssistantRules, saveWebAssistantRulesIntoUsedModelFile, setDefaultModel, setDirty, setRules, tasks, taskVector, toFile, toString, typeForRuleKey, updateUserSettingsForNewPageAvailableRule, userClientConfigurationFile, userClientConfigurationFilePathURL, userModelFile, userModelFilePathURL, webAssistantRulesForSavepublic static final org.apache.log4j.Logger log
public static final org.apache.log4j.Logger ruleDecodeLog
public static final org.apache.log4j.Logger ruleTraceEnabledLog
public static final java.lang.String WillSortRules
public static final java.lang.String ModelWillReset
protected java.util.Hashtable _filePathRuleTraceCache
protected java.io.File _currentFile
protected java.util.Hashtable _uniqueAssignments
protected int uniquedQualifiers
protected int totalQualifiers
protected java.util.Hashtable _uniqueAndQualifiers
protected java.util.Hashtable _uniqueOrQualifiers
protected java.util.Hashtable _uniqueNotQualifiers
protected java.util.Hashtable _uniqueKeyValueQualifiers
protected static final java.lang.String ENTITY_PREFIX
protected static final java.lang.String RELATIONSHIP_PREFIX
protected static final java.lang.String ATTRIBUTE_PREFIX
protected ERD2WModel(NSArray rules)
rules - array of rulesprotected ERD2WModel(java.io.File file)
public ERD2WModel(java.net.URL url)
protected ERD2WModel(EOKeyValueUnarchiver unarchiver)
public static ERD2WModel erDefaultModel()
public void clearD2WRuleCache()
public NSArray availableTasks()
public NSArray availablePageConfigurations()
protected void sortRules()
sortRules in class com.webobjects.directtoweb.D2WModelpublic void applicationWillDispatchRequest(NSNotification n)
public void applicationDidFinishLaunching(NSNotification n)
public void clearD2WRuleCache(NSNotification n)
public NSArray rules()
rules in class com.webobjects.directtoweb.D2WModelpublic void addRule(com.webobjects.directtoweb.Rule rule)
addRule in class com.webobjects.directtoweb.D2WModelpublic void removeRule(com.webobjects.directtoweb.Rule rule)
removeRule in class com.webobjects.directtoweb.D2WModelprotected java.lang.String descriptionForRuleSet(NSArray set)
protected java.lang.String descriptionForRule(com.webobjects.directtoweb.Rule r)
public void addRules(NSArray rules)
addRules in class com.webobjects.directtoweb.D2WModelprotected java.lang.Object fireSystemRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
fireSystemRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModelprotected java.lang.Object fireRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
fireRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModelprotected boolean _shouldUseCacheForFiringRuleForKeyPathInContext(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext context)
public void dumpCache(java.lang.String fileName)
public void restoreCache(java.lang.String fileName)
public NSArray canidateRuleSetForRHSInContext(java.lang.String rhs, com.webobjects.directtoweb.D2WContext context)
protected NSSet _addKeyToVectorKeysToTakeLiterally()
protected void _addKeyToVector(java.lang.String key,
java.util.Vector vector)
public void prepareDataStructures()
protected void invalidateCaches()
invalidateCaches in class com.webobjects.directtoweb.D2WModelpublic void resetModel()
protected void setCurrentFile(java.io.File currentFile)
protected java.io.File currentFile()
protected static NSDictionary dictionaryFromPathUrl(java.net.URL url)
protected void mergePathURL(java.net.URL modelURL)
mergePathURL in class com.webobjects.directtoweb.D2WModelprotected void mergeFile(java.io.File modelFile)
mergeFile in class com.webobjects.directtoweb.D2WModelprotected void uniqueRuleAssignments(NSArray rules)
protected com.webobjects.directtoweb.Assignment assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
java.util.Vector v)
protected void uniqueQualifiers(NSArray rules)
public java.util.Vector modelFilesPathURLsInBundles()
modelFilesPathURLsInBundles in class com.webobjects.directtoweb.D2WModelprotected EOQualifier qualifierContainedInEnumeration(EOQualifierEvaluation q1, java.util.Enumeration e)
protected EOQualifier qualifierInCache(EOQualifier q)
protected EOAndQualifier andQualifierInCache(EOAndQualifier q)
protected EOOrQualifier orQualifierInCache(EOOrQualifier q)
protected EONotQualifier notQualifierInCache(EONotQualifier q)
protected EOKeyValueQualifier keyValueQualifierInCache(EOKeyValueQualifier q)
protected void flushUniqueCache()
public java.lang.String nameForSet(NSSet set)
protected java.lang.Object encodeObject(java.lang.Object o)
protected java.lang.Object decodeObject(java.lang.Object o)
protected boolean writeEntry(ERXMultiKey key, java.lang.Object value, java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOExceptionprotected ERXMultiKey readEntry(java.util.Hashtable cache, java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected byte[] cacheToBytes(java.util.Hashtable cache)
protected java.util.Hashtable cacheFromBytes(byte[] bytes)
public void _diagnoseCache()
Copyright © 2002 – 2022 Project Wonder.