Enum Class ObjectDescriptorRegistry
java.lang.Object
java.lang.Enum<ObjectDescriptorRegistry>
com._1c.g5.properties.ui.descriptors.ObjectDescriptorRegistry
- All Implemented Interfaces:
Serializable
,Comparable<ObjectDescriptorRegistry>
,Constable
Registry that keeps successors of the
AbstractObjectDescriptor
registered with extension point
"com._1c.g5.properties.ui.objectDescriptors".-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetObjectDescriptor
(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject object, Object... contexts) Retrieves anAbstractObjectDescriptor
which corresponds to the providedeClass
and a collection of contexts.static ObjectDescriptorRegistry
Returns the enum constant of this class with the specified name.static ObjectDescriptorRegistry[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The shared singleton instance of object descriptor registry. Instance is thread-safe.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getObjectDescriptor
public AbstractObjectDescriptor getObjectDescriptor(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject object, Object... contexts) Retrieves anAbstractObjectDescriptor
which corresponds to the providedeClass
and a collection of contexts. If the perfect match fails, it will try to get an object descriptor for direct super-types of eClass. If it also fails, all the other super-types are checked.Note If contexts are provided, will first search in the eClass tree for dynamic descriptors, and only then for static descriptors.
- Parameters:
eClass
- TheEClass
to get anAbstractObjectDescriptor
for, cannot benull
object
- TheEObject
to get anAbstractObjectDescriptor
for, cannot benull
contexts
- Contexts for descriptor retrieval (may benull
)- Returns:
- An
AbstractObjectDescriptor
instance ornull
if no suitable found
-