/** * Create an XML resource using a specific node * * @param doc the node in question (usually but not necessarily a document node) */ public XmlResource(NodeInfo doc) { this.config = doc.getConfiguration(); this.doc = doc; }
/** * Get the configuration */ public Configuration getConfiguration() { return original.getConfiguration(); }
/** * Get the configuration */ public Configuration getConfiguration() { return element.getConfiguration(); }
/** * Get the configuration */ public Configuration getConfiguration() { return original.getConfiguration(); }
/** * Get the configuration previously set using setConfiguration */ public Configuration getConfiguration() { return node.getConfiguration(); }
/** * Get the configuration */ public Configuration getConfiguration() { return element.getConfiguration(); }
/** * Get the configuration previously set using setConfiguration */ public Configuration getConfiguration() { return node.getConfiguration(); }
/** * Create an XML resource using a specific node * * @param doc the node in question (usually but not necessarily a document node) */ public XmlResource(NodeInfo doc) { this.config = doc.getConfiguration(); this.doc = doc; }
/** * Get the configuration */ public Configuration getConfiguration() { return original.getConfiguration(); }
/** * Get the configuration */ public Configuration getConfiguration() { return node.getConfiguration(); }
/** * Get the configuration */ public Configuration getConfiguration() { return original.getConfiguration(); }
/** * Construct an AttributeMap for a given element node * * @param parent the element node owning the attributes */ public DOMAttributeMap(NodeInfo parent) { this.parent = parent; if (parent.getConfiguration().getXMLVersion() == Configuration.XML10) { excludeNamespaceUndeclarations = true; } }
/** * Construct an AttributeMap for a given element node * * @param parent the element node owning the attributes */ public DOMAttributeMap(NodeInfo parent) { this.parent = parent; if (parent.getConfiguration().getXMLVersion() == Configuration.XML10) { excludeNamespaceUndeclarations = true; } }
/** * Get the schema type information for this node. Returns null for an untyped node. */ public TypeInfo getSchemaTypeInfo() { int annotation = node.getTypeAnnotation(); if (annotation == -1 || ((annotation & NodeInfo.IS_DTD_TYPE) != 0)) { return null; } return new TypeInfoImpl(node.getConfiguration(), node.getConfiguration().getSchemaType(annotation)); }
private XPathEvaluator createXPath(Node context) throws XPathFactoryConfigurationException { NodeOverNodeInfo info=(NodeOverNodeInfo)context; Configuration config=info.getUnderlyingNodeInfo().getConfiguration(); XPathEvaluator xpe=new XPathEvaluator(config); return xpe; }
/** * Get the schema type information for this node. Returns null for an untyped node. */ /*@Nullable*/ public TypeInfo getSchemaTypeInfo() { SchemaType type = node.getSchemaType(); if (type == null || BuiltInAtomicType.UNTYPED_ATOMIC.equals(type)) { return null; } return new TypeInfoImpl(node.getConfiguration(), type); }
/** * Get the schema type information for this node. * @return the type information. Returns null for an untyped node. */ public TypeInfo getSchemaTypeInfo() { int annotation = node.getTypeAnnotation(); if (annotation == -1) { return null; } final Configuration config = node.getConfiguration(); return new TypeInfoImpl(config, config.getSchemaType(annotation)); }
/** * Get the schema type information for this node. Returns null for an untyped node. */ /*@Nullable*/ public TypeInfo getSchemaTypeInfo() { SchemaType type = node.getSchemaType(); if (type == null || BuiltInAtomicType.UNTYPED_ATOMIC.equals(type)) { return null; } return new TypeInfoImpl(node.getConfiguration(), type); }
/** * Generate an equivalent NameTest * @return a NameTest that matches the same node kind and name */ public NameTest getEquivalentNameTest() { return new NameTest(origin.getNodeKind(), origin.getURI(), origin.getLocalPart(), origin.getConfiguration().getNamePool()); }
/** * Get the fingerprint required */ public int getFingerprint() { if (origin.hasFingerprint()) { return origin.getFingerprint(); } else { NamePool pool = origin.getConfiguration().getNamePool(); return pool.allocateFingerprint(origin.getURI(), origin.getLocalPart()); } }