Package com._1c.g5.v8.dt.md.help
Class MdHelpUtil
- java.lang.Object
- 
- com._1c.g5.v8.dt.md.help.MdHelpUtil
 
- 
 public class MdHelpUtil extends Object Help content utilities
- 
- 
Field SummaryFields Modifier and Type Field Description static StringMD_HELP_CSS_LINK
 - 
Constructor SummaryConstructors Constructor Description MdHelpUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckHelpExists(org.eclipse.emf.ecore.EObject parent)Check existance ofHelpobject in parent objectstatic booleancheckHelpExists(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature)Check existance ofHelpobject in parent objectstatic booleancheckHelpPageExists(Help help, String languageCode)Check existance ofHelpPageobject with languageCodestatic HelpPagecreateHelpPage(Help help, String languageCode)Creates help page.static MdObjectfindEObjectByUuid(String uuid, org.eclipse.emf.ecore.EObject context)FindMdObjectfrom index with uuidstatic org.eclipse.emf.ecore.EReferencefindHelpFeature(org.eclipse.emf.ecore.EClass eClass)Find first feature of eClass type HELPstatic HelpgetHelp(org.eclipse.emf.ecore.EObject parent)Get or create newHelpobject in parent objectstatic HelpgetHelp(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature)Get or create newHelpobject in parent objectstatic HelpPagegetHelpPage(Help help, String languageCode)Get or create newHelpPageobject with languageCodestatic HelpPagegetHelpPage(Help help, String languageCode, IBmTransaction transaction)Get or create newHelpPageobject with languageCode in the given transaction.static HelpPageselectHelpPage(Help help, String languageCode)Selects the help page with the given language code.static StringtemplateHelpNotExist()The help content is not exist templatestatic StringtemplateNewHelp(String lineSeparator, String defaultCSSHref)New help content of empty template
 
- 
- 
- 
Field Detail- 
MD_HELP_CSS_LINKpublic static final String MD_HELP_CSS_LINK - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getHelppublic static Help getHelp(org.eclipse.emf.ecore.EObject parent) Get or create newHelpobject in parent object- Parameters:
- parent- object with help
- Returns:
- contain Helpobject or null if parent object can't contains help.
 
 - 
checkHelpExistspublic static boolean checkHelpExists(org.eclipse.emf.ecore.EObject parent) Check existance ofHelpobject in parent object- Parameters:
- parent- object with help
- Returns:
- true if object contains Helpobject or null if parent object can't contains help.
 
 - 
getHelppublic static Help getHelp(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature) Get or create newHelpobject in parent object- Parameters:
- parent- object with help
- feature- the- EStructuralFeatureto Help object in parent object
- Returns:
- contain Helpobject
 
 - 
checkHelpExistspublic static boolean checkHelpExists(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EStructuralFeature feature)Check existance ofHelpobject in parent object- Parameters:
- parent- object with help
- feature- the- EStructuralFeatureto Help object in parent object
- Returns:
- true if object contains Helpobject
 
 - 
getHelpPagepublic static HelpPage getHelpPage(Help help, String languageCode) Get or create newHelpPageobject with languageCode- Parameters:
- help- the parent Help
- languageCode- the language code of help page
- Returns:
- the instance of HelpPage
 
 - 
getHelpPagepublic static HelpPage getHelpPage(Help help, String languageCode, IBmTransaction transaction) Get or create newHelpPageobject with languageCode in the given transaction.- Parameters:
- help- the parent Help
- languageCode- the language code of help page
- transaction- the transaction
- Returns:
- the instance of HelpPage
 
 - 
createHelpPagepublic static HelpPage createHelpPage(Help help, String languageCode) Creates help page.- Parameters:
- help- the help object to create page in, may not be- null.
- languageCode- the page language code, may not be- null.
- Returns:
- the created help page, not null.
 
 - 
selectHelpPagepublic static HelpPage selectHelpPage(Help help, String languageCode) Selects the help page with the given language code.- Parameters:
- help- the help to select page from, may not be- null.
- languageCode- the language code, may not be- null.
- Returns:
- the selected page if found or null.
 
 - 
checkHelpPageExistspublic static boolean checkHelpPageExists(Help help, String languageCode) Check existance ofHelpPageobject with languageCode- Parameters:
- help- the parent Help
- languageCode- the language code of help page
- Returns:
- true if HelpPageexists
 
 - 
findHelpFeaturepublic static org.eclipse.emf.ecore.EReference findHelpFeature(org.eclipse.emf.ecore.EClass eClass) Find first feature of eClass type HELP- Parameters:
- eClass- the context- EClass
- Returns:
- EReferenceor null
 
 - 
findEObjectByUuidpublic static MdObject findEObjectByUuid(String uuid, org.eclipse.emf.ecore.EObject context) FindMdObjectfrom index with uuid- Parameters:
- uuid- the MdObject uuid
- context- the context object from BM to get index and resolve IEObjectDescription
- Returns:
- fined MdObjector null
 
 - 
templateNewHelppublic static String templateNewHelp(String lineSeparator, String defaultCSSHref) New help content of empty template- Parameters:
- lineSeparator- specified line separator, cannot be- null
- defaultCSSHref- specified css href link, can be- nullif no need any css in new template
- Returns:
- text of new help content template, never null
 
 - 
templateHelpNotExistpublic static String templateHelpNotExist() The help content is not exist template- Returns:
- text of help content is not exist template
 
 
- 
 
-