|
WebObjects 5.2 | |||||||||
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 , or JTextField.RIGHT ) for the
key XML attribute. |
int |
decodeAlignmentForKey(String key,
int defaultValueIfNotAvailable)
Returns an alignment ( JTextField.LEFT , JTextField.CENTER , or JTextField.RIGHT ) for the
key XML attribute. |
NSArray |
decodeArrayForKey(String key)
Returns an NSArray specified as child in the XML with the name key
or null if key is not specified in the XML. |
NSArray |
decodeArrayForKey(String key,
NSArray defaultValueIfNotAvailable)
Returns an NSArray specified as child in the XML with the name key
or defaultValueIfNotAvailable if key is not specified in the XML. |
boolean |
decodeBooleanForKey(String key)
Returns a boolean for the key XML attribute. |
boolean |
decodeBooleanForKey(String key,
boolean defaultValueIfNotAvailable)
Returns a boolean for the key XML 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 key
or null if key is not specified in the XML. |
Class |
decodeClassForKey(String key,
Class defaultValueIfNotAvailable)
Returns a Class specified by name as the XML attribute key
or defaultValueIfNotAvailable if key is not specified in the XML. |
Color |
decodeColorForKey(String key)
Returns a Color for the key XML attribute. |
Color |
decodeColorForKey(String key,
Color defaultValueIfNotAvailable)
Returns a Color for the key XML attribute. |
NSDictionary |
decodeDictionaryForKey(String key)
Returns an NSDictionary specified as child in the XML with the name key
or null if key is not specified in the XML. |
NSDictionary |
decodeDictionaryForKey(String key,
NSDictionary defaultValueIfNotAvailable)
Returns an NSDictionary specified as child in the XML with the name key
or defaultValueIfNotAvailable if key is not specified in the XML. |
double |
decodeDoubleForKey(String key)
Returns a double for the key XML attribute. |
double |
decodeDoubleForKey(String key,
double defaultValueIfNotAvailable)
Returns an integer for the key XML attribute. |
int |
decodeEditabilityForKey(String key)
Returns a editability specification ( EOEditable.IfSupercontrollerEditable ,
EOEditable.AlwaysEditable , or EOEditable.NeverEditable ) for the key XML attribute. |
int |
decodeEditabilityForKey(String key,
int defaultValueIfNotAvailable)
Returns a editability specification ( EOEditable.IfSupercontrollerEditable ,
EOEditable.AlwaysEditable , or EOEditable.NeverEditable ) for the key XML attribute. |
Font |
decodeFontForKey(String key)
Returns a Font for the key XML attribute. |
Font |
decodeFontForKey(String key,
Font defaultValueIfNotAvailable)
Returns a Font for the key XML attribute. |
Insets |
decodeInsetsForKey(String key)
|
Insets |
decodeInsetsForKey(String key,
Insets defaultValueIfNotAvailable)
|
int |
decodeIntForKey(String key)
Returns an integer for the key XML attribute. |
int |
decodeIntForKey(String key,
int defaultValueIfNotAvailable)
Returns an integer for the key XML attribute. |
int |
decodePositionForKey(String key)
Returns a position ( EOComponentController.Top , EOComponentController.Bottom ,
EOComponentController.Left , EOComponentController.Right , EOComponentController.TopLeft ,
EOComponentController.TopRight , EOComponentController.BottomLeft ,
or EOComponentController.BottomRight ) for the key XML attribute. |
int |
decodePositionForKey(String key,
int defaultValueIfNotAvailable)
Returns a position ( EOComponentController.Top , EOComponentController.Bottom ,
EOComponentController.Left , EOComponentController.Right , EOComponentController.TopLeft ,
EOComponentController.TopRight , EOComponentController.BottomLeft ,
or EOComponentController.BottomRight ) for the key XML 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 key XML attribute. |
String |
decodeStringForKey(String key,
String defaultValueIfNotAvailable)
Returns a String for the key XML attribute. |
Object |
decodeValueForKey(String key)
Returns an Object for the key XML 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 AdditionalActionsParameter
public static final String AlignmentParameter
public static final String AlignsComponentsParameter
public static final String AllowsDiscontiguousSelectionParameter
public static final String AllowsDuplicatesParameter
public static final String AllowsMultipleSelectionParameter
public static final String AllowsOneTouchExpandableParameter
public static final String AllowsRemoveAllParameter
public static final String AllowsSnapToZeroParameter
public static final String ArchiveNameParameter
public static final String AvailableTitlesKeyParameter
public static final String BorderTypeParameter
public static final String ButtonPositionParameter
public static final String CategoryNameParameter
public static final String CategoryPriorityParameter
public static final String ChildrenKeyParameter
public static final String ClassNameParameter
public static final String ColorParameter
public static final String DescriptionPathParameter
public static final String DetailKeysParameter
public static final String DetailRelationshipPathParameter
public static final String DisabledActionNamesParameter
public static final String DisplayGroupProviderMethodNameParameter
public static final String DisplayPatternParameter
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 ExpandedIconKeyParameter
public static final String FetchesOnConnectEnabledParameter
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 IconKeyParameter
public static final String IconNameParameter
public static final String IconURLParameter
public static final String ImageScalingParameter
public static final String IndexKeyParameter
public static final String InsetsParameter
public static final String InvokesDefaultActionParameter
public static final String IsLeafKeyParameter
public static final String IsQueryWidgetParameter
public static final String IsRootVisibleParameter
public static final String KeyValuePairsParameter
public static final String LabelAlignmentParameter
public static final String LabelComponentPositionParameter
public static final String LabelComponentWidthParameter
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 MinimumWidgetHeightParameter
public static final String MinimumWidgetWidthParameter
public static final String MinimumWidthParameter
public static final String MultipleWindowsAvailableParameter
public static final String ParentKeyParameter
public static final String PrefersContinuousChangeNotificationParameter
public static final String PrefersIconOnlyParameter
public static final String QuickTimeCanvasResizingParameter
public static final String RelationshipPathParameter
public static final String ResetTitlesObjectsOnEveryConnectParameter
public static final String ResizeWeightParameter
public static final String RootKeyParameter
public static final String RunsConfirmDialogForEmptyQualifiers
public static final String ScalingHintsParameter
public static final String SearchesTitlesObjectsInEditingContextParameter
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 SuppressesAssociationParameter
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 ToolTipParameter
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 UsesContinuousLayoutParameter
public static final String UsesHorizontalLayoutParameter
public static final String UsesLabelComponentParameter
public static final String UsesLargeButtonRepresentationParameter
public static final String UsesPasswordFieldParameter
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 dictionaryMethod 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 allpublic 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 allpublic 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 allpublic 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 allpublic 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 allpublic 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 allpublic 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 double decodeDoubleForKey(String key)
key
XML attribute. If no value for key
is specified, returns 0.key
- the name of the XML attribute to look uppublic double decodeDoubleForKey(String key, double 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 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 allpublic 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 allpublic 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 Insets decodeInsetsForKey(String key)
public Insets decodeInsetsForKey(String key, Insets defaultValueIfNotAvailable)
public 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 uppublic 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 allpublic 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 allpublic 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 Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |