Class LinkPart
- java.lang.Object
- 
- com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPart
- 
- com._1c.g5.v8.dt.bsl.documentation.comment.LinkPart
 
 
- 
- All Implemented Interfaces:
- IDescriptionPart
 
 public class LinkPart extends DescriptionPart Class representIDescriptionPartof Bsl documentation comment. It contains information about linking configuration object of method
- 
- 
Field SummaryFields Modifier and Type Field Description static StringEXTERNAL_DATA_SOURCE_CUBEstatic StringEXTERNAL_DATA_SOURCE_CUBE_RUstatic StringEXTERNAL_DATA_SOURCE_CUBESstatic StringEXTERNAL_DATA_SOURCE_CUBES_RUstatic StringEXTERNAL_DATA_SOURCE_DIMENSION_TABLEstatic StringEXTERNAL_DATA_SOURCE_DIMENSION_TABLE_RUstatic StringEXTERNAL_DATA_SOURCE_DIMENSION_TABLESstatic StringEXTERNAL_DATA_SOURCE_DIMENSION_TABLES_RUstatic StringEXTERNAL_DATA_SOURCE_TABLEstatic StringEXTERNAL_DATA_SOURCE_TABLE_RUstatic StringEXTERNAL_DATA_SOURCE_TABLESstatic StringEXTERNAL_DATA_SOURCE_TABLES_RUstatic Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature>FORMS_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their formsstatic StringLINK_PART_FORM_ITEM_SEGMENTstatic StringLINK_PART_FORM_ITEM_SEGMENT_RUstatic StringLINK_PART_FORM_SEGMENTstatic StringLINK_PART_FORM_SEGMENT_RUstatic StringLINK_PART_TEMPLATE_SEGMENTstatic StringLINK_PART_TEMPLATE_SEGMENT_RUstatic Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference>MD_OBJECT_MANAGERSCorrespondence between keywords of Bsl language properties of manager types container andEReferenceto the configuration object collectionstatic Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference>MD_OBJECT_MANAGERS_RUCorrespondence between keywords in Russian of Bsl language properties of manager types container andEReferenceto the configuration object collectionstatic Map<org.eclipse.emf.ecore.EReference,Collection<org.eclipse.emf.ecore.EStructuralFeature>>SUBOBJECT_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their sub objectsstatic Set<org.eclipse.emf.ecore.EReference>SUPPORTED_MD_OBJECT_REFERENCESCollection of the supportingEReferenceto the configuration object collection available for linkingstatic Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature>TEMPLATES_FEATURESCorrespondence between reference to the object that can be used in documentation comment and their templates
 - 
Constructor SummaryConstructors Constructor Description LinkPart(IDescriptionPart parent, int lineNumber, int offset, String initialContent, String linkText)Constructor.LinkPart(IDescriptionPart parent, int lineNumber, String linkText)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectgetActualObjectForPart(int partNumber, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject contextObject, BmOperationContext typeComputationContext)Try to get actual configuration object or method corresponding to the part of the linking contentList<Method>getExportedMethods(org.eclipse.emf.ecore.EObject actualMdObject, org.eclipse.emf.ecore.EStructuralFeature moduleFeature, BmOperationContext typeComputationContext)StringgetInitialContent()Gets full content of theIDescriptionPartStringgetLinkText()Gets content of the linkintgetLinkTextOffset()Gets offset on the line of the begining link text contentMap<CaseInsensitiveString,org.eclipse.emf.ecore.EReference>getMdObjectFirstSegment(boolean isRu)Gets the first segment andEReferenceto the object collection for linking to the configuration objectMap<CaseInsensitiveString,org.eclipse.emf.ecore.EReference>getMdObjectManagers(boolean isRu)Gets the first segment andEReferenceto the object collection for linking to the managers type collectionList<org.eclipse.xtext.util.Pair<String,Integer>>getPartsWithOffset()Gets content of the link devided by the '.' and start offset of each part on the comment linebooleanmatch(int lineNumber, int offset)Checks that this description part corresponding to the concrete line number and offsetvoidsetLinkText(String linkText)Sets content of the linkvoidsetLinkTextOffset(int offset)Sets offset on the line of the begining link text content- 
Methods inherited from class com._1c.g5.v8.dt.bsl.documentation.comment.DescriptionPartgetLineNumber, getOffset, getParent
 
