Class EObjectFeature
- java.lang.Object
- 
- com._1c.g5.aef2.standard.definitions.models.EObjectFeature
 
- 
 public class EObjectFeature extends Object Class forEObjectandEStructuralFeatures associated with it. It contains usefull methods for checking conditions and creating AEF models viaIModelFactory.
- 
- 
Constructor SummaryConstructors Constructor Description EObjectFeature(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature... features)Creates a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckFeatureChain()Checks that chain of features exists.booleancheckTargetFeatureIsOfType(Class<?> class_)Checks that thegetTargetFeature()type equals to the given one.booleancheckTargetFeatureIsOfType(org.eclipse.emf.ecore.EClassifier classifier)Checks that thegetTargetFeature()EType equals to the given one.booleancheckTargetFeatureIsOneOf(org.eclipse.emf.ecore.EStructuralFeature... features)Checks that thegetTargetFeature()equals to one of given features.booleancheckTargetFeaturePackage(org.eclipse.emf.ecore.EPackage pkg)Checks that thegetTargetFeature()EPackageequals to the given one.org.eclipse.emf.ecore.EStructuralFeature[]getFeatures()org.eclipse.emf.ecore.EObjectgetObject()org.eclipse.emf.ecore.EStructuralFeaturegetTargetFeature()Returns the feature for the potential model is about to create.org.eclipse.emf.ecore.EObjectgetTargetObject()Returns theEObjectfor the potential model is about to create.
 
- 
- 
- 
Method Detail- 
getObjectpublic org.eclipse.emf.ecore.EObject getObject() - Returns:
- the object.
 
 - 
getFeaturespublic org.eclipse.emf.ecore.EStructuralFeature[] getFeatures() - Returns:
- features.
 
 - 
checkFeatureChainpublic boolean checkFeatureChain() Checks that chain of features exists.- Returns:
- trueif feature chain exists at the object.
 
 - 
checkTargetFeatureIsOneOfpublic boolean checkTargetFeatureIsOneOf(org.eclipse.emf.ecore.EStructuralFeature... features) Checks that thegetTargetFeature()equals to one of given features.- Parameters:
- features- features.
- Returns:
- trueif the target feature equals to to one of given features.
 
 - 
checkTargetFeatureIsOfTypepublic boolean checkTargetFeatureIsOfType(Class<?> class_) Checks that thegetTargetFeature()type equals to the given one.- Parameters:
- class_- the class.
- Returns:
- trueif the feature is of the given type.
 
 - 
checkTargetFeatureIsOfTypepublic boolean checkTargetFeatureIsOfType(org.eclipse.emf.ecore.EClassifier classifier) Checks that thegetTargetFeature()EType equals to the given one.- Parameters:
- classifier- the classifier.
- Returns:
- trueif the feature is of the given type.
 
 - 
checkTargetFeaturePackagepublic boolean checkTargetFeaturePackage(org.eclipse.emf.ecore.EPackage pkg) Checks that thegetTargetFeature()EPackageequals to the given one.- Parameters:
- pkg- the- EPackage
- Returns:
- trueif the feature is of contains in checking package.
 
 - 
getTargetFeaturepublic org.eclipse.emf.ecore.EStructuralFeature getTargetFeature() Returns the feature for the potential model is about to create.- Returns:
- the last feature in features.
 
 - 
getTargetObjectpublic org.eclipse.emf.ecore.EObject getTargetObject() Returns theEObjectfor the potential model is about to create.
 NOTE: It's not safe method. CallcheckFeatureChain()before to make sure that chain of features exists in the object.- Returns:
- the target EObjectfor potential AEF model.
 
 
- 
 
-