input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public adapter create uniform type adapter return null
|
creates a new adapter for an object of class
|
public adapter create value type adapter return null
|
creates a new adapter for an object of class
|
public adapter create weighted list type adapter return null
|
creates a new adapter for an object of class
|
public adapter create when cost applicable type adapter return null
|
creates a new adapter for an object of class
|
public adapter createactor adapter return null
|
creates a new adapter for an object of class
|
public adapter createcontribution adapter return null
|
creates a new adapter for an object of class
|
public adapter createdependency adapter return null
|
creates a new adapter for an object of class
|
public adapter creategoal adapter return null
|
creates a new adapter for an object of class
|
public adapter createproperty adapter return null
|
creates a new adapter for an object of class
|
public adapter createtopic adapter return null
|
creates a new adapter for an object of class
|
public void start bundle context context throws exception super start context plugin this
|
this method is called upon plug in activation
|
public resource create resource uri uri xmlresource result new wsdl resource impl uri result get default save options put xmlresource option extended meta data boolean true result get default load options put xmlresource option extended meta data boolean true result get default save options put xmlresource option schema location boolean true result get default save options put xmlresource option use encoded attribute style boolean true result get default load options put xmlresource option use lexical handler boolean true return result
|
creates an instance of the resource
|
public adapter create tbinding adapter return null
|
creates a new adapter for an object of class
|
public adapter create tbinding operation adapter return null
|
creates a new adapter for an object of class
|
public adapter create tbinding operation fault adapter return null
|
creates a new adapter for an object of class
|
public adapter create tbinding operation message adapter return null
|
creates a new adapter for an object of class
|
public adapter create tdefinitions adapter return null
|
creates a new adapter for an object of class
|
public adapter create tdocumented adapter return null
|
creates a new adapter for an object of class
|
public adapter create textensibility element adapter return null
|
creates a new adapter for an object of class
|
public adapter create textensible attributes documented adapter return null
|
creates a new adapter for an object of class
|
public adapter create textensible documented adapter return null
|
creates a new adapter for an object of class
|
public adapter create tfault adapter return null
|
creates a new adapter for an object of class
|
public adapter create tmessage adapter return null
|
creates a new adapter for an object of class
|
public adapter create toperation adapter return null
|
creates a new adapter for an object of class
|
public adapter create tparam adapter return null
|
creates a new adapter for an object of class
|
public adapter create tpart adapter return null
|
creates a new adapter for an object of class
|
public adapter create tport adapter return null
|
creates a new adapter for an object of class
|
public adapter create tport type adapter return null
|
creates a new adapter for an object of class
|
public adapter create tservice adapter return null
|
creates a new adapter for an object of class
|
public adapter create ttypes adapter return null
|
creates a new adapter for an object of class
|
public tswitch get switch return switch
|
begin user doc
|
public adapter create case type adapter return null
|
creates a new adapter for an object of class
|
public adapter create partner link type adapter return null
|
creates a new adapter for an object of class
|
public adapter create tactivity or compensate container adapter return null
|
creates a new adapter for an object of class
|
public adapter create tcompensation handler adapter return null
|
creates a new adapter for an object of class
|
protected epackage get epackage return process package e instance
|
returns the package of this validator switch
|
public adapter create ton alarm adapter return null
|
creates a new adapter for an object of class
|
public adapter create to type adapter return null
|
creates a new adapter for an object of class
|
public adapter create tpartner adapter return null
|
creates a new adapter for an object of class
|
public adapter create tpartners adapter return null
|
creates a new adapter for an object of class
|
public adapter create tswitch adapter return null
|
creates a new adapter for an object of class
|
public adapter create tterminate adapter return null
|
creates a new adapter for an object of class
|
public resource create resource uri uri xmlresource result new process resource impl uri result get default save options put xmlresource option extended meta data boolean true result get default load options put xmlresource option extended meta data boolean true result get default save options put xmlresource option schema location boolean true result get default save options put xmlresource option use encoded attribute style boolean true result get default load options put xmlresource option use lexical handler boolean true return result
|
creates an instance of the resource
|
public boolean validate pattern type enumeration string pattern type diagnostic chain diagnostics map context boolean result pattern type enumeration values contains pattern type if result diagnostics null report enumeration violation process package e instance get pattern type pattern type pattern type enumeration values diagnostics context return result
|
validates the enumeration constraint of em pattern type em
|
public boolean validate properties type item type list properties type diagnostic chain diagnostics map context boolean result true for iterator i properties type iterator i has next result diagnostics null object item i next if xmltype package e instance get qname is instance item result xml type validator validate qname object item diagnostics context else result false report data value type violation xmltype package e instance get qname item diagnostics context return result
|
validates the item type constraint of em properties type em
|
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title wbimodeler editor plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor wbimodeler editor plugin instance get image full wizban new schema1
|
this just records the information
|
protected collection get initial object names if initial object names null initial object names new array list for iterator elements extended meta data instance get all elements extended meta data instance get document root schema1 package iterator elements has next estructural feature e structural feature estructural feature elements next eclassifier e classifier e structural feature get etype if e classifier instanceof eclass eclass e class eclass e classifier if e class is abstract initial object names add e structural feature get name collections sort initial object names java text collator get instance return initial object names
|
returns the names of the features representing global elements
|
protected eobject create initial model eclass e class extended meta data instance get document root schema1 package estructural feature e structural feature e class get estructural feature initial object creation page get initial object name eobject root object schema1 factory create e class root object e set e structural feature ecore util create eclass e structural feature get etype return root object
|
create a new model
|
protected boolean validate page if super validate page make sure the file ends in schema1 string required ext wbimodeler editor plugin instance get string ui schema1 editor filename extension string entered ext new path get file name get file extension if entered ext null entered ext equals required ext set error message wbimodeler editor plugin instance get string warn filename extension new object required ext return false else return true else return false
|
the framework calls this to see if the file is correct
|
protected string get label string feature name try return wbimodeler edit plugin instance get string ui document root feature name feature catch missing resource exception mre wbimodeler editor plugin instance log mre return feature name
|
returns the label for the specified feature name
|
public void contribute to tool bar itool bar manager tool bar manager tool bar manager add new separator schema1 settings tool bar manager add new separator schema1 additions
|
this adds separators for editor additions to the tool bar
|
public void menu about to show imenu manager menu manager super menu about to show menu manager menu manager submenu manager null submenu manager new menu manager wbimodeler editor plugin instance get string ui create child menu item populate manager submenu manager create child actions null menu manager insert before additions submenu manager submenu manager new menu manager wbimodeler editor plugin instance get string ui create sibling menu item populate manager submenu manager create sibling actions null menu manager insert before additions submenu manager
|
this populates the pop up menu before it appears
|
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor schema1 editor this false schema1 editor this dispose else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
|
handles activation of the editor or its associated views
|
protected void handle changed resources if changed resources is empty is dirty handle dirty conflict editing domain get command stack flush for iterator i changed resources iterator i has next resource resource resource i next if resource is loaded resource unload try resource load collections empty map catch ioexception exception wbimodeler editor plugin instance log exception
|
handles what to do with changed resources on activation
|
public void load package if is loaded return is loaded true url url get class get resource package filename if url null throw new runtime exception missing serialized package package filename uri uri uri create uri url to string resource resource new ecore resource factory impl create resource uri create uri url to string try resource load null catch ioexception exception throw new wrapped exception exception initialize from loaded epackage this epackage resource get contents get 0 create resource e ns uri
|
laods the package and any sub packages from their serialized form
|
public gmactivation file file this gm file file
|
creates a new gmactivation using a file object
|
public gmactivation string file this gm file new file file
|
creates a new gmactivation using a file name path
|
public void activate throws throwable string context try context gmlexer failed gmlexer lexer new gmlexer gm file context gmparser failed parser new gmparser lexer context gmparser start failed parser start catch file not found exception fnfe throw new fasper exception gmfile not found can not find gm file gm file get absolute path catch exception exc throw new fasper exception context could not activate due to exc to string exc
|
activates the test
|
public ast get parser ast if parser null return parser get expected ast return null
|
returns the expected ast
|
public ast get tree parser ast if parser null return parser get expected ast return null
|
returns the expected ast
|
public hash map get token map if parser null return parser get token map return new hash map
|
returns the a map similar to the one in token types
|
public activation descriptor get padescriptor return new activation descriptor parser get activation class name parser get arg types parser get arg values
|
returns the activation descriptor of parser under test
|
public file get gm file return gm file
|
returns the current loaded file
|
public string to string return defs n height height n width width n test ext test ext n dut ext dut ext n def ext def ext n sync scroll sync scroll n comp p w comp p w n comp e p comp e p n filter filter n comp class comp class
|
returns the defaults as a string
|
public void run while true try out text append in text read line n out text set caret position out text get document get length catch exception ex try sleep 100 catch exception e
|
sit here listening for lines of input and appending them straight to
|
public void set values object values this values values
|
sets the values for the constructors arguments
|
public string to zstring string res dut activation class get name n for int i 0 i args length i res arg type and value args i if values i instanceof string string split values i to string split file separator if split length 1 res split split length 1 n else res values i to string n else res values i to string n return res
|
converts this descriptor to the z file format of the descripor
|
public void use filter astfilter filter this filter filter
|
sets the filter to use
|
public void use token map hash map token map this token map token map
|
sets the token map to use
|
public void compare ast expected ast resulted throws fasper exception msg ast comparision status if expected null status expected ast is null if resulted null status resulted ast is null if expected null resulted null status both asts are null if status 1 status 2 status 3 throw new comparison exception error code status msg error code status status compare tree expected resulted throw new comparison exception error code status msg
|
compares two asts
|
public void load file file throws throwable if file null throw new fasper exception file is null the file you are tring to load is null if file get name ends with defs test ext central load test file else central load file file
|
loads a source or test file
|
public void load string file throws throwable this load new file file
|
loads a source or test file
|
public void load defaults string file throws throwable central load defaults file
|
loads a default values file
|
public void save test file file throws throwable central save test file
|
saves the current verifies ast in z file
|
public void set filter string filt defs filter filt
|
sets the ast filter class name eg
|
public void set comparator string comp defs comp class comp
|
sets the comparator class name eg
|
public ast get expected ast return central get expected ast
|
returns current expected ast or null if there isnt one
|
public ast get parser ast return central get parser ast
|
returns current parser ast or null if there isnt one
|
public ast get tree parser ast return central get tree parser ast
|
returns current tree parser ast or null if there isnt one
|
protected string transform local class name meta class meta class string type if meta class is abstract class type abstract else if meta class is interface class type interface else type concrete string name util meta name convertion meta class get name settings reader read property type prefix settings reader read property type postfix true return name
|
transform a class name depending on its type and depending on configuration settings
|
public meta model harmonize meta model metamodel 1 merge packages also handles class names boolean merge packages boolean parse boolean settings reader read property merge packages strategy strategy null if merge packages strategy new merge strategy else strategy new default strategy metamodel strategy apply strategy metamodel metamodel strategy transform local relation names metamodel logger debug metamodel return metamodel
|
harmonize components of meta model by merging proof name uniqueness etc
|
public void set range string min string max try this range util normalize range min max catch transformation exception e logger error string format could not transform range for association of class s s meta association this from e get message
|
sets the range of an association
|
public meta class find class by id string class id iterator meta class it this classes iterator while it has next meta class c it next if c get id equals class id return c return null
|
find a meta class by its identifier internal an return it
|
public void set range string range if range equals ignore case bool range equals ignore case boolean range boolean this range range
|
set range of attribute
|
public meta class find class by name string class name iterator meta class it this classes iterator while it has next meta class c it next if c get name equals class name return c return null
|
find a meta class by its name and return it
|
public meta class find class by id string class id iterator meta package it this packages iterator while it has next meta package p it next meta class meta class p find class by id class id if meta class null return meta class return null
|
find a meta class by its identifier internal an return it
|
public meta package find package by name string package name iterator meta package it this packages iterator while it has next meta package p it next if p get name equals package name return p return null
|
find a meta package by its name and return it
|
static public boolean is greather or equal than string str val integer val integer val2 1 try val2 integer parse int str val catch exception e if val2 val val2 0 return true else return false
|
compares a number with a string value and checks if the number
|
public void add interface realization elements interfaces for element interf interfaces string id interf attr xmi id elements interface realizations xmi select string format interface realization xmi type uml interface realization supplier s contract s id id for element i interface realizations logger info string format found interface implementation s i parent attr name meta class interface class this model find class by id id meta class subclass model find class by id i parent attr xmi id interface class get subclasses add subclass subclass get superclasses add interface class
|
add sub and super class relations for interfaces
|
public void set associations list meta association associations this associations associations
|
set or add new associations to a class either bidirectional
|
public meta attribute find attribute by name string attribute name for meta attribute a this attributes if a get name equals attribute name return a return null
|
find an attribute based on its name and return it
|
public void remove association meta association association for int i 0 i this associations size i meta association a this associations get i if a association this associations remove i return
|
removes an association from the class
|
private void build interfaces elements interfaces logger trace called build interfaces interfaces for element c interfaces string name c attr name meta class uml class new meta class name uml class set id c attr xmi id uml class set interface class true meta package meta package model manage package by name meta package get classes add uml class
|
extract interfaces from xml model and add it to meta model as classes
|
private void build interfaces elements interfaces logger trace called build interfaces interfaces for element c interfaces string name c attr name meta class uml class new meta class name uml class set id c attr xmi id uml class set interface class true meta package meta package model manage package by name this determine package name c uml class meta package get classes add uml class
|
extract interfaces from xml model and add it to meta model as classes
|
private void add generalization logger trace called add generalization for meta package p model get packages for meta class c p get classes string selector string format foundation core id s c get id logger debug selector is selector element xmi class xmi select selector first handle generalization xmi class p c return
|
add sub and super class relations
|
private void add associations elements associations xmi select packaged element xmi type uml association for element ass associations elements elements ass select owned end logger debug found new association between classes string name ass attr name string id ass attr xmi id ass attr member end if name exists logger debug id and name id name if elements size 2 logger fatal string format wrong file format association s contains more or less than 2 endpoints please check your xmi file or send us an e mail name else this create and link association id elements ass name
|
add associations between classes
|
private boolean is abstract element c element is abstract c select foundation core generalizable element is abstract first if is abstract null string is a is abstract attr value if is a equals ignore case true return true return false
|
test if a class an interface is abstract
|
private string find range type string range id logger trace string format called find range type xmi document s range id element dtype xmi select foundation core data type id range id first string range get foundation name dtype return range
|
find data type by its relating
|
private string evaluate msvisio aggregation info string value if value contains keine value contains none value contains no one value contains empty return else if value contains zusammengesetzt value contains composition value contains compos return composition else if value contains gemeinsam value contains aggregation value contains aggregated value contains aggreg return aggregation else return
|
ms visio 2010 creates aggregation composition information language dependet
|
public void add comment meta element element element xmi element elements comments xmi element select foundation extension mechanisms tagged value value matches own s for element c comments element get comment add c text
|
ms visio 2010 xmi 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.