static void addParameterChild ( Element node , String name , String value ) { if ( node != null ) { Document doc = node . getOwnerDocument ( ) ; Element parm = doc . createElement ( Constants . ELM_PARAMETER ) ; parm . setAttribute ( Constants . ATT_NAME , name ) ; parm . setAttribute ( Constants . ATT_VALUE , value ) ; /* * Set the override attribute to 'yes'. This isn't persisted since * this is determined upon loading the layout based upon the * channel definition. But for code that references this in-memory * value like ChannelStaticData it needs to be set. */ parm . setAttribute ( Constants . ATT_OVERRIDE , Constants . CAN_OVERRIDE ) ; node . appendChild ( parm ) ; } }
Performs parameter child element creation in the passed in Element .