WebObjects 5.2

com.webobjects.directtoweb
Class D2WUtils

java.lang.Object
  |
  +--com.webobjects.directtoweb.D2WUtils

public class D2WUtils
extends Object


Constructor Summary
D2WUtils()
           
 
Method Summary
static NSArray allEntities()
           
static String appletViewerCommand()
           
static int applicationPort()
           
static NSArray availableKeysForInterfaceAndKeyPath(com.webobjects._eoproject._WBInterfaceDescriptor i, NSArray keyPath)
           
static String darker(String hexColor)
           
static Class dataTypeForCustomKeyAndEntity(String customKey, EOEntity entity)
           
protected static void flushCaches()
           
static String homeHrefInContext(WOContext context)
           
static com.webobjects._eoproject._WBKeyDescriptor keyDescriptorForInterfaceAndKeyPath(com.webobjects._eoproject._WBInterfaceDescriptor i, NSArray keyPath)
           
static String lighter(String hexColor)
           
static D2WContext makeSubContextForDynamicPageNamed(String pageName, WOSession session)
           
static D2WContext makeSubContextForTaskAndEntity(String task, EOEntity entity, WOSession session)
           
static NSArray propertyKeyDescriptorsFromEntity(EOEntity e)
           
static String readableDateFormatDescription(String aString)
           
static NSArray readOnlyEntityNames(D2WContext c)
           
static boolean safeEquals(Object o1, Object o2)
           
static NSArray smartDefaultEntityNames()
           
static String smartDefaultKeyForEntity(EOEntity entity)
           
static String urlFromUrlAndFormValues(String currentUrl, NSDictionary formValues)
           
static String userDefaultsValueForKey(String key)
           
static NSArray visibleEntityNames(D2WContext c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

D2WUtils

public D2WUtils()
Method Detail

allEntities

public static NSArray allEntities()

appletViewerCommand

public static String appletViewerCommand()

applicationPort

public static int applicationPort()

availableKeysForInterfaceAndKeyPath

public static NSArray availableKeysForInterfaceAndKeyPath(com.webobjects._eoproject._WBInterfaceDescriptor i,
                                                          NSArray keyPath)

darker

public static String darker(String hexColor)

dataTypeForCustomKeyAndEntity

public static final Class dataTypeForCustomKeyAndEntity(String customKey,
                                                        EOEntity entity)

flushCaches

protected static void flushCaches()

homeHrefInContext

public static String homeHrefInContext(WOContext context)

keyDescriptorForInterfaceAndKeyPath

public static com.webobjects._eoproject._WBKeyDescriptor keyDescriptorForInterfaceAndKeyPath(com.webobjects._eoproject._WBInterfaceDescriptor i,
                                                                                             NSArray keyPath)

lighter

public static String lighter(String hexColor)

makeSubContextForDynamicPageNamed

public static D2WContext makeSubContextForDynamicPageNamed(String pageName,
                                                           WOSession session)

makeSubContextForTaskAndEntity

public static D2WContext makeSubContextForTaskAndEntity(String task,
                                                        EOEntity entity,
                                                        WOSession session)

propertyKeyDescriptorsFromEntity

public static NSArray propertyKeyDescriptorsFromEntity(EOEntity e)

readOnlyEntityNames

public static NSArray readOnlyEntityNames(D2WContext c)

readableDateFormatDescription

public static String readableDateFormatDescription(String aString)

safeEquals

public static boolean safeEquals(Object o1,
                                 Object o2)

smartDefaultEntityNames

public static NSArray smartDefaultEntityNames()

smartDefaultKeyForEntity

public static String smartDefaultKeyForEntity(EOEntity entity)

urlFromUrlAndFormValues

public static String urlFromUrlAndFormValues(String currentUrl,
                                             NSDictionary formValues)

userDefaultsValueForKey

public static String userDefaultsValueForKey(String key)

visibleEntityNames

public static NSArray visibleEntityNames(D2WContext c)

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.