input
stringlengths
10
828
output
stringlengths
5
107
public class loader get parent t class loader return class loader get parent
gets the parent classloader
public void set refid reference r if elements is empty throw too many attributes elements add r super set refid r
makes this instance in effect a reference to another path instance
public void set urlpath string path check attributes allowed create urlpathelement set path path
parses a path definition and creates single path elements
public boolean is supported action action if action null return true if action report equals action return true return false
checks whether the adapter supports an action
public path to path throws build exception return add to path null
gets a code path code that represents the same entries
public string translate file string source if source null return null try if simple urlutils get urlutils is url source source get project resolve file source get absolute path return simple urlutils get urlutils resolve source get project get base dir catch malformed urlexception murlex return source
returns its argument with all file separator characters
public int compare to object to if to this return 0 cl report handle h cl report handle to if type h type return type h type 1 1 if name null h name null return name null 1 1 return name null 0 name compare to h name
compares this object with the specified object for order
public string get type return type get label
gets the type of the classloader as a string
public boolean is singleton return type is singleton
indicates whether this handle describes a singleton role
public void begin attributes int num nothing to do
indicates start of attributes section
public void begin child loaders int num nothing to do
indicates start of child section
public string begin classloader cl report handle name string prefix string result prefix 0 classloader get role name inc prefix prefix prefix classloader return result
formats the start of a childloader section
public string begin classloader cl report handle name string prefix string result prefix 0 classloader type name get type name get name null name name get name inc prefix prefix return result
formats the start of a childloader section
public void begin classloader cl report handle name current cl new cl name c lby handle put name current cl
indicates start of classloader reporting
public void begin classloader cl report handle name report fmt begin classloader name prefix
indicates start of classloader reporting
public void begin entries int num nothing to do
indicates start of entries section
public void begin errors int num nothing to do
indicates start of error section
public void begin packages int num nothing to do
indicates start of packages section
public void begin report nothing to do
indicates start of report
public void begin roles int num nothing to do
indicates start of role section
public void end classloader cl report handle name report fmt end classloader name prefix
indicates end of classloader reporting
public void begin unassigned roles int num nothing to do
indicates start of unassigned roles section
public void end attributes int num nothing to do
indicates end of attributes section
public void end child loaders int num nothing to do
indicates end of child section
public void end classloader cl report handle name nothing to do
indicates end of classloader reporting
public void report child cl report handle name report fmt format child name prefix
reports a single child
public class loader get parent class loader class loader return class loader get parent
gets the parent classloader
public void end entries int num nothing to do
indicates end of entries section
public void set add default boolean on off add default on off
sets add default attribute
public void end errors int num nothing to do
indicates end of errors section
public void set add all boolean on off add all on off
sets addall attribute
public void report exlicitely parent cl report handle handle report fmt format explicite parent handle prefix
reports an explicit parent classloader
public void add configured class assertion status assertion status st st check false if st get status class assertions add st get name else class non assertions add st get name
sets a nested class assertion status element
public void add configured package assertion status assertion status st st check true if st get status package assertions add st get name else package non assertions add st get name
sets a nested package assertion status element
public void set handler loader handler handler handler check if handler set add handler get loader handler list add handler
sets a handler attribute
public void report implicitely parent cl report handle handle report fmt format implicite parent handle prefix
reports an implicit parent classloader
public void end packages int num nothing to do
indicates end of packages section
public boolean get default assertion status return default assertion status
gets the default assertion status
public cl handler get default handler todo return null
returns the default handler for this parameters
public cl parameters get parameters return this
returns the descriptor which is either the instance itself
public void report role cl report handle handle report fmt format role handle prefix
reports a single role
public void end report nothing to do
indicates end of report
public boolean is reset possible return false
indicates whether reset is possible for the defined classloader
public void set default assertion status boolean on off default assertion status on off
sets the default assertion status attribute
public void set suppress warnings unused object context suppress warnings unused class loader loader does nothing
sets the defined class loader
public void report unassigned role cl report handle handle report fmt format unassigned role handle prefix
reports a single unassigned role
public class loader get class loader loader spec default loader return get class loader default loader fail on error true
gets the specified class loader
public void check if loader null throw new runtime exception attribute loader is mandatory if adapter null throw new runtime exception attribute adapter is mandatory
checks whether both attributes are set
public void end roles int num nothing to do
indicates end of roles section
public string get adapter check return adapter
gets the adapter classname
public string get name if loader null return loader get label return null
get the specified loaders name
public cl adapter get adapter cl context task check try return cl adapter class for name adapter new instance catch exception e task handle error error instantiating cl adapter adapter e return null
returns an adapter instance
public string get loader check return loader
gets the classloaders classname
public void end unassigned roles int num nothing to do
indicates end of unassigned roles section
public void handle error string msg throwable ex boolean fail if msg null ex null msg ex get message if fail throw new runtime exception msg ex log error msg project msg err
handle an error with respect to the fail on error attribute
public void set adapter string classname adapter classname
sets the adapter attribute
public boolean is supported cl action action if action null return true if cl action report equals action return true return false
checks whether the adapter supports an action
public boolean is reset possible if loader null return loader is reset possible return false
indicates whether reset is possible for the defined loader
public void set loader string classname loader classname
sets the loader attribute
public void set class loader class loader classloader if loader null loader set this classloader
sets a classloader as the defined loader
public void set failonerror boolean on off fail on error on off
sets the failonerror attribute
public void set loader loader spec spec loader spec
sets the loader attribute
public string end classloader cl report handle name string prefix dec prefix prefix return prefix 0 classloader
formats the end of the classloader section
public string end classloader cl report handle name string prefix dec prefix prefix prefix classloader return prefix 0 end of get role name
formats the end of the classloader section
public void report attribute string name string value current cl attributes add new cl attr name value
reports a single attribute
public void report child cl report handle name nothing to do
reports a single child
public void report entry string type string entry current cl entries add new cl entry type entry
reports a single entry
public void report exlicitely parent cl report handle handle current cl parent handle current cl explicite parent true
reports an explicit parent classloader
public void report implicitely parent cl report handle handle current cl parent handle current cl explicite parent false
reports an implicit parent classloader
public void report role cl report handle handle current cl roles add handle
reports a single role
public void report unassigned role cl report handle handle unassigned add handle
reports a single unassigned role
public string format child cl report handle name string prefix return prefix 0 get role name
formats a single child entry
public string format child cl report handle name string prefix return prefix 0 child type name get type name get name null name name get name
formats a single child entry
public string format role cl report handle name string prefix return prefix 0 get role name
formats a role
public string format role cl report handle name string prefix return prefix 0 role type name get type name get name null name name get name
formats a role
private string normalize string x x x replace int p x index of while p 0 string r int q x last index of p 1 if q 0 r x substring 0 q x substring p 3 else r x substring p 4 x r p x index of p x index of while p 0 string r x substring 0 p x substring p 2 x r p x index of return x
public string dossierfilename string classname return
protected functionality realisation test functionality functionality descriptor fd functionality realisation realisations fd get realisations for int r 0 r realisations length r if realisations r null realisations r test this return realisations r throw new clan exception invalid functionality declaration fd get key class this belongs to no realisation
return the realisationkey for a functionality
public void reload providers clear lookup iterator new lazy iterator loader
clear this loaders provider cache so that all providers will be reloaded
private rtengine get rtengine if rt engine null return rt engine return get rtinternal engine
returns the jfeature rt engine
public rtengine get current context return current context
returns the current jfeature context
public rtengine get denied context return denied context
returns the denied jfeature context
public void set using change listener boolean use change listener use change listener use change listener
sets the value of using change listener to the one specified if you
public boolean is using change listener return use change listener
returns the value of the using change listener property
public color get font color status type type boolean acked color retval color white switch type case host down case service state critical if acked retval color blue else retval color red break case host unreachable case service state warning case service state unknown if acked retval color blue else retval new color 207 196 27 break case host up case service state ok retval new color 27 118 20 break return retval
sets the color of the labels text to one according to the
public void set vv visualization viewer vv vv vv
sets the visualization viewer in which the window will be shown
public void add labels listeners cursor hand new cursor cursor hand cursor mouse listener ml new mouse adapter color old color null public void mouse clicked mouse event e labels handler e open information window jlabel tmp null for int i min i max i tmp labels info get i if tmp null tmp set foreground color blue tmp set cursor hand tmp add mouse listener ml
adds the listener for the labels supposed to respond to click mouse events
public void add icon icon icon set add icon
adds a new background icon
public boolean remove icon icon return icon set remove icon
removes a icon from the background icons list
public image icon get background image icon bkicon null iterator it icon set iterator if it has next bkicon image icon it next return bkicon
returns the background image corresponding to the current state
public void state changed change event e set picked vertices vv get picked state get picked vertices if picked vertices size 1 for object o picked vertices if o instanceof vertex if vselected null vselected vertex o refresh info vselected move to vselected
used to move the window when moving the vertex some problems with this
public image icon get original return original
returns the image without the background status pictures
public boolean has something to display vertex v host h gm get vertex host v host status hs gm get vertex host status v boolean visible gm is visible v vv get name return visible h null hs null
checks if the vertex specified by v has some information to display
public void set graph manager graph manager gm gm gm sip set graph manager gm
sets the graph manager to use when accesing information about the vertex
public graph manager get graph manager return gm
returns the instance of graph manager related to the info window
public void set params object args args args
sets the parameters for this event its a object array with
public string has been acknowledged boolean acknowledged status type st string v switch st case host down case host unreachable if acknowledged v acknowledged else v not acknowledged return v
returns a string representing the acknowlege state for if the host has
public void set graph manager graph manager gm gm gm nsm set graph manager gm
sets the graph manager to use when accesing information about the vertex
public boolean has something to display vertex v visualization viewer vv host h get graph manager get vertex host v host status hs get graph manager get vertex host status v boolean visible get graph manager is visible v vv get name return visible h null hs null
checks if the vertex specified by v has some information to display
public void set picking edges boolean v picking edges v
if picking edges true then edges picked will changed their color
public object get key if key null key new pair this baloon key return key
returns a visualization specific key that is specific both