protected boolean isAbstract(CMNode ed) { boolean result = false; if (ed != null) { Object value = ed.getProperty("Abstract"); //$NON-NLS-1$ result = (value == Boolean.TRUE); } return result; }
/** * getProperty method * @return java.lang.Object * * Returns the object property desciped by the propertyName * */ public Object getProperty(String propertyName) { return fNode.getProperty(propertyName); }
/** * Adds the description property of the CMNode to the string buffer, sb * */ protected void printDescription(StringBuffer sb, CMNode node) { String tagInfo = (String) node.getProperty("description"); //$NON-NLS-1$ if (tagInfo != null) { sb.append(PARAGRAPH_START + tagInfo.trim() + PARAGRAPH_END); } }
/** * Adds the tag info property of the CMNode to the string buffer, sb * */ protected void printTagInfo(StringBuffer sb, CMNode node) { String tagInfo = (String) node.getProperty("tagInfo"); //$NON-NLS-1$ if (tagInfo != null) { sb.append(PARAGRAPH_START + tagInfo.trim() + PARAGRAPH_END); } } }
private String getNamespace(CMNode cmNode) { String namespace = null; CMDocument cmDocument = (CMDocument)cmNode.getProperty("CMDocument"); //$NON-NLS-1$ if (cmDocument != null) { namespace = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$ } return namespace; }
public Object getProperty(String propertyName) { if (propertyName.equals(HTMLCMProperties.SHOULD_IGNORE_CASE)) { return new Boolean(!isXHTML); } if (propertyName.equals(HTMLCMProperties.IS_XHTML)) { return new Boolean(isXHTML); } if (buddy == null || (!buddy.supports(propertyName))) return null; return buddy.getProperty(propertyName); } }
private boolean shouldIgnoreCase(CMNode cmnode) { if (!cmnode.supports(HTMLCMProperties.SHOULD_IGNORE_CASE)) return false; return ((Boolean) cmnode.getProperty(HTMLCMProperties.SHOULD_IGNORE_CASE)).booleanValue(); } }
public String getProperty(CMNode cmNode, String propertyName) { String result = null; String cmNodeSpec = (String) cmNode.getProperty("spec"); //$NON-NLS-1$ if (cmNodeSpec == null) { cmNodeSpec = cmNode.getNodeName(); } if (cmNodeSpec != null) { result = getProperty(cmNodeSpec, propertyName); } return result; }
protected String getKey(CMNode cmNode) { String key = cmNode.getNodeName(); CMDocument cmDocument = (CMDocument)cmNode.getProperty("CMDocument"); //$NON-NLS-1$ if (cmDocument != null) { String namespaceURI = (String)cmDocument.getProperty("http://org.eclipse.wst/cm/properties/targetNamespaceURI"); //$NON-NLS-1$ if (namespaceURI != null) { key = "[" + namespaceURI + "]" + key; //$NON-NLS-1$ //$NON-NLS-2$ } } return key; }
protected void handleSubstitutionGroup(CMNodeList substitutionGroup) { int substitutionGroupLength = substitutionGroup.getLength(); if (substitutionGroupLength > 1) { for (int i = 0; i < substitutionGroupLength; i++) { CMNode ed = substitutionGroup.item(i); if (!Boolean.TRUE.equals(ed.getProperty("Abstract"))) //$NON-NLS-1$ { addToTable(childNodeTable,ed); } } } }
/** * Adds the tag documentation property of the CMNode to the string buffer, * sb * */ protected void printDocumentation(StringBuffer sb, CMNode node) { CMNodeList nodeList = (CMNodeList) node.getProperty("documentation"); //$NON-NLS-1$ if ((nodeList != null) && (nodeList.getLength() > 0)) { for (int i = 0; i < nodeList.getLength(); i++) { CMDocumentation documentation = (CMDocumentation) nodeList.item(i); String doc = documentation.getValue(); if (doc != null) { sb.append(PARAGRAPH_START + doc.trim() + PARAGRAPH_END); } } sb.append(NEW_LINE); } }
String qualification = (String)cmNode.getProperty("http://org.eclipse.wst/cm/properties/nsPrefixQualification"); //$NON-NLS-1$ CMDocument cmDocument = (CMDocument)cmNode.getProperty("CMDocument"); //$NON-NLS-1$ if (cmDocument != null)
result = (CMDocument)cmNode.getProperty("CMDocument"); //$NON-NLS-1$
String imageURLString = (String) cmnode.getProperty("small-icon"); //$NON-NLS-1$ ImageDescriptor descriptor = null; if ((imageURLString != null) && (imageURLString.length() > 0)) {
/** * */ public String getLabel(Node parent, CMNode cmnode) { String result = "?" + cmnode + "?"; //$NON-NLS-1$ //$NON-NLS-2$ if (cmnode != null) { result = cmnode.getNodeName(); if(result == null) { result = (String) cmnode.getProperty("description"); //$NON-NLS-1$ } if (result == null || result.length() == 0) { if (cmnode.getNodeType() == CMNode.GROUP) { CMDescriptionBuilder descriptionBuilder = new CMDescriptionBuilder(); result = descriptionBuilder.buildDescription(cmnode); } else { result = DOMNamespaceHelper.computeName(cmnode, parent, null); } } } return result; }
(CMNodeList)childOrigin.getProperty("SubstitutionGroup") : //$NON-NLS-1$ (CMNodeList)childEd.getProperty("SubstitutionGroup"); //$NON-NLS-1$ if (!substitution.getNodeName().equals(childEdName) && !Boolean.TRUE.equals(substitution.getProperty("Abstract"))) //$NON-NLS-1$