- 
 
- 
- 
- 
Field Detail- 
MD_OBJECT_MANAGERSpublic static final Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> MD_OBJECT_MANAGERS Correspondence between keywords of Bsl language properties of manager types container andEReferenceto the configuration object collection
 - 
MD_OBJECT_MANAGERS_RUpublic static final Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> MD_OBJECT_MANAGERS_RU Correspondence between keywords in Russian of Bsl language properties of manager types container andEReferenceto the configuration object collection
 - 
SUPPORTED_MD_OBJECT_REFERENCESpublic static final Set<org.eclipse.emf.ecore.EReference> SUPPORTED_MD_OBJECT_REFERENCES Collection of the supportingEReferenceto the configuration object collection available for linking
 - 
SUBOBJECT_FEATURESpublic static final Map<org.eclipse.emf.ecore.EReference,Collection<org.eclipse.emf.ecore.EStructuralFeature>> SUBOBJECT_FEATURES Correspondence between reference to the object that can be used in documentation comment and their sub objects
 - 
FORMS_FEATURESpublic static final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> FORMS_FEATURES Correspondence between reference to the object that can be used in documentation comment and their forms
 - 
TEMPLATES_FEATURESpublic static final Map<org.eclipse.emf.ecore.EReference,org.eclipse.emf.ecore.EStructuralFeature> TEMPLATES_FEATURES Correspondence between reference to the object that can be used in documentation comment and their templates
 - 
LINK_PART_FORM_SEGMENTpublic static final String LINK_PART_FORM_SEGMENT - See Also:
- Constant Field Values
 
 - 
LINK_PART_FORM_SEGMENT_RUpublic static final String LINK_PART_FORM_SEGMENT_RU - See Also:
- Constant Field Values
 
 - 
LINK_PART_FORM_ITEM_SEGMENTpublic static final String LINK_PART_FORM_ITEM_SEGMENT - See Also:
- Constant Field Values
 
 - 
LINK_PART_FORM_ITEM_SEGMENT_RUpublic static final String LINK_PART_FORM_ITEM_SEGMENT_RU - See Also:
- Constant Field Values
 
 - 
LINK_PART_TEMPLATE_SEGMENTpublic static final String LINK_PART_TEMPLATE_SEGMENT - See Also:
- Constant Field Values
 
 - 
LINK_PART_TEMPLATE_SEGMENT_RUpublic static final String LINK_PART_TEMPLATE_SEGMENT_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_TABLEpublic static final String EXTERNAL_DATA_SOURCE_TABLE - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_TABLE_RUpublic static final String EXTERNAL_DATA_SOURCE_TABLE_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_CUBEpublic static final String EXTERNAL_DATA_SOURCE_CUBE - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_CUBE_RUpublic static final String EXTERNAL_DATA_SOURCE_CUBE_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_DIMENSION_TABLEpublic static final String EXTERNAL_DATA_SOURCE_DIMENSION_TABLE - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_DIMENSION_TABLE_RUpublic static final String EXTERNAL_DATA_SOURCE_DIMENSION_TABLE_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_TABLESpublic static final String EXTERNAL_DATA_SOURCE_TABLES - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_TABLES_RUpublic static final String EXTERNAL_DATA_SOURCE_TABLES_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_CUBESpublic static final String EXTERNAL_DATA_SOURCE_CUBES - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_CUBES_RUpublic static final String EXTERNAL_DATA_SOURCE_CUBES_RU - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_DIMENSION_TABLESpublic static final String EXTERNAL_DATA_SOURCE_DIMENSION_TABLES - See Also:
- Constant Field Values
 
 - 
