| 
 | WebObjects 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.webobjects.eoapplication.EOXMLUnarchiver
EOXMLUnarchivers are used to unarchive objects (controllers and actions) from an XML description. Instances of EOXMLUnarchiver are passed to constructors of the objects to unarchive and can be used to retrieve the XML arguments.
| Constructor Summary | |
| EOXMLUnarchiver(NSDictionary values)Creates a new EOXMLUnarchiver. | |
| Method Summary | |
|  int | decodeAlignmentForKey(String key)Returns an alignment ( JTextField.LEFT,JTextField.CENTER, orJTextField.RIGHT) for thekeyXML attribute. | 
|  int | decodeAlignmentForKey(String key,
                      int defaultValueIfNotAvailable)Returns an alignment ( JTextField.LEFT,JTextField.CENTER, orJTextField.RIGHT) for thekeyXML attribute. | 
|  NSArray | decodeArrayForKey(String key)Returns an NSArray specified as child in the XML with the name keyornullifkeyis not specified in the XML. | 
|  NSArray | decodeArrayForKey(String key,
                  NSArray defaultValueIfNotAvailable)Returns an NSArray specified as child in the XML with the name keyordefaultValueIfNotAvailableifkeyis not specified in the XML. | 
|  boolean | decodeBooleanForKey(String key)Returns a boolean for the keyXML attribute. | 
|  boolean | decodeBooleanForKey(String key,
                    boolean defaultValueIfNotAvailable)Returns a boolean for the keyXML attribute. | 
|  NSArray | decodeChildren()Returns an array containing the objects decoded as the receiver's children. | 
|  Class | decodeClassForKey(String key)Returns a Class specified by name as the XML attribute keyornullifkeyis not specified in the XML. | 
|  Class | decodeClassForKey(String key,
                  Class defaultValueIfNotAvailable)Returns a Class specified by name as the XML attribute keyordefaultValueIfNotAvailableifkeyis not specified in the XML. | 
|  Color | decodeColorForKey(String key)Returns a Color for the keyXML attribute. | 
|  Color | decodeColorForKey(String key,
                  Color defaultValueIfNotAvailable)Returns a Color for the keyXML attribute. | 
|  NSDictionary | decodeDictionaryForKey(String key)Returns an NSDictionary specified as child in the XML with the name keyor null ifkeyis not specified in the XML. | 
|  NSDictionary | decodeDictionaryForKey(String key,
                       NSDictionary defaultValueIfNotAvailable)Returns an NSDictionary specified as child in the XML with the name keyordefaultValueIfNotAvailableifkeyis not specified in the XML. | 
|  int | decodeEditabilityForKey(String key)Returns a editability specification ( EOEditable.IfSupercontrollerEditable,EOEditable.AlwaysEditable, orEOEditable.NeverEditable) for thekeyXML attribute. | 
|  int | decodeEditabilityForKey(String key,
                        int defaultValueIfNotAvailable)Returns a editability specification ( EOEditable.IfSupercontrollerEditable,EOEditable.AlwaysEditable, orEOEditable.NeverEditable) for thekeyXML attribute. | 
|  Font | decodeFontForKey(String key)Returns a Font for the keyXML attribute. | 
|  Font | decodeFontForKey(String key,
                 Font defaultValueIfNotAvailable)Returns a Font for the keyXML attribute. | 
|  int | decodeIntForKey(String key)Returns an integer for the keyXML attribute. | 
|  int | decodeIntForKey(String key,
                int defaultValueIfNotAvailable)Returns an integer for the keyXML attribute. | 
|  int | decodePositionForKey(String key)Returns a position ( EOComponentController.Top,EOComponentController.Bottom,EOComponentController.Left,EOComponentController.Right,EOComponentController.TopLeft,EOComponentController.TopRight,EOComponentController.BottomLeft,
 orEOComponentController.BottomRight) for thekeyXML attribute. | 
|  int | decodePositionForKey(String key,
                     int defaultValueIfNotAvailable)Returns a position ( EOComponentController.Top,EOComponentController.Bottom,EOComponentController.Left,EOComponentController.Right,EOComponentController.TopLeft,EOComponentController.TopRight,EOComponentController.BottomLeft,
 orEOComponentController.BottomRight) for thekeyXML attribute. | 
| static Object | decodeRootObject(NSDictionary rootObjectValues)Decodes the top object in an XML description, which is represented by an NSDictionary. | 
|  String | decodeStringForKey(String key)Returns a String for the keyXML attribute. | 
|  String | decodeStringForKey(String key,
                   String defaultValueIfNotAvailable)Returns a String for the keyXML attribute. | 
