class WMAlias

Available on all platforms

Container for Alias

In wm3d, an alias is an xml element. Aliases can have their own default values. For example, an alias of <HELIX elem="RIBBON" color="yellow" /$gt; is RIBBON element with yellow default color.

Instance Fields

var elem:String

target element name of this alias; no default

var mybase:Dynamic

actual instance of this alias; no default. Classes such as WMAtom, WMBond, WMRibbon will be used here.

var name:String

XML element name of this alias; no default

function new():Void

Constructor. Use register function to generate alias. This constructor cannot set aliases.

function get_elem():String

getter for elem

function get_mybase():Dynamic

getter of mybase

function get_name():String

getter for name

function register(t:String, x:Xml):Void

register new alias of x as name t.

function set_elem(e:String):String

setter for elem

function set_name(n:String):String

setter for name