Class AbstractObjectDescriptor
- java.lang.Object
- 
- com._1c.g5.properties.ui.descriptors.AbstractObjectDescriptor
 
- 
 public abstract class AbstractObjectDescriptor extends Object The basic implementation of the object descriptor.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractObjectDescriptor()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ManagingDefinitionBuilder<?>createBuilder()Creates the definition builder.protected abstract voiddoBuild()Builds the definitions.protected ManagingDefinitionBuilder<?>getBuilder()Returns the definition builder.IManagingDefinitiongetDefinition()Returns the root of definitions tree.protected Supplier<Iterable<IDefinition>>getDefinitionsSupplier()Returns theSupplierof the children definitions.
 NOTE: it is a shortcut forprotected SectionDefinitionBuilder<Void,?>navigateToSection(String section)Navigates to the existing section using builder.protected ManagingDefinitionBuilder<?>registerRefresher(IRefresherFactory refresherFactory)Registers the specifiedrefresherFactoryin managing definition.protected ManagingDefinitionBuilder<?>rule(IRule rule)Sets theIRulefor root definition.protected SectionDefinitionBuilder<Void,?>section(String section)Adds the new section using builder.protected ManagingDefinitionBuilder<?>setRuleResultProcessor(IRuleResultProcessor ruleResultProcessor)Sets the givenIRuleResultProcessorinstance to managing definition.booleansupports(Object... contexts)Returnstrueif the descriptor supports a list of contexts.
 
- 
- 
- 
Method Detail- 
getDefinitionpublic IManagingDefinition getDefinition() Returns the root of definitions tree.- Returns:
- the root of definitions tree, never null.
 
 - 
supportspublic boolean supports(Object... contexts) Returnstrueif the descriptor supports a list of contexts.Note. The clients with @ContextDependentannotation must override the method. Otherwise it is not intended to be called.- Parameters:
- contexts- The list of contexts, never- null.
- Returns:
- trueif the descriptor supports the given list of contexts
 
 - 
doBuildprotected abstract void doBuild() Builds the definitions.
 - 
sectionprotected SectionDefinitionBuilder<Void,?> section(String section) Adds the new section using builder.- Parameters:
- section- - name of section to build, never- null.
- Returns:
- the appropriate builder instance, never null.
 
 - 
navigateToSectionprotected SectionDefinitionBuilder<Void,?> navigateToSection(String section) Navigates to the existing section using builder.- Parameters:
- section- - name of section to navigate to (Section with given name should already exist). Cannot be- null.
- Returns:
- the appropriate builder instance, never null.
 
 - 
ruleprotected ManagingDefinitionBuilder<?> rule(IRule rule) Sets theIRulefor root definition.- Parameters:
- rule- the rule, never- null.
- Returns:
- the appropriate builder instance, never null.
 
 - 
setRuleResultProcessorprotected ManagingDefinitionBuilder<?> setRuleResultProcessor(IRuleResultProcessor ruleResultProcessor) Sets the givenIRuleResultProcessorinstance to managing definition.- Parameters:
- ruleResultProcessor- the- IRuleResultProcessorinstance, cannot be- null.
- Returns:
- the appropriate builder instance, never null.
 
 - 
registerRefresherprotected ManagingDefinitionBuilder<?> registerRefresher(IRefresherFactory refresherFactory) Registers the specifiedrefresherFactoryin managing definition.- Parameters:
- refresherFactory- the- IRefresherFactory, cannot be- null.
- Returns:
- the appropriate builder instance, never null.
 
 - 
getBuilderprotected ManagingDefinitionBuilder<?> getBuilder() Returns the definition builder.- Returns:
- the definition builder, never null
 
 - 
createBuilderprotected ManagingDefinitionBuilder<?> createBuilder() Creates the definition builder.- Returns:
- the definition builder, never null
 
 - 
getDefinitionsSupplierprotected Supplier<Iterable<IDefinition>> getDefinitionsSupplier() Returns theSupplierof the children definitions.
 NOTE: it is a shortcut for
 It is used in rules.Supplier> supplier = () -> getDefinition().getChildren(); - Returns:
- the Supplierof the children definitions, nevernull.
 
 
- 
 
-