class com.senocular.xml

XMLDefinitionFilter

Class Information

Description
XMLDefinitionFilter instances are used with the create method of the XMLDefinition class. Instances of XMLDefinitionFilter define for an object type used in XMLDefinition.create() what properties are included or excluded from the resulting XML or what properties should be marked as a definition property. These properties are defined in an object passed to the constructor of a new XMLDefinitionFilter instance. Using the defaultType parameter, you can also dictate what the default property behavior is. Property types include INCLUDE, EXCLUDE, and PROPERTY and are saved as static constants within this class.
Constructors
XMLDefinitionFilter() Constructor; creates a new XMLDefinitionFilter.
Properties
INCLUDE Value for indicating that an object's property should be included in generated definition XML.
EXCLUDE Value for indicating that an object's property should be excluded from generated definition XML.
PROPERTY Value for indicating that an object's property should be defined as definition property in XML.

Constructors

XMLDefinitionFilter()

public function XMLDefinitionFilter(qualifiedClassName:String, properties:Object, defaultType:String = INCLUDE)
Constructor; creates a new XMLDefinitionFilter.
Parameters:
qualifiedClassNameThe fully qualifiedClassName class name of the object type being filtered. This is in the form of PackagePath::ClassName or the string returned by getQualifiedClassName().
propertiesA generic object of the type Object with properties relating to the target type's properties. The value of those properties within this object determine if the property is included, excluded, or defined as a property in the XML generated by XMLDefinition.create().
defaultTypeThe default filter type for properties not referenced in the properties object. By default this is XMLDefinitionFilter.INCLUDE.

Properties

INCLUDE

public static const INCLUDE:String
Value for indicating that an object's property should be included in generated definition XML.

EXCLUDE

public static const EXCLUDE:String
Value for indicating that an object's property should be excluded from generated definition XML.

PROPERTY

public static const PROPERTY:String
Value for indicating that an object's property should be defined as definition property in XML.

Page generated: 6:02 am on August 9, 2007