|  Object | decodeValueForKey(String key)Returns an Object for the keyXML attribute. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String ActionKeyParameter
public static final String ActionNameParameter
public static final String ActionPriorityParameter
public static final String ActionWidgetPositionParameter
public static final String AlignmentParameter
public static final String AlignmentWidthParameter
public static final String AlignsComponentsParameter
public static final String AllowsMultipleSelectionParameter
public static final String ArchiveNameParameter
public static final String BorderTypeParameter
public static final String ButtonPositionParameter
public static final String CategoryNameParameter
public static final String CategoryPriorityParameter
public static final String ClassNameParameter
public static final String ColorParameter
public static final String DescriptionPathParameter
public static final String DisabledActionNamesParameter
public static final String DisplayGroupProviderMethodNameParameter
public static final String DisplaysLabelInWidgetParameter
public static final String DisposeIfDeactivatedParameter
public static final String EditabilityParameter
public static final String EditingContextProviderMethodNameParameter
public static final String EnabledDisplayGroupProviderMethodNameParameter
public static final String EnabledKeyParameter
public static final String EntityParameter
public static final String FontParameter
public static final String FormatAllowedParameter
public static final String FormatClassParameter
public static final String FormatPatternParameter
public static final String HighlightParameter
public static final String HorizontalBorderParameter
public static final String HorizontallyResizableParameter
public static final String IconNameParameter
public static final String IconURLParameter
public static final String ImageScalingParameter
public static final String IsQueryWidgetParameter
public static final String LabelAlignmentParameter
public static final String LabelComponentPositionParameter
public static final String LabelParameter
public static final String MandatoryRelationshipPathsParameter
public static final String MaximumValueKeyParameter
public static final String MenuAcceleratorParameter
public static final String MinimumHeightParameter
public static final String MinimumValueKeyParameter
public static final String MinimumWidthParameter
public static final String MultipleWindowsAvailableParameter
public static final String PrefersIconOnlyParameter
public static final String QuickTimeCanvasResizingParameter
public static final String RelationshipPathParameter
public static final String RunsConfirmDialogForEmptyQualifiers
public static final String ScalingHintsParameter
public static final String SendsActionToAllControllersParameter
public static final String SharedIdentifierParameter
public static final String ShortDescriptionParameter
public static final String SmallIconNameParameter
public static final String SmallIconURLParameter
public static final String SortsByColumnOrderParameter
public static final String TaskParameter
public static final String TitleKeysParameter
public static final String TitlePositionParameter
public static final String TitlesDisplayGroupProviderMethodNameParameter
public static final String TitlesEntityParameter
public static final String TransientParameter
public static final String TypeNameParameter
public static final String URLKeyParameter
public static final String UsesActionParameter
public static final String UsesButtonParameter
public static final String UsesHorizontalLayoutParameter
public static final String UsesLabelComponentParameter
public static final String UsesLargeButtonRepresentationParameter
public static final String UsesTableLabelsParameter
public static final String UsesTitledBorderParameter
public static final String UsesUserDefaultsWindowLocationParameter
public static final String UsesUserDefaultsWindowSizeParameter
public static final String ValueKeyParameter
public static final String VerticalBorderParameter
public static final String VerticallyResizableParameter
public static final String WindowPositionParameter
| Constructor Detail | 
public EOXMLUnarchiver(NSDictionary values)
values - the XML attributes as a dictionary| Method Detail | 
public int decodeAlignmentForKey(String key)
JTextField.LEFT, JTextField.CENTER, or JTextField.RIGHT) for the
 key XML attribute. If no value for key is specified,
 returns JTextField.LEFT. The alignment can be specified as "Center", "Left", or "Right".key - the name of the XML attribute to look upJTextField.LEFT if the key is not specified at all
public int decodeAlignmentForKey(String key,
                                 int defaultValueIfNotAvailable)
JTextField.LEFT, JTextField.CENTER, or JTextField.RIGHT) for the
 key XML attribute. If no value for key is specified,
 returns defaultValueIfNotAvailable. The alignment can be specified as
 "Center", "Left", or "Right".key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic NSArray decodeArrayForKey(String key)
key
 or null if key is not specified in the XML.key - the name of the array to look upnull if the key is not specified at all
public NSArray decodeArrayForKey(String key,
                                 NSArray defaultValueIfNotAvailable)
key
 or defaultValueIfNotAvailable if key is not specified in the XML.key - the name of the array to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic boolean decodeBooleanForKey(String key)
key XML attribute. If no value for key
 is specified, returns false.key - the name of the XML attribute to look upfalse if the key is not specified at all
public boolean decodeBooleanForKey(String key,
                                   boolean defaultValueIfNotAvailable)
key XML attribute. If no value for key
 is specified, returns defaultValueIfNotAvailable.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic NSArray decodeChildren()
public Class decodeClassForKey(String key)
key
 or null if key is not specified in the XML.key - the name of the XML attribute to look upnull if the key is not specified at all
public Class decodeClassForKey(String key,
                               Class defaultValueIfNotAvailable)
key
 or defaultValueIfNotAvailable if key is not specified in the XML.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic Color decodeColorForKey(String key)
key XML attribute. If no value for key
 is specified, returns null. The color can be specified either as "red,green,blue"
 with red, green and blue being integers between 0 and
 255 or as "#RRGGBB" with RR, GG, BB being
 hexadecimal values between 00 and FF.key - the name of the XML attribute to look upnull if the key is not specified at all
