- Inherits from:
- Object
- Package:
- com.apple.client.eoapplication
EOXMLUnarchiver objects contain the parameters used to create controllers (objects of the EOController class and its descendents) in the controller hierarchy. The parameters are determined from an XML specification sent from server.
For more information on using this class, see the book Getting Started with Direct to Java Client.
- Decoding objects
- decodeAlignmentForKey
- decodeArrayForKey
- decodeBooleanForKey
- decodeClassForKey
- decodeColorForKey
- decodeDictionaryForKey
- decodeEditabilityForKey
- decodeFontForKey
- decodeIntForKey
- decodePositionForKey
- decodeStringForKey
- decodeValueForKey
- Other methods
- EOXMLUnarchiver
- decodeRootObject
- decodeChildren
public EOXMLUnarchiver(NSDictionary values)
Creates an XML archiver based on the values NSDictionary.
public static Object decodeRootObject(NSDictionary aNSDictionary)
Decodes the top controller in an XML description, which is represented by an NSDictionary.
public int decodeAlignmentForKey(
String key,
int defaultAlignment)
Returns an
alignment specification (JTextField.LEFT
, JTextField.CENTER
,
or JTextField.RIGHT
)
for the key XML attribute. If no
value for key is specified, returns defaultAlignment.
public int decodeAlignmentForKey(String key)
Returns an
alignment specification (JTextField.LEFT
, JTextField.CENTER
,
or JTextField.RIGHT
)
for the key XML attribute. If no
value for key is specified, returns JTextField.LEFT
.
public NSArray decodeArrayForKey(
String key,
NSArray defaultArray)
Returns an NSArray for the key XML attribute. If no value for key is specified, returns defaultArray.
public NSArray decodeArrayForKey(String key)
Returns an NSArray for
the key XML attribute. If no value
for key is specified, returns null
.
public boolean decodeBooleanForKey(
String key,
boolean defaultBoolean)
Returns a boolean
for
the key XML attribute. If no value
for key is specified, returns defaultBoolean.
public boolean decodeBooleanForKey(String key)
Returns a boolean
for key XML
attribute. If no value for key is
specified, returns false
.
public NSArray decodeChildren()
Returns an NSArray containing the receiver's decoded children. The children are the objects created from XML tags contained in the receiver's XML description.
public Class decodeClassForKey(
String key,
Class defaultClass)
Returns a Class for the key XML attribute. If no value for key is specified, returns defaultClass.
public Class decodeClassForKey(String key)
Returns a Class for the key XML
attribute. If no value for key is
specified, returns null
.
public java.awt.Color decodeColorForKey(
String key,
java.awt.Color defaultColor)
Returns a color (a java.awt.Color object) for the key XML attribute. If no value for key is specified, returns defaultColor.
public java.awt.Color decodeColorForKey(String key)
Returns a
color (a java.awt.Color object) for the key XML
attribute. If no value for key is
specified, returns null
.
public NSDictionary decodeDictionaryForKey(
String key,
NSDictionary defaultDictionary)
Returns a NSDictionary for the key XML attribute. If no value for key is specified, returns defaultDictionary.
public NSDictionary decodeDictionaryForKey(String key)
Returns a NSDictionary for
the key XML attribute. If no value
for key is specified, returns null
.
public int decodeEditabilityForKey(
String key,
int defaultEditability)
Returns an
editability specification (EOEditable.IfSupercontrollerEditable
, EOEditable.AlwaysEditable
,
or EOEditable.NeverEditable
)
for the key XML attribute. If no
value for key is specified, returns defaultEditibility.
public int decodeEditabilityForKey(String key)
Returns an
editability specification (EOEditable.IfSupercontrollerEditable
, EOEditable.AlwaysEditable
,
or EOEditable.NeverEditable
)
for the key XML attribute. If no
value for key is specified, returns EOEditable.IfSupercontollerEditable
.
public java.awt.Font decodeFontForKey(
String key,
java.awt.Font defaultFont)
Returns a font specification (a java.awt.Font object) for the key XML attribute. If no value for key is specified, returns defaultFont.
public java.awt.Font decodeFontForKey(String key)
Returns a
font specification (a java.awt.Font object)
for the key XML attribute. If no
value for key is specified, returns null
.
public int decodeIntForKey(
String key,
int defaultInt)
Returns an int
for
the key XML attribute. If no value
for key is specified, returns defaultInt.
public int decodeIntForKey(String key)
Returns an int
for
the key XML attribute. If no value
for key is specified, returns 0.
public int decodePositionForKey(
String key,
int defaultPosition)
Returns a
position specification (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 defaultPosition.
public int decodePositionForKey(String key)
Returns a
position specification (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
.
public String decodeStringForKey(
String key,
String defaultString)
Returns a String for the key XML attribute. If no value for key is specified, returns defaultString.
public String decodeStringForKey(String key)
Returns a String for
the key XML attribute. If no value
for key is specified, returns null
.
public Object decodeValueForKey(String key)
Returns an
Object for the key XML attribute.
If no value for key is specified,
returns null
.
DRAFT