本文整理了Java中org.w3c.dom.Element.getSchemaTypeInfo()
方法的一些代码示例,展示了Element.getSchemaTypeInfo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getSchemaTypeInfo()
方法的具体详情如下:
包路径:org.w3c.dom.Element
类名称:Element
方法名:getSchemaTypeInfo
[英]The type information associated with this element.
[中]与此元素关联的类型信息。
代码示例来源:origin: jphp-group/jphp
@Signature
public Map<String, String> getSchemaTypeInfo(Environment env) {
Map<String, String> result = new LinkedHashMap<String, String>();
result.put("name", getWrappedObject().getSchemaTypeInfo().getTypeName());
result.put("namespace", getWrappedObject().getSchemaTypeInfo().getTypeNamespace());
return result;
}
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
public TypeInfo getSchemaTypeInfo()
{
return this.element.getSchemaTypeInfo();
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public TypeInfo getSchemaTypeInfo() {
return element.getSchemaTypeInfo();
}
代码示例来源:origin: xyz.cofe/common
@Override
public TypeInfo getSchemaTypeInfo() {
return element.getSchemaTypeInfo();
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Element#getSchemaTypeInfo()
*/
public TypeInfo getSchemaTypeInfo() {
return getCurrentInternal().getSchemaTypeInfo();
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Element#getSchemaTypeInfo()
*/
@Override
public TypeInfo getSchemaTypeInfo() {
return original.get().getSchemaTypeInfo();
}
代码示例来源:origin: org.opensingular/form-core
/**
* @see org.w3c.dom.Element#getSchemaTypeInfo()
*/
public TypeInfo getSchemaTypeInfo() {
return getAtualInterno().getSchemaTypeInfo();
}
代码示例来源:origin: org.opensingular/form-core
/**
* @see org.w3c.dom.Element#getSchemaTypeInfo()
*/
@Override
public TypeInfo getSchemaTypeInfo() {
return original.get().getSchemaTypeInfo();
}
代码示例来源:origin: fbacchella/jrds
/**
* @return
* @see org.w3c.dom.Element#getSchemaTypeInfo()
*/
public TypeInfo getSchemaTypeInfo() {
return getParent().getSchemaTypeInfo();
}
代码示例来源:origin: Geomatys/geotoolkit
@Override
public TypeInfo getSchemaTypeInfo() {
final Element elem = getElement();
return elem != null ? elem.getSchemaTypeInfo() : null;
}
代码示例来源:origin: com.rackspace.eclipse.webtools.sourceediting/org.eclipse.wst.xml.xpath2.processor
protected boolean isElementType(String typeName) {
TypeInfo typeInfo = _value.getSchemaTypeInfo();
return isType(typeInfo, typeName);
}
代码示例来源:origin: org.vx68k.quercus/quercus
public DOMTypeInfo getSchemaTypeInfo()
{
return wrap(_delegate.getSchemaTypeInfo());
}
代码示例来源:origin: castlemock/castlemock
public Set<Namespace> parseNamespaces(final Document document){
final TypeInfo typeInfo = document.getDocumentElement().getSchemaTypeInfo();
final Set<Namespace> namespaces = new HashSet<>();
if(typeInfo instanceof Node){
Node node = (Node) typeInfo;
NamedNodeMap nodeMap = node.getAttributes();
IntStream.range(0, nodeMap.getLength())
.forEach(index -> {
Node attributeNode = nodeMap.item(index);
namespaces.add(Namespace.builder()
.name(attributeNode.getNodeName())
.localName(attributeNode.getLocalName())
.value(attributeNode.getNodeValue())
.build()); });
}
return namespaces;
}
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element emElem;
TypeInfo elemTypeInfo;
String typeNamespace;
doc = (Document) load("hc_staff", false);
elemList = doc.getElementsByTagName("em");
emElem = (Element) elemList.item(0);
elemTypeInfo = emElem.getSchemaTypeInfo();
typeNamespace = elemTypeInfo.getTypeNamespace();
assertEquals("typeinfogettypenamespace04_1", "http://www.w3.org/1999/xhtml", typeNamespace);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
Element elem;
TypeInfo elemTypeInfo;
String typeName;
NodeList elemList;
boolean retValue;
doc = (Document) load("hc_staff", false);
elemList = doc.getElementsByTagName("code");
elem = (Element) elemList.item(0);
elemTypeInfo = elem.getSchemaTypeInfo();
retValue = elemTypeInfo.isDerivedFrom("http://www.w3.org/1999/xhtml", "field", 0);
assertTrue("isDerived", retValue);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element elem;
TypeInfo typeInfo;
boolean isDerived;
doc = (Document) load("hc_staff", false);
elemList = doc.getElementsByTagName("p");
elem = (Element) elemList.item(0);
typeInfo = elem.getSchemaTypeInfo();
assertNotNull("typeInfoNotNull", typeInfo);
isDerived = typeInfo.isDerivedFrom("http://www.w3.org/1999/xhtml", "part1", 15);
assertTrue("derivedFromPart1AnyMethod", isDerived);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element elem;
TypeInfo typeInfo;
boolean isDerived;
doc = (Document) load("hc_staff", false);
elemList = doc.getElementsByTagName("p");
elem = (Element) elemList.item(0);
typeInfo = elem.getSchemaTypeInfo();
assertNotNull("typeInfoNotNull", typeInfo);
isDerived = typeInfo.isDerivedFrom("http://www.w3.org/2001/XMLSchema", "anyType", 13);
assertFalse("derivedFromAnyTypeNotExtension", isDerived);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element elem;
TypeInfo typeInfo;
boolean isDerived;
doc = (Document) load("typeinfo", false);
elemList = doc.getElementsByTagName("acronym");
elem = (Element) elemList.item(0);
typeInfo = elem.getSchemaTypeInfo();
assertNotNull("typeInfoNotNull", typeInfo);
isDerived = typeInfo.isDerivedFrom("http://www.w3.org/2001/XMLSchema", "anyType", 2);
assertTrue("derivedFromAnyExtension", isDerived);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element elem;
TypeInfo typeInfo;
boolean isDerived;
doc = (Document) load("hc_staff", false);
elemList = doc.getElementsByTagName("p");
elem = (Element) elemList.item(0);
typeInfo = elem.getSchemaTypeInfo();
assertNotNull("typeInfoNotNull", typeInfo);
isDerived = typeInfo.isDerivedFrom("http://www.w3.org/1999/xhtml", "pType", 1);
assertTrue("derivedFromPTypeRestriction", isDerived);
}
/**
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
/**
* Runs the test case.
* @throws Throwable Any uncaught exception causes test to fail
*/
public void runTest() throws Throwable {
Document doc;
NodeList elemList;
Element elem;
TypeInfo typeInfo;
boolean isDerived;
doc = (Document) load("typeinfo", false);
elemList = doc.getElementsByTagName("acronym");
elem = (Element) elemList.item(0);
typeInfo = elem.getSchemaTypeInfo();
assertNotNull("typeInfoNotNull", typeInfo);
isDerived = typeInfo.isDerivedFrom("http://www.w3.org/2001/XMLSchema", "anySimpleType", 8);
assertTrue("derivedFromAnySimpleList", isDerived);
}
/**
内容来源于网络,如有侵权,请联系作者删除!