/** * Get the defined element attributes for the named element. * @param elementName The element name. * @return The list of attribute names ({@link String}s) for the named element. * @throws ElementNotDefined Element not defined. Calls shouldn't be made to this * function for undefined elements. */ public List getElementAttributes(String elementName) throws ElementNotDefined { Vector attributes = (Vector)elementAttributes.get(elementName); if(attributes == null) { DTDElement element = getElement(elementName); if(element != null) { attributes = new Vector(); elementAttributes.put(elementName, attributes); attributes.addAll(element.attributes.keySet()); } else { throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD."); } } return attributes; }
/** * Get the defined element attributes for the named element. * @param elementName The element name. * @return The list of attribute names ({@link String}s) for the named element. * @throws ElementNotDefined Element not defined. Calls shouldn't be made to this * function for undefined elements. */ @SuppressWarnings({ "WeakerAccess", "unchecked" }) public List getElementAttributes(String elementName) throws ElementNotDefined { Vector attributes = (Vector)elementAttributes.get(elementName); if(attributes == null) { DTDElement element = getElement(elementName); if(element != null) { attributes = new Vector(); elementAttributes.put(elementName, attributes); attributes.addAll(element.attributes.keySet()); } else { throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD."); } } return attributes; }
/** * Get the defined element attributes for the named element. * @param elementName The element name. * @return The list of attribute names ({@link String}s) for the named element. * @throws ElementNotDefined Element not defined. Calls shouldn't be made to this * function for undefined elements. */ @SuppressWarnings({ "WeakerAccess", "unchecked" }) public List getElementAttributes(String elementName) throws ElementNotDefined { Vector attributes = (Vector)elementAttributes.get(elementName); if(attributes == null) { DTDElement element = getElement(elementName); if(element != null) { attributes = new Vector(); elementAttributes.put(elementName, attributes); attributes.addAll(element.attributes.keySet()); } else { throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD."); } } return attributes; }
/** * Get the defined element attributes for the named element. * @param elementName The element name. * @return The list of attribute names ({@link String}s) for the named element. * @throws ElementNotDefined Element not defined. Calls shouldn't be made to this * function for undefined elements. */ @SuppressWarnings({ "WeakerAccess", "unchecked" }) public List getElementAttributes(String elementName) throws ElementNotDefined { Vector attributes = (Vector)elementAttributes.get(elementName); if(attributes == null) { DTDElement element = getElement(elementName); if(element != null) { attributes = new Vector(); elementAttributes.put(elementName, attributes); attributes.addAll(element.attributes.keySet()); } else { throw new ElementNotDefined("Element [" + elementName + "] not defined in DTD."); } } return attributes; }