|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.stp.core.internal.introspection.IntrospectionRecorder
public class IntrospectionRecorder
Only partially implemented as of 12/01
Field Summary |
---|
Fields inherited from interface org.eclipse.stp.core.introspection.IDynamicModelIntrospector |
---|
BATCH, INCREMENTAL_ADD, INCREMENTAL_REMOVE, INCREMENTAL_UPDATE |
Constructor Summary | |
---|---|
IntrospectionRecorder()
|
Method Summary | |
---|---|
void |
attribute(org.eclipse.emf.ecore.EAttribute attribute,
java.lang.Object value,
boolean isUniqueKey)
Indicate the attribute being parsed and the current value. |
void |
endFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Indicate when a feature is fully parsed. |
void |
endIntrospection()
Indicate the parsing is complete. |
void |
removeUntouched(org.eclipse.emf.ecore.EStructuralFeature feature)
Delete the untouched nodes. |
void |
reset()
Instruct the parser to dispose of any resources it may be holding onto as a result of a startIntrospection() ... |
void |
startFeature(org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EClass type,
org.eclipse.emf.ecore.EStructuralFeature substitutionGroupFeature)
Indicate which feature is being parsed, the type of that feature, and the serialization feature for that type. |
void |
startFeature(org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EClass type,
org.eclipse.emf.ecore.EStructuralFeature substitutionGroupFeature,
int announcementType)
Indicate which feature is being parsed, the type of that feature, and the serialization feature for that type. |
void |
startIntrospection(org.eclipse.emf.ecore.EStructuralFeature theRootFeature,
SCAObject theRootObject)
Should be called before the introspection begins (e.g. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntrospectionRecorder()
Method Detail |
---|
public void startIntrospection(org.eclipse.emf.ecore.EStructuralFeature theRootFeature, SCAObject theRootObject)
IDynamicModelIntrospector
startIntrospection
in interface IDynamicModelIntrospector
theRootFeature
- The root feature of the given root. In general, this is an
element from the document root.theRootObject
- The target that will be (potentially) modified.public void startFeature(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EClass type, org.eclipse.emf.ecore.EStructuralFeature substitutionGroupFeature)
IDynamicModelIntrospector
For example:
SCAPackage pkg = SCAPackage.eINSTANCE;
modelIntrospector.startFeature(
pkg.getService_Interface(), // we are parsing an interface for a service
pkg.getJavaInterface(), // its type is com.ibm.ccl.soa.core.JavaInterface
pkg.getSCACoreRoot_InterfaceJava()); // its serialization format is "interface.java"
startFeature
in interface IDynamicModelIntrospector
feature
- The feature that is being updatedtype
- The type of the value that will be set on the featuresubstitutionGroupFeature
- The feature that this type will be serialized aspublic void startFeature(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EClass type, org.eclipse.emf.ecore.EStructuralFeature substitutionGroupFeature, int announcementType)
IDynamicModelIntrospector
For example:
SCAPackage pkg = SCAPackage.eINSTANCE;
modelIntrospector.startFeature(
pkg.getService_Interface(), // we are parsing an interface for a service
pkg.getJavaInterface(), // its type is com.ibm.ccl.soa.core.JavaInterface
pkg.getSCACoreRoot_InterfaceJava()); // its serialization format is "interface.java"
startFeature
in interface IDynamicModelIntrospector
feature
- The feature that is being updatedtype
- The type of the value that will be set on the featuresubstitutionGroupFeature
- The feature that this type will be serialized asannouncementType
- Should be one of IDynamicModelIntrospector.BATCH
, IDynamicModelIntrospector.INCREMENTAL_ADD
,
IDynamicModelIntrospector.INCREMENTAL_UPDATE
, or IDynamicModelIntrospector.INCREMENTAL_REMOVE
public void attribute(org.eclipse.emf.ecore.EAttribute attribute, java.lang.Object value, boolean isUniqueKey)
IDynamicModelIntrospector
attribute
in interface IDynamicModelIntrospector
attribute
- The attribute of the current feature that has a valuevalue
- The current value of the attributeisUniqueKey
- True marks the attribute as one of possibly many that identifies
the uniqueness of this modele element.public void endFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
IDynamicModelIntrospector
endFeature
in interface IDynamicModelIntrospector
feature
- The feature that has been completed.public void endIntrospection()
IDynamicModelIntrospector
endIntrospection
in interface IDynamicModelIntrospector
public void removeUntouched(org.eclipse.emf.ecore.EStructuralFeature feature)
IDynamicModelIntrospector
removeUntouched
in interface IDynamicModelIntrospector
feature
- The feature that has been updated.public void reset()
IDynamicModelIntrospector
reset
in interface IDynamicModelIntrospector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |