1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_08) on Fri Apr 20 12:42:44 CEST 2007 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
8 ETools (EMF Compare Javadoc)
11 <META NAME=
"keywords" CONTENT=
"org.eclipse.emf.compare.util.ETools class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"ETools (EMF Compare Javadoc)";
26 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME=
"navbar_top"><!-- --></A>
31 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
32 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
34 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
35 <A NAME=
"navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
37 <TR ALIGN=
"center" VALIGN=
"top">
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/ETools.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 <A HREF=
"../../../../../org/eclipse/emf/compare/util/EFactory.html" title=
"class in org.eclipse.emf.compare.util"><B>PREV CLASS
</B></A>
57 <A HREF=
"../../../../../org/eclipse/emf/compare/util/FactoryException.html" title=
"class in org.eclipse.emf.compare.util"><B>NEXT CLASS
</B></A></FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"../../../../../index.html?org/eclipse/emf/compare/util/ETools.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"ETools.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.eclipse.emf.compare.util
</FONT>
94 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by "><B>org.eclipse.emf.compare.util.ETools
</B>
98 <DT><PRE>public class
<B>ETools
</B><DT>extends java.lang.Object
</DL>
102 This contains general support for ecore browsing.
110 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
112 <A NAME=
"constructor_summary"><!-- --></A>
113 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
114 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
115 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
116 <B>Constructor Summary
</B></FONT></TH>
118 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
119 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#ETools()">ETools
</A></B>()
</CODE>
122 </TD>
126 <!-- ========== METHOD SUMMARY =========== -->
128 <A NAME=
"method_summary"><!-- --></A>
129 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
130 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
131 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
132 <B>Method Summary
</B></FONT></TH>
134 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
135 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
136 <CODE>static
EClassifier[]
</CODE></FONT></TD>
137 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#computeAllClassifiers(EPackage)">computeAllClassifiers
</A></B>(EPackage
ePackage)
</CODE>
140 Search all the classifiers recursively in a package.
</TD>
142 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
143 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
144 <CODE>static
java.util.List
</CODE></FONT></TD>
145 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#computeAllClassifiersList(EPackage)">computeAllClassifiersList
</A></B>(EPackage
ePackage)
</CODE>
148 Search all the classifiers recursively in a package.
</TD>
150 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
151 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
152 <CODE>static
java.util.List
</CODE></FONT></TD>
153 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#computeAllClassifiersList(EPackage, boolean)">computeAllClassifiersList
</A></B>(EPackage
ePackage,
154 boolean
classOnly)
</CODE>
157 Search all the classifiers recursively in a package.
</TD>
159 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
160 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
161 <CODE>static
EPackage
</CODE></FONT></TD>
162 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#createPackageHierarchy(java.lang.String)">createPackageHierarchy
</A></B>(java.lang.String
path)
</CODE>
165 Creates a package and his children in an ecore model.
</TD>
167 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
168 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
169 <CODE>static
EClassifier
</CODE></FONT></TD>
170 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEClassifier(EPackage, java.lang.String)">getEClassifier
</A></B>(EPackage
ePackage,
171 java.lang.String
name)
</CODE>
174 Search a classifier recursively in a package.
</TD>
176 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
177 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
178 <CODE>static
java.lang.String
</CODE></FONT></TD>
179 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEClassifierFactoryName(EClassifier)">getEClassifierFactoryName
</A></B>(EClassifier
eClassifier)
</CODE>
182 Returns a factory name for a classifier.
</TD>
184 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
185 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
186 <CODE>static
java.lang.String
</CODE></FONT></TD>
187 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEClassifierFactoryShortName(EClassifier)">getEClassifierFactoryShortName
</A></B>(EClassifier
eClassifier)
</CODE>
190 Returns a factory short name for a classifier.
</TD>
192 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
193 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
194 <CODE>static
java.lang.String
</CODE></FONT></TD>
195 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEClassifierPath(EClassifier)">getEClassifierPath
</A></B>(EClassifier
eClassifier)
</CODE>
198 Returns the full path of the classifier.
</TD>
200 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
201 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
202 <CODE>static
java.lang.String
</CODE></FONT></TD>
203 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEClassifierShortPath(EClassifier)">getEClassifierShortPath
</A></B>(EClassifier
eClassifier)
</CODE>
206 Returns the short path of the classifier.
</TD>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
210 <CODE>static
EPackage
</CODE></FONT></TD>
211 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEPackage(EPackage, java.lang.String)">getEPackage
</A></B>(EPackage
parent,
212 java.lang.String
path)
</CODE>
215 Get a package in a parent package.
</TD>
217 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
218 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
219 <CODE>static
EStructuralFeature
</CODE></FONT></TD>
220 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getEStructuralFeature(EClassifier, java.lang.String)">getEStructuralFeature
</A></B>(EClassifier
currentEClassifier,
221 java.lang.String
name)
</CODE>
224 Returns the feature with this classifier and this name.
</TD>
226 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
227 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
228 <CODE>static
java.lang.String
</CODE></FONT></TD>
229 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#getURI(EObject)">getURI
</A></B>(EObject
object)
</CODE>
232 Returns a URI for the eObject,
235 the URI of the eResource with the fragment produced by the eResource,
236 or the URI consisting of just the fragment that would be produced by a default Resource
237 with the eObject as its only contents.
</TD>
239 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
240 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
241 <CODE>static
boolean
</CODE></FONT></TD>
242 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#ofClass(EClassifier, java.lang.String)">ofClass
</A></B>(EClassifier
classifier,
243 java.lang.String
type)
</CODE>
246 Indicates if the type corresponds to the name of the classifier.
</TD>
248 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
249 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
250 <CODE>static
boolean
</CODE></FONT></TD>
251 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#ofType(EClassifier, java.lang.String)">ofType
</A></B>(EClassifier
classifier,
252 java.lang.String
type)
</CODE>
255 Indicates if an instance of the classifier is an instance of the type.
</TD>
257 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
258 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
259 <CODE>static
EObject
</CODE></FONT></TD>
260 <TD><CODE><B><A HREF=
"../../../../../org/eclipse/emf/compare/util/ETools.html#validate(EObject, boolean, java.lang.String)">validate
</A></B>(EObject
root,
261 boolean
blocker,
262 java.lang.String
message)
</CODE>
265 It validates the given EMF object.
</TD>
268 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
269 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
270 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
271 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
273 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
274 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
280 <!-- ========= CONSTRUCTOR DETAIL ======== -->
282 <A NAME=
"constructor_detail"><!-- --></A>
283 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
284 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
285 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
286 <B>Constructor Detail
</B></FONT></TH>
290 <A NAME=
"ETools()"><!-- --></A><H3>
293 public
<B>ETools
</B>()
</PRE>
297 <!-- ============ METHOD DETAIL ========== -->
299 <A NAME=
"method_detail"><!-- --></A>
300 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
301 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
302 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
303 <B>Method Detail
</B></FONT></TH>
307 <A NAME=
"getURI(EObject)"><!-- --></A><H3>
310 public static java.lang.String
<B>getURI
</B>(EObject
object)
</PRE>
312 <DD>Returns a URI for the eObject,
315 the URI of the eResource with the fragment produced by the eResource,
316 or the URI consisting of just the fragment that would be produced by a default Resource
317 with the eObject as its only contents.
320 <DT><B>Parameters:
</B><DD><CODE>eObject
</CODE> - the object for which to get the URI.
321 <DT><B>Returns:
</B><DD>the URI for the object.
</DL>
326 <A NAME=
"validate(EObject, boolean, java.lang.String)"><!-- --></A><H3>
329 public static EObject
<B>validate
</B>(EObject
root,
330 boolean
blocker,
331 java.lang.String
message)
</PRE>
333 <DD>It validates the given EMF object.
<p>
334 An error is put in the log if the validation failed.
<p>
335 <li>!blocker || Diagnostic.OK =
> root
</li>
336 <li>blocker && !Diagnostic.OK =
> null
</li>
337 <li>root == null =
> null
</li>
340 <DT><B>Parameters:
</B><DD><CODE>root
</CODE> - is the object to validate
<DD><CODE>blocker
</CODE> - indicates if the result must be Diagnostic.OK
<DD><CODE>message
</CODE> - is the error message to put in the log
341 <DT><B>Returns:
</B><DD>the given object or null
</DL>
346 <A NAME=
"computeAllClassifiers(EPackage)"><!-- --></A><H3>
347 computeAllClassifiers
</H3>
349 public static EClassifier[]
<B>computeAllClassifiers
</B>(EPackage
ePackage)
</PRE>
351 <DD>Search all the classifiers recursively in a package.
354 <DT><B>Parameters:
</B><DD><CODE>ePackage
</CODE> - is the container
355 <DT><B>Returns:
</B><DD>table of classifiers
</DL>
360 <A NAME=
"computeAllClassifiersList(EPackage)"><!-- --></A><H3>
361 computeAllClassifiersList
</H3>
363 public static java.util.List
<B>computeAllClassifiersList
</B>(EPackage
ePackage)
</PRE>
365 <DD>Search all the classifiers recursively in a package.
368 <DT><B>Parameters:
</B><DD><CODE>ePackage
</CODE> - is the container
369 <DT><B>Returns:
</B><DD>list of classifiers
</DL>
374 <A NAME=
"computeAllClassifiersList(EPackage, boolean)"><!-- --></A><H3>
375 computeAllClassifiersList
</H3>
377 public static java.util.List
<B>computeAllClassifiersList
</B>(EPackage
ePackage,
378 boolean
classOnly)
</PRE>
380 <DD>Search all the classifiers recursively in a package.
383 <DT><B>Parameters:
</B><DD><CODE>ePackage
</CODE> - is the container
<DD><CODE>classOnly
</CODE> - indicates that only the classes are kept
384 <DT><B>Returns:
</B><DD>list of classifiers
</DL>
389 <A NAME=
"getEClassifier(EPackage, java.lang.String)"><!-- --></A><H3>
392 public static EClassifier
<B>getEClassifier
</B>(EPackage
ePackage,
393 java.lang.String
name)
</PRE>
395 <DD>Search a classifier recursively in a package.
398 <li>It never returns classifier java.resources.Folder if name =
"File"</li>
399 <li>It never returns classifier java.resources.Folder if name =
"older"</li>
400 <li>It returns classifier java.resources.Folder for
"Folder" or
"resources.Folder"</li>
403 <DT><B>Parameters:
</B><DD><CODE>ePackage
</CODE> - is the container
<DD><CODE>name
</CODE> - is the classifier identifier
404 <DT><B>Returns:
</B><DD>classifier or null if not found
</DL>
409 <A NAME=
"getEStructuralFeature(EClassifier, java.lang.String)"><!-- --></A><H3>
410 getEStructuralFeature
</H3>
412 public static EStructuralFeature
<B>getEStructuralFeature
</B>(EClassifier
currentEClassifier,
413 java.lang.String
name)
</PRE>
415 <DD>Returns the feature with this classifier and this name.
418 <DT><B>Parameters:
</B><DD><CODE>currentEClassifier
</CODE> - is the classifier
<DD><CODE>name
</CODE> - is the feature name
419 <DT><B>Returns:
</B><DD>the feature
</DL>
424 <A NAME=
"getEClassifierFactoryName(EClassifier)"><!-- --></A><H3>
425 getEClassifierFactoryName
</H3>
427 public static java.lang.String
<B>getEClassifierFactoryName
</B>(EClassifier
eClassifier)
</PRE>
429 <DD>Returns a factory name for a classifier. There is a factory by package.
430 The factory is used to create instances of classifiers.
431 <p> Sample :
"ResourcesFactory" is the name of the factory
432 java.resources.ResourcesFactory
435 <DT><B>Parameters:
</B><DD><CODE>eClassifier
</CODE> - is the classifier
436 <DT><B>Returns:
</B><DD>the factory name
</DL>
441 <A NAME=
"getEClassifierFactoryShortName(EClassifier)"><!-- --></A><H3>
442 getEClassifierFactoryShortName
</H3>
444 public static java.lang.String
<B>getEClassifierFactoryShortName
</B>(EClassifier
eClassifier)
</PRE>
446 <DD>Returns a factory short name for a classifier. There is a factory by package.
447 The factory is used to create instances of classifiers.
448 <p> Sample :
"Resources" is the short name of the factory
449 java.resources.ResourcesFactory
452 <DT><B>Parameters:
</B><DD><CODE>eClassifier
</CODE> - is the classifier
453 <DT><B>Returns:
</B><DD>the factory short name
</DL>
458 <A NAME=
"getEClassifierPath(EClassifier)"><!-- --></A><H3>
459 getEClassifierPath
</H3>
461 public static java.lang.String
<B>getEClassifierPath
</B>(EClassifier
eClassifier)
</PRE>
463 <DD>Returns the full path of the classifier.
464 <p> Sample :
"java.resources.JavaFile"
465 is the full path for the classifier java.resources.JavaFile
468 <DT><B>Parameters:
</B><DD><CODE>eClassifier
</CODE> - is the classifier
469 <DT><B>Returns:
</B><DD>full path of the classifier
</DL>
474 <A NAME=
"getEClassifierShortPath(EClassifier)"><!-- --></A><H3>
475 getEClassifierShortPath
</H3>
477 public static java.lang.String
<B>getEClassifierShortPath
</B>(EClassifier
eClassifier)
</PRE>
479 <DD>Returns the short path of the classifier.
480 <p> Sample :
"resources.JavaFile" is the short path
481 for the classifier java.resources.JavaFile
484 <DT><B>Parameters:
</B><DD><CODE>eClassifier
</CODE> - is the classifier
485 <DT><B>Returns:
</B><DD>short path of the classifier
</DL>
490 <A NAME=
"createPackageHierarchy(java.lang.String)"><!-- --></A><H3>
491 createPackageHierarchy
</H3>
493 public static EPackage
<B>createPackageHierarchy
</B>(java.lang.String
path)
</PRE>
495 <DD>Creates a package and his children in an ecore model.
496 The children are separated by '.'
497 <p> Sample :
"a.b.c" is a package full path,
<p>
498 "a",
"b", and
"c" packages are created, the root package
"a" is returned.
501 <DT><B>Parameters:
</B><DD><CODE>path
</CODE> - is the package full path
502 <DT><B>Returns:
</B><DD>the root package
</DL>
507 <A NAME=
"getEPackage(EPackage, java.lang.String)"><!-- --></A><H3>
510 public static EPackage
<B>getEPackage
</B>(EPackage
parent,
511 java.lang.String
path)
</PRE>
513 <DD>Get a package in a parent package.
514 <p> Sample :
"a.b" is a parent package and
"c.d" is a relative path,
<p>
515 "a.b.c.d" package is returned.
518 <DT><B>Parameters:
</B><DD><CODE>parent
</CODE> - is the parent package
<DD><CODE>path
</CODE> - is the relative path of the required package
519 <DT><B>Returns:
</B><DD>the required package, null if not found
</DL>
524 <A NAME=
"ofType(EClassifier, java.lang.String)"><!-- --></A><H3>
527 public static boolean
<B>ofType
</B>(EClassifier
classifier,
528 java.lang.String
type)
</PRE>
530 <DD>Indicates if an instance of the classifier is an instance of the type.
533 <DT><B>Parameters:
</B><DD><CODE>classifier
</CODE> - is the classifier
<DD><CODE>type
</CODE> - is the type
534 <DT><B>Returns:
</B><DD>true if an instance of the classifier is an instance of the type
</DL>
539 <A NAME=
"ofClass(EClassifier, java.lang.String)"><!-- --></A><H3>
542 public static boolean
<B>ofClass
</B>(EClassifier
classifier,
543 java.lang.String
type)
</PRE>
545 <DD>Indicates if the type corresponds to the name of the classifier.
548 <DT><B>Parameters:
</B><DD><CODE>classifier
</CODE> - is the classifier
<DD><CODE>type
</CODE> - is the type
549 <DT><B>Returns:
</B><DD>true if the type corresponds to the name of the classifier
</DL>
552 <!-- ========= END OF CLASS DATA ========= -->
556 <!-- ======= START OF BOTTOM NAVBAR ====== -->
557 <A NAME=
"navbar_bottom"><!-- --></A>
558 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
559 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
561 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
562 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
563 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
564 <TR ALIGN=
"center" VALIGN=
"top">
565 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
566 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
567 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
568 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/ETools.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
569 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
570 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
571 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
572 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
576 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
577 Copyright
2006 IBM Corporation and others.
<br> All Rights Reserved.
</EM>
582 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
583 <A HREF=
"../../../../../org/eclipse/emf/compare/util/EFactory.html" title=
"class in org.eclipse.emf.compare.util"><B>PREV CLASS
</B></A>
584 <A HREF=
"../../../../../org/eclipse/emf/compare/util/FactoryException.html" title=
"class in org.eclipse.emf.compare.util"><B>NEXT CLASS
</B></A></FONT></TD>
585 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
586 <A HREF=
"../../../../../index.html?org/eclipse/emf/compare/util/ETools.html" target=
"_top"><B>FRAMES
</B></A>
587 <A HREF=
"ETools.html" target=
"_top"><B>NO FRAMES
</B></A>
588 <SCRIPT type=
"text/javascript">
591 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
596 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
603 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
604 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
605 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
606 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
609 <A NAME=
"skip-navbar_bottom"></A>
610 <!-- ======== END OF BOTTOM NAVBAR ======= -->