public Color decodeColorForKey(String key,
                               Color defaultValueIfNotAvailable)
key XML attribute. If no value for key
 is specified, returns defaultValueIfNotAvailable. The color can be specified
 either as "red,green,blue" with red, green and
 blue being integers between 0 and 255 or as "#RRGGBB" with
 RR, GG, BB being hexadecimal values between 00 and FF.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic NSDictionary decodeDictionaryForKey(String key)
key
 or null if key is not specified in the XML.key - the name of the dictionary to look upnull if the key is not specified at all
public NSDictionary decodeDictionaryForKey(String key,
                                           NSDictionary defaultValueIfNotAvailable)
key
 or defaultValueIfNotAvailable if key is not specified in the XML.key - the name of the dictionary to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic int decodeEditabilityForKey(String key)
EOEditable.IfSupercontrollerEditable,
 EOEditable.AlwaysEditable, or EOEditable.NeverEditable) for the key XML attribute.
 If no value for key is specified, returns EOEditable.IfSupercontrollerEditable.
 The editability can be specified as "Never", "Always", or "IfSupercontroller".key - the name of the XML attribute to look upEOEditable.IfSupercontrollerEditable if the key is not specified at all
public int decodeEditabilityForKey(String key,
                                   int defaultValueIfNotAvailable)
EOEditable.IfSupercontrollerEditable,
 EOEditable.AlwaysEditable, or EOEditable.NeverEditable) for the key XML attribute.
 If no value for key is specified, returns defaultValueIfNotAvailable.
 The editability can be specified as "Never", "Always", or "IfSupercontroller".key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic Font decodeFontForKey(String key)
key XML attribute. If no value for key
 is specified, returns null. The font can be specified as a String
 "size[,style][:font_name]" with size being an absolute integer
 or a relative value like "+4", "-2" or "12", the style being one of the values
 "Plain", "Bold", "Italic", or "BoldItalic", and font_name being the name of
 the font. style and font_name are optional.key - the name of the XML attribute to look upnull if the key is not specified at all
public Font decodeFontForKey(String key,
                             Font defaultValueIfNotAvailable)
key XML attribute. If no value for key
 is specified, returns defaultValueIfNotAvailable. The font can be specified
 as a String "size[,style][:font_name]" with size being an absolute
 integer or a relative value like "+4", "-2" or "12", the style being one of the
 values "Plain", "Bold", "Italic", or "BoldItalic", and font_name being the name
 of the font. style and font_name are optional.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specified and also the
                                   base font if the name is not specified explicitlypublic int decodeIntForKey(String key)
key XML attribute. If no value for key
 is specified, returns 0.key - the name of the XML attribute to look up
public int decodeIntForKey(String key,
                           int defaultValueIfNotAvailable)
key XML attribute. If no value for key
 is specified, returns defaultValueIfNotAvailable.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic int decodePositionForKey(String key)
EOComponentController.Top, EOComponentController.Bottom,
 EOComponentController.Left, EOComponentController.Right, EOComponentController.TopLeft,
 EOComponentController.TopRight, EOComponentController.BottomLeft,
 or EOComponentController.BottomRight) for the key XML attribute.
 If no value for key is specified, returns EOComponentController.Center.
 The position can be specified as "Center", "Top", "Bottom", "Left", "Right", "TopLeft",
 "TopRight", "BottomLeft", or "BottomRight".key - the name of the XML attribute to look upEOComponentController.Center if the key is not specified at all
public int decodePositionForKey(String key,
                                int defaultValueIfNotAvailable)
EOComponentController.Top, EOComponentController.Bottom,
 EOComponentController.Left, EOComponentController.Right, EOComponentController.TopLeft,
 EOComponentController.TopRight, EOComponentController.BottomLeft,
 or EOComponentController.BottomRight) for the key XML attribute.
 If no value for key is specified, returns defaultValueIfNotAvailable.
 The position can be specified as "Center", "Top", "Bottom", "Left", "Right", "TopLeft",
 "TopRight", "BottomLeft", or "BottomRight".key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic static Object decodeRootObject(NSDictionary rootObjectValues)
rootObjectValues - the XML description as a dictionarypublic String decodeStringForKey(String key)
key XML attribute. If no value for key
 is specified, returns null.key - the name of the XML attribute to look upnull if the key is not specified at all
public String decodeStringForKey(String key,
                                 String defaultValueIfNotAvailable)
key XML attribute. If no value for key
 is specified, returns defaultValueIfNotAvailable.key - the name of the XML attribute to look updefaultValueIfNotAvailable - the default value if the XML attribute is not specifiedpublic Object decodeValueForKey(String key)
key XML attribute. If no value for key
 is specified, returns null.key - the name of the XML attribute to look upnull if the key is not specified at all| 
 | Last updated Thu Jan 10 18:10:21 PST 2002. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||