input
stringlengths
10
828
output
stringlengths
5
107
private font get font return cached font
get a font object for the current fontname and fontsize
private void set optimal render quality graphics2 d graphics graphics set rendering hint rendering hints key rendering rendering hints value render quality graphics set rendering hint rendering hints key antialiasing rendering hints value antialias on graphics set rendering hint rendering hints key fractionalmetrics rendering hints value fractionalmetrics on graphics set rendering hint rendering hints key interpolation rendering hints value interpolation bicubic
sets rendering hints for optimal rendering quality
public string calculate state string buffer ret new string buffer iterator child names get child names list lst new array list while child names has next string name string child names next control child get control by name name string ch state child get control state system out println for child state is ch state lst add ch state string s new string lst size lst to array s ret append en de coder encode strings s return ret to string
get control state method comment
public iterator get child names return childs key set iterator
get child names method comment
public control get control by name string name return control childs get name
get control by name method comment
public boolean has descendant java lang string name iterator it get child names while it has next string cname string it next if cname equals name return true control child get control by name cname if child instanceof control container if control container child has descendant name return true return false
has descendant method comment
public boolean is force cache refresh return force cache refresh
insert the methods description here
public boolean is force debug mode return force debug mode
insert the methods description here
public boolean is force no cache cache must never be applied in debug mode return force no cache force debug mode
insert the methods description here
public string get name return http
get name method comment
public object get named object string s if context equals s return context if request equals s return request if responce equals s return responce return null
get named object method comment
public void invalidate session http session ses request get session false if ses null return ses remove attribute constants username key ses remove attribute constants user key
invalidate session method comment
public int get current group begin return current group begin
insert the methods description here
public int get current group end return current group end
insert the methods description here
public void write int b throws java io ioexception wr write char b
writes the specified byte to this output stream
public int get current group number return current group number
insert the methods description here
public boolean need doc type return false
need doc type method comment
public boolean need line breaks return false
need line breaks method comment
public boolean need tag string tag return null tt lookup tag to lower case
need tag method comment
public boolean need to step into java lang string tag system err println tag tag if tag equals ignore case script tag equals ignore case style return false return true
need to step into method comment
public boolean process attribute org w3c tidy tidy context c string attr name string attr value return true
process attribute method comment
public int get pages in group return pages in group
insert the methods description here
public boolean need doc type return true
need doc type method comment
public boolean need line breaks return true
need line breaks method comment
public boolean need tag string tag return true
need tag method comment
public boolean need to step into string tag return true
need to step into method comment
public int get rows per this page return rows per this page
insert the methods description here
public int get total page count return total page count
insert the methods description here
public int get total row count return total row count
insert the methods description here
protected string get next reader line throws ioexception string line null while line null line equals ignore case string nextline get next string if nextline null end of file return null line nextline return line
function return next string what seems to be element
private void read line renew element next element null source for element null try source for element get next reader line catch ioexception e log log error toolkit xml encode file get name n log throwable to xml e this if source for element null next element check string source for element if next element null log log critical toolkit xml encode file get name bad string format source for element read line else return else end of file return
function returns element when line was parsed in good format
protected string get next reader line throws ioexception string line null while line null line equals ignore case string nextline in read line if nextline null end of file return null if eof symbols null nextline starts with eof symbols must check if eof sequesce was found int maxlines 100 while in read line null maxlines 0 maxlines return null line nextline return line
function returns next value that seems to be element
public void init java util properties properties
init method comment
public void log string message
log method comment
public void log java lang throwable ex
log method comment
public void timestamp java lang string s
public void reset time
public boolean has next if i has next if last null last i next if set contains last return true else last null return has next else return false
returns tt true tt if the iteration has more elements
public object next if has next object o last last null return last else return null
returns the next element in the interation
public boolean has next if cur i2 first iterator boolean ret cur has next if ret return ret else if first null i2 new skipping set iterator i2 first cur i2 return has next else return cur has next
returns tt true tt if the iteration has more elements
public object next if has next return cur next else return null
returns the next element in the interation
public boolean is stop ordered return stop ordered
insert the methods description here
public void set stop ordered boolean new stop ordered stop ordered new stop ordered
insert the methods description here
public long get next id java sql connection con return system current time millis
insert the methods description here
public long get next id java sql connection con throws java sql sqlexception try return db get next id con catch unsupported operation exception ex return st get next id con
insert the methods description here
public string encode strings string s string buffer r new string buffer for int i 0 i s length i r append encode s i if i s length 1 r append delimiter return r to string
result string may contain
public repository level get resource top level string path throws ioexception iterator levels get levels 0 while levels has next sorted map entry e sorted map entry levels next repository level level repository level e get value if level has resource path return level return null
returns highest level where given resource version exists
public repository level get resource bottom level string path throws ioexception iterator levels get levels 0 repository level ret null while levels has next sorted map entry e sorted map entry levels next repository level level repository level e get value if level has resource path ret level return ret
returns lowest level where given resource version exists
public boolean is top level repository level level integer max prio integer levels first key return level get level integer max value max prio int value
just checks if passed level is top level or not
protected ioresource overwrite resource string path throws ioexception iterator it get levels 0 if it has next sorted map entry e sorted map entry it next repository level level repository level e get value return level create resource path else throw new ioexception no level exists
tries to create resource on top level
public boolean add new user string username int category string password throws remote exception try system out println producao scripts incluiusuario sh username category password runtime get runtime exec producao scripts incluiusuario sh username category password system out println n usu rio username adicionado return true catch exception e e print stack trace return false
add the user to the networks domain
public boolean disable user login string user name throws remote exception try system out println producao scripts desativa sh user name runtime get runtime exec producao scripts desativa sh user name system out println login de user name foi desabilitado return true catch exception e e print stack trace return false
dont allow the user to logon on any workstation
public boolean enable user login string user name throws remote exception try system out println executando producao scripts ativa sh user name runtime get runtime exec producao scripts ativa sh user name system out println login de user name foi habilitado return true catch exception e e print stack trace return false
allow the user to logon on any workstation
public object convert to object string target try number format formatter decimal format get percent instance locale if target index of 1 target number parsed number parse number target formatter return new percent data parsed number double value catch number format exception e throw new message runtime exception e
unformats its argument and returns a big decimal instance
public string convert to string object value if value null return try big decimal big dec value get big decimal value number format format number format get percent instance locale format fix character jvmerrors for decimal format format return format format big dec value double value catch illegal argument exception iae throw new format exception unable to format 0 as a percentage value iae value
returns a string representation of its argument formatted as a
public object convert to object string target number format decimal format number format get instance locale number number parse number target decimal format return number double value
returns an object representation of its argument
public object convert to object string target number format decimal format number format get instance locale number number parse number target decimal format return number long value
returns an object representation of its argument
public string convert to string object obj if obj instanceof double number format decimal format number format get instance locale decimal format rounding mode half up decimal format fix character jvmerrors for decimal format decimal format return decimal format format obj throw new message runtime exception can not format any objects that are not double
returns a formatted version of its argument
public string convert to string object obj return obj null null obj to string
returns a formatted version of its argument
public object convert to object string target try number format decimal format number format get integer instance locale number number parse number target decimal format return number int value catch number format exception e throw new message runtime exception e
returns an object representation of its argument
public string convert to string object obj if obj null return null number format formatter number format get currency instance locale try big decimal number big decimal obj number number set scale scale big decimal round half up formatter fix character jvmerrors for decimal format formatter return formatter format number double value catch illegal argument exception e throw new message runtime exception e
returns a string representation of its argument formatted as a
public string convert to string object value if value null return null string buffer buf new string buffer date format formatter get format null buf formatter format value buf new field position 0 return buf to string
returns a string representation of its argument formatted as a date
public object create instance class object service definition injection key key injection meta data injection meta data find injection data service definition key return call constructor injection meta data
creates an instance for a service uses
protected boolean has post construct annotation method method return method is annotation present post construct class
intended for override to support other annotations
protected boolean has inject annotation on method method method return method is annotation present injection utils inject
intended for override to support other annotations
protected boolean has inject annotation on field field field return field is annotation present injection utils inject
intended for override to support other annotations
public injection meta data create injection meta data class service injection key key injection meta data injection meta data new injection meta data service key if service null constructor constructor injection utils find constructor service injection meta data set constructor constructor injection meta data set scope handler injection utils get scope handler injection meta data get service class injection meta data set pre defined true injection cache handler put injection meta data return injection meta data
will create a predefined service for later resolve
public service register find service register class service injection key key service register service register registered named services get key if service register null service is interface service register register key false else if service register null service is interface service register register for interface key false return service register
will find the service register but also perform registration where applicable
public class find service class injection key key return this injection container find service key
checks the registry for the service class using a key not null safe
public class find service class and register injection key key try return this injection container find service register key get service definition key get service catch duplicate registration exception e return this injection container find service key
checks the registry for the service class using a key not null safe
private void resolve service injection meta data injection meta data injection meta data set constructor dependencies find dependencies injection meta data get constructor injection meta data set injection points injection finder find injection points injection meta data get service class this injection meta data set post construct method injection finder find post construct injection meta data get service class
resolves finds all injection needs constructors and members
private void resolve predefined service injection meta data cached injection meta data resolve service cached injection meta data cached injection meta data set pre defined false
will resolve the service and set the predefined to false
private void auto wire bean object service injection meta data injection meta data inject from injection points service injection meta data
uses the injection points to create instances for all services intended
public void store object object p object m store add p object return
store an object for iterator use
public void remove object object p object m store remove p object return
remove an object from the iterator
public boolean has next if m pos 1 m store size return true else return false
are there objects left
public object next try return m store get m pos catch array index out of bounds exception aiobe throw new no such element exception
return the next object of the iterator
public int get index object p object return m store index of p object
returns the index of code node code in the receivers children
public long get pos return m pos
get the current object position
public long get size return m store size
the total number of objects in the iterator
public void skip long p skip num m pos p skip num if m pos m store size throw new no such element exception return
skip a number of objects
public void reset m pos 1 return
reset the iterator
public jd object iterator clone iterator throws clone not supported exception jd default object iterator doi jd default object iterator super clone jd default object iterator doi new jd default object iterator doi m pos m pos doi m store vector m store clone doi set store vector vector get store vector clone doi set store array list get store clone return doi
clone the jd object iterator
public jd objectable next object try return jd objectable next catch array index out of bounds exception ae throw new no such element exception
retrieve the next jd objectable object
static synchronized public jd taglist alloc taglist if m pool used false m taglist pool counter m taglist pool used counter m pool used true return m pool tl else m taglist pool counter m taglist counter return new jd taglist
allocated a pooled taglist
static synchronized public void release taglist jd taglist p tags if p tags m pool tl m taglist pool counter m pool tl clear m pool used false p tags null else m taglist pool counter p tags null return
release a pooled taglist
final public object clone throws clone not supported exception jd taglist tags new jd taglist tags m hash hash map m hash clone return tags
clone the taglist
public void jd set name string p name m name p name return
set the name of the object
public void jd destroy jd taglist p tags throws jd exception increase object count destroy super jd destroy p tags return
destroy the taglist
public jd objectable jd get root jd objectable root this while root jd get parent null root root jd get parent return root
get the root object
public object get data regex string p key boolean p regex in taglist key int index 0 boolean found false object obj iterator it m hash key set iterator string k if p regex in taglist key true while it has next k string it next pattern p pattern compile k matcher m p matcher p key if m matches return get data k else pattern p pattern compile p key while it has next k string it next matcher m p matcher k if m matches return get data k return null
get the first data object using the string key regular expression
public object get key regex string p key boolean p regex in taglist key iterator it m hash key set iterator string k if p regex in taglist key true while it has next k string it next pattern p pattern compile k matcher m p matcher p key if m matches return k else pattern p pattern compile p key while it has next k string it next matcher m p matcher k if m matches return k return null
get the first key using the string key regular expression
public void jd add object jd objectable p object if p object null if m children null m children new jd default object iterator m children store object p object if p object instanceof jd object jd object p object m parent this return
add a new jd objectable to this object
public collection get keys regex string p key boolean p regex in taglist key collection col new array list iterator it m hash key set iterator string k if p regex in taglist key true while it has next k string it next pattern p pattern compile k matcher m p matcher p key if m matches col add k else pattern p pattern compile p key while it has next k string it next matcher m p matcher k if m matches if col contains k false col add k return col
get the keys using the string key regular expression
public jd object iterator jd get objects if m children null try jd object iterator oi m children clone iterator return oi catch exception e g log log level severe e return m children
returns a jd object iterator over all child nodes of this node
public object get data object p key return get data p key 0
get the first data object using the key
public jd objectable jd get objectby path string p path jd objectable o null if p path index of 1 string name p path substring 0 p path index of o jd get object name if o null o o jd get objectby path p path substring p path index of 1 else o jd get object p path return o
get a child object by path
public boolean get data object p key object p value if get data index p key p value 1 return false else return true
is data item available
public jd objectable jd get object final int p index return jd objectable m children get store get p index
jd get object
public jd objectable jd get object string p name jd objectable o null jd object iterator oi jd get objects string name if oi null while oi has next o oi next object o jd objectable oi next optimalization name o jd get name name o jd get name if name null if name compare to p name 0 return o if name equals p name return o else if p name null return o return null
get a child object with a certain name
public int get data index object p key object p value int index 0 boolean found false object obj array list arr array list m hash get p key if arr null while found arr size index obj arr get index if obj null found obj equals p value index index if found false index 1 return index
is data item available