public ElementImpl emptyElement(QName element, XMLAttributes attributes, int line, int column, int offset) { ElementImpl node = new ElementImpl(line, column, offset); processElement(element, attributes, node); return node; }
public static String getSyntheticAnnotation(Node node) { if (node instanceof ElementImpl) { return ((ElementImpl)node).getSyntheticAnnotation(); } return null; }
public XSDHandler(short schemaVersion, XSConstraints xsConstraints){ fSchemaVersion = schemaVersion; fXSConstraints = xsConstraints; fHiddenNodes = new Hashtable(); fSchemaParser = new SchemaDOMParser(new SchemaParsingConfig()); fSchemaParser.setSupportedVersion(fSupportedVersion); //REVISIT: pass to constructor? }
/** NON-DOM method for debugging convenience. */ public String toString() { return "[" + getNodeName() + ": " + getNodeValue() + "]"; } }
/** * ResetNodePool on SchemaParsingConfig */ public void resetNodePool() { ((SchemaParsingConfig)config).resetNodePool(); }
/** * Reset SchemaParsingConfig */ public void reset() { ((SchemaParsingConfig)config).reset(); }
public Node item(int index) { if (index < 0 && index > getLength()) { return null; } return attrs[index]; }
public ElementImpl startElement(QName element, XMLAttributes attributes, int line, int column) { return startElement(element, attributes, line, column, -1); }
public ElementImpl emptyElement(QName element, XMLAttributes attributes, int line, int column) { return emptyElement(element, attributes, line, column, -1); }
public static String getAnnotation(Node node) { if (node instanceof ElementImpl) { return ((ElementImpl)node).getAnnotation(); } return null; }
void startAnnotation(QName elemName, XMLAttributes attributes, NamespaceContext namespaceContext) { startAnnotation(elemName.rawname, attributes, namespaceContext); } void startAnnotation(String elemRawName, XMLAttributes attributes,
/** * @param state */ public void setGenerateSyntheticAnnotations(boolean state) { fSchemaParser.setFeature(GENERATE_SYNTHETIC_ANNOTATIONS, state); }
void startAnnotationElement(QName elemName, XMLAttributes attributes) { startAnnotationElement(elemName.rawname, attributes); } void startAnnotationElement(String elemRawName, XMLAttributes attributes) {
void endAnnotationElement(QName elemName) { endAnnotationElement(elemName.rawname); }
public Object getFeature(String feature, String version) { if (singleton.hasFeature(feature, version)) { return singleton; } return null; }
public DOMImplementation getImplementation() { return SchemaDOMImplementation.getDOMImplementation(); }
private void initialize() { initSupportedTypes(); initSupportedFacets(); }
/** Pushes a value onto the stack. */ public void push(boolean value) { ensureCapacity(fDepth + 1); fData[fDepth++] = value; }
public ElementImpl startElement(QName element, XMLAttributes attributes, int line, int column, int offset) { ElementImpl node = new ElementImpl(line, column, offset); processElement(element, attributes, node); // now the current node added, becomes the parent parent = node; return node; }