input
stringlengths
10
828
output
stringlengths
5
107
protected string get checked attribute throws exception if is array string values get input values if values form tag not available array if values null values length 0 return null else string value get value for int i 0 i values length i if value equals values i return checked return null else return super get checked attribute
get checked attribute
public void init throws exception http servlet request request http servlet request page context get request validation support support validation support get instance request string path get action form support get form request path if form null throw new config exception cannot find form for action path result support get form result request path if result null values support get form data request path create null
get corresponding validation form
protected string get checked attribute throws exception string value get input value if value form tag not available return get checked null null checked return get value attribute equals value checked null
get checked attribute
public void set create string string create string
set create property
public string get multiple return multiple
get multiple property
public void set multiple string string multiple string
set multiple property
public string get redisplay return redisplay
get redisplay property
public void set redisplay string string redisplay string
set redisplay property
public string match string value matcher matcher pattern matcher value sub sequence 0 value length if matcher find return null return matcher group
apply pattern to specified value
protected void reset super reset order null descending null select tag null
reset tag attributes
public boolean contains input value string value return set null false set contains value
check if the specified value is contained in the list
public boolean check object value if value null double number number value double value if min number allow min min number return false if max number allow max max number return false return true
check object to be in receivers interval
public void set max double new max max new max
set max property
public void set min double new min min new min
set min property
protected string label object object http servlet request request locale locale i18n support i18n i18n support get instance request return i18n get resource request locale bundle key object
this implementation uses a
private string sort key int order boolean descending locale locale string buffer buf new string buffer buf append order buf append descending if order label order buf append locale return buf to string
construct unique key for specified sort parameters
public void set type string class name type class name
set value type
public void set selected string comma separated keys selected keys comma separated keys
set the keys to be selected
public void set keys string comma separated keys keys comma separated keys
set the keys
public void set properties string path to properties properties path to properties
set the keys from properties file
protected void add object object comparable value string key key object if key2value contains key key throw new illegal state exception duplicate key key key2value put key value if value2object contains key value throw new illegal state exception duplicate value value value2object put value object
add an object with associated value
public void set selected object value boolean select if select if selected null selected new hash set 8 selected add value else if selected null selected remove value
select deselect the specified value
public string get redirect url return redirect
get url recently passed to
public void set context path string value context path value
set context path to be returned in
public void set bundle alias string alias string bundle if bundle null bundle equals alias aliases remove alias else aliases put alias bundle
set bundle alias
public string resolve bundle string bundle return aliases contains key bundle string aliases get bundle bundle
get unaliased bundle name
public map get resource if resource null resource new map facade public object get object key return support get resource locale bundle key to string return resource
answer a map to serve resource strings by key
public object get object key string name key to string module accessor result null if name equals module accessor this get name return module accessor this else module context context support get module context name if context null if cache contains key name cache remove name return null result module accessor cache get context get name if result null result new module accessor context cache put context get name result return result
get module accessor for specified module name
public map get message if message null message new map facade public object get final object key return new map facade private array list args empty array list public object get object value if args empty array list args new array list 4 if value instanceof object object values object value for int i 0 i values length i args add values i else args add value return this public string to string return support get message locale bundle key to string args to array return message
answer a map to serve message strings by key and args
public map get path if path null path new map facade public object get object key return context get path key to string return path
get map to serve context relative paths by action identifier
public map get attribute if attribute null attribute new map facade public object get object key if key null return null return context get attribute key to string return attribute
get map to serve attributes from module scope
public map get bundle if bundle null bundle new map facade public object get object key return new bundle bean locale key to string return bundle
answer a map to serve bundle beans by name
public map get for name if for name null for name new for name map return for name
answer a code for name map code to lookup module accessors by name
protected object find variable string variable throws elexception object result request get attribute variable if result null http session session request get session false if session null result session get attribute variable if result null result context get attribute variable if result null result context get servlet context get attribute variable return result
search request session module application scope for specified variable
public map get format if format null format new map facade public object get object key return message key format locale support return format
answer a map to format instances of
public base root config impl parse url urls throws config exception return base root config impl parse all urls
parse base configuration files
public member config get member config return member
get member configuration
public void set member config member config member this member member
get member configuration
public void add arg config impl value args add value
add arg configuration
public method config get method config return method
get method configuration
public method resolve function string prefix string name return method functions map get prefix name
resolve according to code functions code elements
public void set method config method config value method value
set method configuration
public field config get field config return field
get field configuration
public void set field config field config field this field field
set field configuration
public iterator get functions configs return functions values iterator
answer function elements
protected void apply object value class loader loader throws config exception iterator features get feature configs while features has next feature config feature feature config features next if feature instanceof method config method config feature invoke value get class value loader else if feature instanceof property config property config feature set value loader
apply features call methods and set properties
public void add property config impl value throws config exception features add value
add property configuration
public void set parameter map map parameters this parameters parameters
set parameter map
public void set scope name string value throws config exception if value null value equals local scope local scope else if value equals module scope module scope else if value equals application scope application scope else throw new config exception bad scope name value in to inline string scope name value
set scope by name
public void begin string namespace string name attributes attributes throws exception string id prefix index if digester get logger is debug enabled digester get logger debug unique id rule digester get match set property to id property utils set property digester peek property id
assign new id to top object
protected string get href attribute throws exception http servlet request request http servlet request page context get request module support support module support get instance request module context context null if module null context support get module context request else context support get module context module string buffer buffer new string buffer buffer append request get context path buffer append context get path action http servlet response response http servlet response page context get response return response encode url buffer to string
get href attribute
protected void append attributes string buffer buffer throws exception append buffer id get id attribute
append attributes to be rendered to the specified buffer
protected string get accesskey attribute throws exception return accesskey
get accesskey attribute
protected string get coords attribute throws exception return coords
get coords attribute
protected void reset id null
reset fields to their initial values
protected string get charset attribute throws exception return charset
get charset attribute
protected string get body content throws exception return null
get the tag body contents to be rendered
protected string get hreflang attribute throws exception return hreflang
get hreflang attribute
protected void reset core attributes style null clazz null title null i18n attributes lang null dir null event attributes onclick null ondblclick null onmousedown null onmouseup null onmouseover null onmousemove null onmouseout null onkeypress null onkeydown null onkeyup null
reset fields to their initial values
protected string get id attribute throws exception return id
get id attribute
protected string get onfocus attribute throws exception return onfocus
get onfocus attribute
protected string get onclick attribute throws exception return onclick
get onclick attribute
protected string get action attribute throws exception http servlet request request http servlet request page context get request module support support module support get instance request module context context support get module context request string buffer buffer new string buffer buffer append request get context path buffer append context get path action return buffer to string
get action attribute
protected string get ondblclick attribute throws exception return ondblclick
get ondblclick attribute
protected root config impl parse all url urls throws config exception root config impl root parse urls 0 for int i 1 i urls length i root merge parse urls i root initialize if log is debug enabled log debug root to xml return root
parse specified urls merge and initialize resulting trees
protected string get shape attribute throws exception return shape
get shape attribute
protected string get on keydown attribute throws exception return onkeydown
get onkeydown attribute
protected string get method attribute throws exception return method
get method attribute
protected string get tabindex attribute throws exception return tabindex
get tabindex attribute
protected string get on keypress attribute throws exception return onkeypress
get onkeypress attribute
protected string get onreset attribute throws exception return onreset
get onreset attribute
protected string get onsubmit attribute throws exception return onsubmit
get onsubmit attribute
protected string get on keyup attribute throws exception return onkeyup
get onkeyup attribute
protected string to string http servlet request request return to string
this implementation simply delegates to code to string code
protected string get type attribute throws exception return type
get type attribute
protected string get onmousedown attribute throws exception return onmousedown
get onmousedown attribute
public accessor get string key return accessors get key
get accessor for specified key
public object get final http servlet request request return new map facade private map cache public object get object key accessor accessor accessor map this get key if accessor null throw new access exception no such accessor key if accessor is cacheable if cache null cache new hash map else if cache contains key key return cache get key object value accessor get request cache put key value return value else return accessor get request
this method produces a map
public string get recent request dispatch path return recent dispatch path
get dispatch path recently passed to
protected string get onmousemove attribute throws exception return onmousemove
get onmousemove attribute
public void put string key accessor value accessors put key value
put accessor for specified key
public object create http servlet request request return accessors get request
create object map from our encapsulated accessor map
protected string get onmouseout attribute throws exception return onmouseout
get onmouseout attribute
public void put object key accessor value map put key value
save accessor under specified key
public accessor get object key return accessor map get key
get accessor for specified key
protected string get onmouseover attribute throws exception return onmouseover
get onmouseover attribute
protected string get style attribute throws exception return style
get style attribute
public iterator get args return args iterator
answer arguments iterator
protected string get title attribute throws exception return title
get title attribute
public void set key string string key string
set the resource key
public iterator get keys return messages map key set iterator
get all the keys
public boolean is empty return messages map is empty
answer true iff no messages have been added yet
public string format locale locale i18n support i18n object values new object args size for int i 0 i values length i message arg arg message arg args get i values i arg get value locale i18n return i18n get message locale bundle key values
format the message to a message string
public boolean contains messages string key return messages map contains key key
answer true iff there are message for the specified key
public boolean contains global messages return contains messages global key
answer true iff there are global messages
public message get first message string key object o messages map get key if o instanceof list return message list o get 0 o null o instanceof message return message o
get the first message added for the specified key
public message get first global message return get first message global key
get the first added global message
public iterator get global messages return get messages global key
get global messages instances of
public iterator get all messages final iterator keys messages map key set iterator return new iterator iterator delegate public boolean has next return delegate null delegate has next keys has next public object next if delegate null delegate has next delegate get messages string keys next return delegate next public void remove delegate remove
get all messages instances of
public gallery service create gallery service return new gallery service impl
metgod to create new instance of