EXTERNAL_DATA_SOURCE_DIMENSION_TABLES_RUpublic static final String EXTERNAL_DATA_SOURCE_DIMENSION_TABLES_RU - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
LinkPartpublic LinkPart(IDescriptionPart parent, int lineNumber, int offset, String initialContent, String linkText) Constructor.- Parameters:
- parent- the parent object, cannot be- null.
- lineNumber- line nubmer corresponding to part
- offset- offset of the begining part
- initialContent- full content of the- IDescriptionPart, cannot be- null
- linkText- content of the link, cannot be- null
 
 - 
LinkPartpublic LinkPart(IDescriptionPart parent, int lineNumber, String linkText) Constructor.- Parameters:
- parent- the parent object, cannot be- null.
- lineNumber- line nubmer corresponding to part
- linkText- content of the link, cannot be- null
 
 
- 
 - 
Method Detail- 
getLinkTextpublic String getLinkText() Gets content of the link- Returns:
- content of the link, never null
 
 - 
setLinkTextpublic void setLinkText(String linkText) Sets content of the link- Parameters:
- linkText- content of the link, cannot be- null
 
 - 
setLinkTextOffsetpublic void setLinkTextOffset(int offset) Sets offset on the line of the begining link text content- Parameters:
- offset- offset on the line of the begining link text content
 
 - 
getLinkTextOffsetpublic int getLinkTextOffset() Gets offset on the line of the begining link text content- Returns:
- offset on the line of the begining link text content
 
 - 
getPartsWithOffsetpublic List<org.eclipse.xtext.util.Pair<String,Integer>> getPartsWithOffset() Gets content of the link devided by the '.' and start offset of each part on the comment line- Returns:
- collection of the parts of link content devided by '.' with their line offsets, never null
 
 - 
getInitialContentpublic String getInitialContent() Gets full content of theIDescriptionPart- Returns:
- full content of the IDescriptionPart, can benullif content wasnot set
 
 - 
matchpublic boolean match(int lineNumber, int offset)Description copied from interface:IDescriptionPartChecks that this description part corresponding to the concrete line number and offset- Parameters:
- lineNumber- number of the documentation comment line
- offset- local offset on the comment line
- Returns:
- trueif this description part corresponding to the send line number and offset,- falseotherwise
 
 - 
getMdObjectFirstSegmentpublic Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectFirstSegment(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the configuration object- Parameters:
- isRu-- trueif the first segment should be in Russian,- falsein English
- Returns:
- map with the first segments and EReferenceto the object collection, nevernull
 
 - 
getMdObjectManagerspublic Map<CaseInsensitiveString,org.eclipse.emf.ecore.EReference> getMdObjectManagers(boolean isRu) Gets the first segment andEReferenceto the object collection for linking to the managers type collection- Parameters:
- isRu-- trueif the first segment should be in Russian,- falsein English
- Returns:
- map with the first segments and EReferenceto the managers type collection, nevernull
 
 - 
getActualObjectForPartpublic org.eclipse.emf.ecore.EObject getActualObjectForPart(int partNumber, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.emf.ecore.EObject contextObject, BmOperationContext typeComputationContext)Try to get actual configuration object or method corresponding to the part of the linking content- Parameters:
- partNumber- number of the linking text part for getting real object, see- getPartsWithOffset(), range 0..- getPartsWithOffset().size()
- scopeProvider- actual- IScopeProvider, cannot be- null
- contextObject- actual object for resolving, cannot be- null
- typeComputationContext- Type system computation context. May not be- null
- Returns:
- actual configuration object or method corresponding to the part of the linking content, can be nullif object cannot be found
 
 - 
getExportedMethodspublic List<Method> getExportedMethods(org.eclipse.emf.ecore.EObject actualMdObject, org.eclipse.emf.ecore.EStructuralFeature moduleFeature, BmOperationContext typeComputationContext) - Parameters:
- actualMdObject- for getting module with- Methods, cannot be- null
- moduleFeature-- EStructuralFeatureof the module for getting- Methods, cannot be- null
- typeComputationContext- Type system computation context. May not be- null
- Returns:
- Methods of module from- actualMdObjectand its- moduleFeature, never- null
 
 
- 
 
-