UNPKG

angular-xml-editor

Version:
18 lines (17 loc) 863 B
import { XmlCursorPos } from '../cursor/xmlCursorPos.class'; import { XmlRuleAttribut } from './xmlRuleAttribut.class'; import { XmlSchema } from './xmlSchema.class'; export declare class XmlEditRuleCheckAttributes { private xmlSchema; constructor(xmlSchema: XmlSchema); AttributesAllowedAtThisCursorPos(cursorPosToCheck: XmlCursorPos): XmlRuleAttribut[]; getRelevantParentNodeForCursorPos(cursorPosToCheck: XmlCursorPos): Node; getAttributesForElementName(elementName: string): XmlRuleAttribut[]; getAttributesForElement(xsdNode: Node, alreadyAddedElements: Set<Node>): XmlRuleAttribut[]; /** the default value for this attribute */ private getDefaultValue; /** is this attribute required? */ private isRequiredAttribute; /** get the allowes values for this attribute */ private getFixedValues; }