public class ERD2WModel
extends com.webobjects.directtoweb.D2WModel
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support| Modifier and Type | Field and Description |
|---|---|
protected File |
_currentFile |
protected Hashtable |
_filePathRuleTraceCache |
protected Hashtable |
_uniqueAndQualifiers |
protected Hashtable |
_uniqueAssignments |
protected Hashtable |
_uniqueKeyValueQualifiers |
protected Hashtable |
_uniqueNotQualifiers |
protected Hashtable |
_uniqueOrQualifiers |
protected static String |
ATTRIBUTE_PREFIX |
protected static String |
ENTITY_PREFIX |
static Logger |
log
logging support
|
static String |
ModelWillReset |
protected static String |
RELATIONSHIP_PREFIX |
static Logger |
ruleDecodeLog
logs rules being decoded
|
static Logger |
ruleTraceEnabledLog
main category for enabling or disabling tracing of rules
|
protected int |
totalQualifiers |
protected int |
uniquedQualifiers |
static 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| Modifier | Constructor and Description |
|---|---|
protected |
ERD2WModel(com.webobjects.eocontrol.EOKeyValueUnarchiver unarchiver) |
protected |
ERD2WModel(File file) |
protected |
ERD2WModel(NSArray rules)
Main constructor.
|
|
ERD2WModel(URL url) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addKeyToVector(String key,
Vector vector) |
protected NSSet |
_addKeyToVectorKeysToTakeLiterally() |
void |
_diagnoseCache() |
protected boolean |
_shouldUseCacheForFiringRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context) |
void |
addRule(com.webobjects.directtoweb.Rule rule) |
void |
addRules(NSArray rules) |
protected com.webobjects.eocontrol.EOAndQualifier |
andQualifierInCache(com.webobjects.eocontrol.EOAndQualifier q) |
void |
applicationDidFinishLaunching(com.webobjects.foundation.NSNotification n) |
void |
applicationWillDispatchRequest(com.webobjects.foundation.NSNotification n) |
protected com.webobjects.directtoweb.Assignment |
assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
Vector v) |
NSArray |
availablePageConfigurations() |
NSArray |
availableTasks() |
protected Hashtable |
cacheFromBytes(byte[] bytes) |
protected byte[] |
cacheToBytes(Hashtable cache) |
NSArray |
canidateRuleSetForRHSInContext(String rhs,
com.webobjects.directtoweb.D2WContext context) |
void |
clearD2WRuleCache() |
void |
clearD2WRuleCache(com.webobjects.foundation.NSNotification n) |
protected File |
currentFile() |
protected Object |
decodeObject(Object o) |
protected String |
descriptionForRule(com.webobjects.directtoweb.Rule r) |
protected String |
descriptionForRuleSet(NSArray set) |
protected static NSDictionary |
dictionaryFromPathUrl(URL url) |
void |
dumpCache(String fileName)
Means to dump the cache.
|
protected Object |
encodeObject(Object o) |
static ERD2WModel |
erDefaultModel()
Gets the default D2W model cast as an ERD2WModel.
|
protected Object |
fireRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context) |
protected Object |
fireSystemRuleForKeyPathInContext(String keyPath,
com.webobjects.directtoweb.D2WContext context) |
protected void |
flushUniqueCache() |
protected void |
invalidateCaches() |
protected com.webobjects.eocontrol.EOKeyValueQualifier |
keyValueQualifierInCache(com.webobjects.eocontrol.EOKeyValueQualifier q) |
protected void |
mergeFile(File modelFile) |
protected void |
mergePathURL(URL modelURL) |
Vector |
modelFilesPathURLsInBundles()
Overridden to support additional d2wmodel files.
|
String |
nameForSet(NSSet set) |
protected com.webobjects.eocontrol.EONotQualifier |
notQualifierInCache(com.webobjects.eocontrol.EONotQualifier q) |
protected com.webobjects.eocontrol.EOOrQualifier |
orQualifierInCache(com.webobjects.eocontrol.EOOrQualifier q) |
void |
prepareDataStructures() |
protected com.webobjects.eocontrol.EOQualifier |
qualifierContainedInEnumeration(com.webobjects.eocontrol.EOQualifierEvaluation q1,
Enumeration e) |
protected com.webobjects.eocontrol.EOQualifier |
qualifierInCache(com.webobjects.eocontrol.EOQualifier q) |
protected ERXMultiKey |
readEntry(Hashtable cache,
ObjectInputStream in) |
void |
removeRule(com.webobjects.directtoweb.Rule rule) |
void |
resetModel()
モデル・リセット
開発中:ローカライズ・ファイルが変更されるとモデルもリセットされます
|
void |
restoreCache(String fileName)
Means to restore the cache.
|
NSArray |
rules() |
protected void |
setCurrentFile(File currentFile) |
protected void |
sortRules() |
protected void |
uniqueQualifiers(NSArray rules) |
protected void |
uniqueRuleAssignments(NSArray rules) |
protected boolean |
writeEntry(ERXMultiKey key,
Object value,
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 Logger log
public static final Logger ruleDecodeLog
public static final Logger ruleTraceEnabledLog
public static final String WillSortRules
public static final String ModelWillReset
protected Hashtable _filePathRuleTraceCache
protected File _currentFile
protected Hashtable _uniqueAssignments
protected int uniquedQualifiers
protected int totalQualifiers
protected Hashtable _uniqueAndQualifiers
protected Hashtable _uniqueOrQualifiers
protected Hashtable _uniqueNotQualifiers
protected Hashtable _uniqueKeyValueQualifiers
protected static final String ENTITY_PREFIX
protected static final String RELATIONSHIP_PREFIX
protected static final String ATTRIBUTE_PREFIX
protected ERD2WModel(NSArray rules)
rules - array of rulesprotected ERD2WModel(File file)
public ERD2WModel(URL url)
protected ERD2WModel(com.webobjects.eocontrol.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(com.webobjects.foundation.NSNotification n)
public void applicationDidFinishLaunching(com.webobjects.foundation.NSNotification n)
public void clearD2WRuleCache(com.webobjects.foundation.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 String descriptionForRule(com.webobjects.directtoweb.Rule r)
public void addRules(NSArray rules)
addRules in class com.webobjects.directtoweb.D2WModelprotected Object fireSystemRuleForKeyPathInContext(String keyPath, com.webobjects.directtoweb.D2WContext context)
fireSystemRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModelprotected Object fireRuleForKeyPathInContext(String keyPath, com.webobjects.directtoweb.D2WContext context)
fireRuleForKeyPathInContext in class com.webobjects.directtoweb.D2WModelprotected boolean _shouldUseCacheForFiringRuleForKeyPathInContext(String keyPath, com.webobjects.directtoweb.D2WContext context)
public void dumpCache(String fileName)
public void restoreCache(String fileName)
public NSArray canidateRuleSetForRHSInContext(String rhs, com.webobjects.directtoweb.D2WContext context)
protected NSSet _addKeyToVectorKeysToTakeLiterally()
public void prepareDataStructures()
protected void invalidateCaches()
invalidateCaches in class com.webobjects.directtoweb.D2WModelpublic void resetModel()
protected void setCurrentFile(File currentFile)
protected File currentFile()
protected static NSDictionary dictionaryFromPathUrl(URL url)
protected void mergePathURL(URL modelURL)
mergePathURL in class com.webobjects.directtoweb.D2WModelprotected void mergeFile(File modelFile)
mergeFile in class com.webobjects.directtoweb.D2WModelprotected void uniqueRuleAssignments(NSArray rules)
protected com.webobjects.directtoweb.Assignment assignmentContainedInVector(com.webobjects.directtoweb.Assignment a1,
Vector v)
protected void uniqueQualifiers(NSArray rules)
public Vector modelFilesPathURLsInBundles()
modelFilesPathURLsInBundles in class com.webobjects.directtoweb.D2WModelprotected com.webobjects.eocontrol.EOQualifier qualifierContainedInEnumeration(com.webobjects.eocontrol.EOQualifierEvaluation q1,
Enumeration e)
protected com.webobjects.eocontrol.EOQualifier qualifierInCache(com.webobjects.eocontrol.EOQualifier q)
protected com.webobjects.eocontrol.EOAndQualifier andQualifierInCache(com.webobjects.eocontrol.EOAndQualifier q)
protected com.webobjects.eocontrol.EOOrQualifier orQualifierInCache(com.webobjects.eocontrol.EOOrQualifier q)
protected com.webobjects.eocontrol.EONotQualifier notQualifierInCache(com.webobjects.eocontrol.EONotQualifier q)
protected com.webobjects.eocontrol.EOKeyValueQualifier keyValueQualifierInCache(com.webobjects.eocontrol.EOKeyValueQualifier q)
protected void flushUniqueCache()
protected boolean writeEntry(ERXMultiKey key, Object value, ObjectOutputStream out) throws IOException
IOExceptionprotected ERXMultiKey readEntry(Hashtable cache, ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected byte[] cacheToBytes(Hashtable cache)
protected Hashtable cacheFromBytes(byte[] bytes)
public void _diagnoseCache()
Copyright © 2002 – 2020 Project Wonder.