/** * getDataType method * @return java.lang.String */ public CMDataType getDataType() { return fElementDecl.getDataType(); }
public CMDataType getDataType() { CMElementDeclaration edecl = getSelf(); if (edecl == null) return null; return edecl.getDataType(); }
public CMDataType getCMDataType(Text text) { CMDataType result = null; Node parentNode = text.getParentNode(); if (parentNode != null && parentNode.getNodeType() == Node.ELEMENT_NODE) { CMElementDeclaration ed = getCMElementDeclaration((Element)parentNode); result = ed.getDataType(); } return result; }
contentType == CMElementDeclaration.ANY) CMDataType dataType = rootElementDeclaration.getDataType(); if (dataType != null)
if (result.isValid) CMDataType dataType = ed.getDataType(); int size = elementContent.size(); cmNodeArray = new CMNode[size];
dataType = ((CMElementDeclaration)cmNode).getDataType();
protected void contributeTextNodeActions(IMenuManager menu, Element parentElement, CMElementDeclaration parentEd, int index) { if ((parentEd == null) || isTextAllowed(parentEd)) { CMDataType dataType = parentEd != null ? parentEd.getDataType() : null; contributeAction(menu, createAddPCDataAction(parentElement, dataType, index)); contributeAction(menu, createAddCDataSectionAction(parentElement, index)); } }
printDocumentation(sb, node); if (ed.getContentType() == CMElementDeclaration.PCDATA) { CMDataType dataType = ed.getDataType(); if (dataType != null) { printDataTypeInfo(sb, dataType);
CMDataType dataType = ed.getDataType(); if (dataType != null)
public void visitCMElementDeclaration(CMElementDeclaration ed) { CMNamedNodeMap nodeMap = ed.getAttributes(); int size = nodeMap.getLength(); for (int i = 0; i < size; i++) { visitCMNode(nodeMap.item(i)); } visitCMNode(ed.getContent()); visitCMDataType(ed.getDataType()); } }
CMDataType dataType = ed.getDataType(); if (dataType != null) { visitCMDataType(dataType);
if (parentDecl != null) { CMDataType childType = parentDecl.getDataType(); if (childType != null) { String[] childStrings = childType.getEnumeratedValues();