public class ERD2WContextDictionary extends Object
.plist
file once you are content with your page, then make tons of changes to the rules
and all the while test the changed value against all your stored dictionaries, which should make you
more confident to make changes like *true* => componentName = "D2WString" [100]
d2wclientConfiguration.plists
files from every bundle and also reads in the values
given in the editors
and supports
fields.
NSArray pageKeys = new NSArray(new Object [] {"pageWrapperName", "pageName", "headComponentName", "displayPropertyKeys"});
NSArray componentKeys = new NSArray(new Object [] {"componentName", "customComponentName"});
ERD2WContextDictionary dict = new ERD2WContextDictionary("CreateModuleGroup", pageKeys, componentKeys);
String value = NSPropertyListSerialization.stringFromPropertyList(dict.dictionary());
RENAMEME: to something more sensible??Modifier and Type | Class and Description |
---|---|
static class |
ERD2WContextDictionary.Configuration |
Modifier and Type | Field and Description |
---|---|
protected NSMutableDictionary |
_allKeys |
protected NSMutableArray |
_componentLevelKeys |
protected com.webobjects.directtoweb.D2WContext |
_context |
protected NSMutableDictionary |
_dictionary |
protected String |
_pageConfiguration |
protected NSMutableArray |
_pageLevelKeys |
Constructor and Description |
---|
ERD2WContextDictionary(String pageConfigurationName,
NSArray pageKeys,
NSArray componentKeys) |
ERD2WContextDictionary(String pageConfiguration,
NSDictionary dictionary) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPageLevelValues() |
protected void |
addPropertyKeys(NSMutableDictionary componentLevelKeys,
NSArray array) |
protected void |
addRulesForPropertyKeys(int level,
NSMutableArray rules,
NSArray keys) |
protected NSDictionary |
componentLevelValuesForKey(String propertyKey)
Returns the keys for the given property key.
|
com.webobjects.directtoweb.D2WContext |
context() |
NSDictionary |
dictionary() |
String |
dictionaryString() |
NSArray |
rulesForLevel(int level) |
String |
toString() |
protected com.webobjects.directtoweb.D2WContext _context
protected String _pageConfiguration
protected NSMutableArray _pageLevelKeys
protected NSMutableArray _componentLevelKeys
protected NSMutableDictionary _dictionary
protected NSMutableDictionary _allKeys
public ERD2WContextDictionary(String pageConfigurationName, NSArray pageKeys, NSArray componentKeys)
public ERD2WContextDictionary(String pageConfiguration, NSDictionary dictionary)
protected void addPageLevelValues()
protected NSDictionary componentLevelValuesForKey(String propertyKey)
propertyKey
- public NSDictionary dictionary()
protected void addPropertyKeys(NSMutableDictionary componentLevelKeys, NSArray array)
public NSArray rulesForLevel(int level)
protected void addRulesForPropertyKeys(int level, NSMutableArray rules, NSArray keys)
public com.webobjects.directtoweb.D2WContext context()
public String dictionaryString()
Copyright © 2002 – 2024 Project Wonder.