本文整理了Java中org.w3c.dom.Element.getUserData()
方法的一些代码示例,展示了Element.getUserData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getUserData()
方法的具体详情如下:
包路径:org.w3c.dom.Element
类名称:Element
方法名:getUserData
暂无
代码示例来源:origin: marytts/marytts
Target t = (Target) sOrB.getUserData("target");
if (t == null) {
t = new Target(phone, sOrB);
代码示例来源:origin: marytts/marytts
Target t = (Target) sOrB.getUserData("target");
if (t == null) {
t = new Target(phone, sOrB);
代码示例来源:origin: camunda/camunda-bpm-platform
public ModelElementInstance getModelElementInstance() {
synchronized(document) {
return (ModelElementInstance) element.getUserData(MODEL_ELEMENT_KEY);
}
}
代码示例来源:origin: jamesagnew/hapi-fhir
public DOMWrapperElement(Element element) {
super();
this.element = element;
XmlLocationData loc = (XmlLocationData) element.getUserData(XmlLocationData.LOCATION_DATA_KEY);
if (loc != null) {
line = loc.getStartLine();
col = loc.getStartColumn();
} else {
line = -1;
col = -1;
}
}
代码示例来源:origin: org.gatein.shindig/shindig-gadgets
public static Bypass canBypassSanitization(Element element) {
Bypass bypass = (Bypass) element.getUserData(BYPASS_SANITIZATION_KEY);
if (bypass == null) {
bypass = Bypass.NONE;
}
return bypass;
}
代码示例来源:origin: org.camunda.bpm.model/camunda-xml-model
public ModelElementInstance getModelElementInstance() {
synchronized(document) {
return (ModelElementInstance) element.getUserData(MODEL_ELEMENT_KEY);
}
}
代码示例来源:origin: apache/ofbiz-framework
public static String createConfigFileLineNumberText(Element element) {
if (element.getUserData("startLine") != null) {
return " [" + ENTITY_ENGINE_XML_FILENAME + " line " + element.getUserData("startLine") + "]";
}
return "";
}
代码示例来源:origin: org.nakedobjects.core/runtime
public Element getXsdElement() {
final Object o = element.getUserData(USER_DATA_XSD_KEY);
if (o == null || !(o instanceof Element)) {
return null;
}
return (Element) o;
}
代码示例来源:origin: org.apache.isis.core/runtime
public Element getXsdElement() {
final Object o = element.getUserData(USER_DATA_XSD_KEY);
if (o == null || !(o instanceof Element)) {
return null;
}
return (Element) o;
}
代码示例来源:origin: com.lmco.shindig/shindig-gadgets
public static Bypass canBypassSanitization(Element element) {
Bypass bypass = (Bypass) element.getUserData(BYPASS_SANITIZATION_KEY);
if (bypass == null) {
bypass = Bypass.NONE;
}
return bypass;
}
代码示例来源:origin: apache/ofbiz-framework
public MiniLangElement(Element element, SimpleMethod simpleMethod) {
this.lineNumber = element.getUserData("startLine");
this.simpleMethod = simpleMethod;
this.tagName = element.getTagName().intern();
}
代码示例来源:origin: apache/ofbiz-framework
protected JdbcElement(Element element) throws GenericEntityConfException {
this.isolationLevel = element.getAttribute("isolation-level").intern();
Object lineNumber = element.getUserData("startLine");
this.lineNumber = lineNumber == null ? "unknown" : lineNumber.toString();
}
代码示例来源:origin: org.switchyard/switchyard-config
/**
* {@inheritDoc}
*/
@Override
public String[] getChildrenOrder() {
String co = (String)_element.getUserData(CHILDREN_ORDER_KEY);
return Strings.splitTrimToNullArray(co, CHILDREN_ORDER_DELIM);
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Node#getUserData(java.lang.String)
*/
public Object getUserData(String key) {
return getCurrentInternal().getUserData(key);
}
//-------------------------------------------
代码示例来源:origin: jboss-switchyard/core
/**
* {@inheritDoc}
*/
@Override
public String[] getChildrenOrder() {
String co = (String)_element.getUserData(CHILDREN_ORDER_KEY);
return Strings.splitTrimToNullArray(co, CHILDREN_ORDER_DELIM);
}
代码示例来源:origin: Geomatys/geotoolkit
@Override
public Object getUserData(String key) {
final Element elem = getElement();
return elem != null ? elem.getUserData(key) : null;
}
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Node#getUserData(java.lang.String)
*/
@Override
public Object getUserData(String key) {
return original.get().getUserData(key);
}
//-------------------------------------------
代码示例来源:origin: jboss-switchyard/core
/**
* {@inheritDoc}
*/
@Override
public PropertyResolver getPropertyResolver() {
PropertyResolver propertyResolver = (PropertyResolver)_element.getUserData(PROPERTY_RESOLVER_KEY);
if (propertyResolver == null) {
Configuration parent = getParent();
propertyResolver = parent != null ? parent.getPropertyResolver() : SystemAndTestPropertyResolver.INSTANCE;
}
return propertyResolver;
}
代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-validation
public DOMWrapperElement(Element element) {
super();
this.element = element;
XmlLocationData loc = (XmlLocationData) element.getUserData(XmlLocationData.LOCATION_DATA_KEY);
if (loc != null) {
line = loc.getStartLine();
col = loc.getStartColumn();
} else {
line = -1;
col = -1;
}
}
代码示例来源:origin: com.android.tools/common
@Override
public void endElement(String uri, String localName, String qName) {
flushText();
Element element = mStack.remove(mStack.size() - 1);
Position pos = (Position) element.getUserData(POS_KEY);
assert pos != null;
pos.setEnd(getCurrentPosition());
addNodeToParent(element);
}
内容来源于网络,如有侵权,请联系作者删除!