- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.equals()
方法的一些代码示例,展示了XPathFragment.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathFragment.equals()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.oxm.XPathFragment
类名称:XPathFragment
方法名:equals
暂无
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public boolean equals(Object object) {
return equals(object, false);
}
public boolean equals(Object object, boolean ignorePredicate) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public boolean equals(Object object) {
return equals(object, false);
}
public boolean equals(Object object, boolean ignorePredicate) {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
@Override
public boolean equals(Object obj) {
if(null == obj || obj.getClass() != XPathPredicate.class) {
return false;
}
XPathPredicate test = (XPathPredicate) obj;
if(!xPathFragment.equals(test.getXPathFragment())) {
return false;
}
return value.equals(test.getValue());
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
@Override
public boolean equals(Object obj) {
if(null == obj || obj.getClass() != XPathPredicate.class) {
return false;
}
XPathPredicate test = (XPathPredicate) obj;
if(!xPathFragment.equals(test.getXPathFragment())) {
return false;
}
return value.equals(test.getValue());
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public boolean equals(Object object) {
try {
XPathFragment perfNodeXPathFragment = ((XPathNode)object).getXPathFragment();
if(xPathFragment == perfNodeXPathFragment) {
return true;
} else if(null == xPathFragment) {
return false;
} else if(null == perfNodeXPathFragment) {
return false;
}
return xPathFragment.equals(perfNodeXPathFragment);
// turn fix off for now until we re-enable XMLAnyObjectAndAnyCollectionTestCases
// } catch (NullPointerException npe) {
// b5259059 all cases X0X1 (1mapping xpath=null, 2nd mapping xpath=filled
// catch when object.getXPathFragment() == null
// (this will also catch case where perfNode XPath is null)
// return false;
} catch (ClassCastException e) {
return false;
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public boolean equals(Object object) {
try {
XPathFragment perfNodeXPathFragment = ((XPathNode)object).getXPathFragment();
if(xPathFragment == perfNodeXPathFragment) {
return true;
} else if(null == xPathFragment) {
return false;
} else if(null == perfNodeXPathFragment) {
return false;
}
return xPathFragment.equals(perfNodeXPathFragment);
// turn fix off for now until we re-enable XMLAnyObjectAndAnyCollectionTestCases
// } catch (NullPointerException npe) {
// b5259059 all cases X0X1 (1mapping xpath=null, 2nd mapping xpath=filled
// catch when object.getXPathFragment() == null
// (this will also catch case where perfNode XPath is null)
// return false;
} catch (ClassCastException e) {
return false;
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
@Override
public boolean equals(Object object) {
try {
if(!isInitialized) {
return super.equals(object);
}
if(this == object) {
return true;
}
XMLField xmlField = (XMLField) object;
if(!xPathFragment.equals(xmlField.getXPathFragment())) {
return false;
}
XPathFragment xpf = xPathFragment;
XPathFragment xpf2 = xmlField.getXPathFragment();
while(xpf.getNextFragment() != null) {
xpf = xpf.getNextFragment();
xpf2 = xpf2.getNextFragment();
if(!xpf.equals(xpf2)) {
return false;
}
}
return null == xpf2.getNextFragment();
} catch(ClassCastException e) {
return false;
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
@Override
public boolean equals(Object object) {
try {
if(!isInitialized) {
return super.equals(object);
}
if(this == object) {
return true;
}
XMLField xmlField = (XMLField) object;
if(!xPathFragment.equals(xmlField.getXPathFragment())) {
return false;
}
XPathFragment xpf = xPathFragment;
XPathFragment xpf2 = xmlField.getXPathFragment();
while(xpf.getNextFragment() != null) {
xpf = xpf.getNextFragment();
xpf2 = xpf2.getNextFragment();
if(!xpf.equals(xpf2)) {
return false;
}
}
return null == xpf2.getNextFragment();
} catch(ClassCastException e) {
return false;
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
@Override
public boolean equals(Object object) {
try {
if(!isInitialized) {
return super.equals(object);
}
if(this == object) {
return true;
}
XMLField xmlField = (XMLField) object;
if(!xPathFragment.equals(xmlField.getXPathFragment())) {
return false;
}
XPathFragment xpf = xPathFragment;
XPathFragment xpf2 = xmlField.getXPathFragment();
while(xpf.getNextFragment() != null) {
xpf = xpf.getNextFragment();
xpf2 = xpf2.getNextFragment();
if(!xpf.equals(xpf2)) {
return false;
}
}
return null == xpf2.getNextFragment();
} catch(ClassCastException e) {
return false;
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
private XPathFragment getFragmentToCompare(XMLField field, XMLField context) {
if (field == null) {
return null;
}
if (context == null) {
return field.getXPathFragment();
}
XPathFragment fieldFrag = field.getXPathFragment();
XPathFragment contextFrag = context.getXPathFragment();
while ((fieldFrag != null) && (contextFrag != null)) {
if (fieldFrag.equals(contextFrag)) {
if (contextFrag.getNextFragment() == null) {
return fieldFrag.getNextFragment();
} else {
contextFrag = contextFrag.getNextFragment();
fieldFrag = fieldFrag.getNextFragment();
}
} else {
return null;
}
}
return null;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public boolean equals(Object object) {
try {
XPathNode perfNode = (XPathNode)object;
if ((getXPathFragment() == null) && (perfNode.getXPathFragment() != null)) {
return false;
}
if ((getXPathFragment() != null) && (perfNode.getXPathFragment() == null)) {
return false;
}
if (getXPathFragment() == perfNode.getXPathFragment()) {
return true;
}
return this.getXPathFragment().equals(perfNode.getXPathFragment());
// turn fix off for now until we re-enable XMLAnyObjectAndAnyCollectionTestCases
// } catch (NullPointerException npe) {
// b5259059 all cases X0X1 (1mapping xpath=null, 2nd mapping xpath=filled
// catch when object.getXPathFragment() == null
// (this will also catch case where perfNode XPath is null)
// return false;
} catch (ClassCastException e) {
return false;
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection){
if (!xmlAnyCollectionMapping.usesXMLRoot() || xPathFragment.getLocalName() == null || (xmlAnyCollectionMapping.isMixedContent() && unmarshalRecord.getTextWrapperFragment() != null && unmarshalRecord.getTextWrapperFragment().equals(xPathFragment))) {
unmarshalRecord.addAttributeValue(this, value);
} else {
Root xmlRoot = unmarshalRecord.createRoot();
xmlRoot.setNamespaceURI(xPathFragment.getNamespaceURI());
xmlRoot.setSchemaType(unmarshalRecord.getTypeQName());
xmlRoot.setLocalName(xPathFragment.getLocalName());
xmlRoot.setObject(value);
unmarshalRecord.addAttributeValue(this, xmlRoot);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection){
if (!xmlAnyCollectionMapping.usesXMLRoot() || xPathFragment.getLocalName() == null || (xmlAnyCollectionMapping.isMixedContent() && unmarshalRecord.getTextWrapperFragment() != null && unmarshalRecord.getTextWrapperFragment().equals(xPathFragment))) {
unmarshalRecord.addAttributeValue(this, value);
} else {
Root xmlRoot = unmarshalRecord.createRoot();
xmlRoot.setNamespaceURI(xPathFragment.getNamespaceURI());
xmlRoot.setSchemaType(unmarshalRecord.getTypeQName());
xmlRoot.setLocalName(xPathFragment.getLocalName());
xmlRoot.setObject(value);
unmarshalRecord.addAttributeValue(this, xmlRoot);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
} else {
SAXFragmentBuilder builder = unmarshalRecord.getFragmentBuilder();
if(xmlAnyCollectionMapping.isMixedContent() && unmarshalRecord.getTextWrapperFragment() != null && unmarshalRecord.getTextWrapperFragment().equals(xPathFragment)){
endElementProcessText(unmarshalRecord, xmlAnyCollectionMapping, xPathFragment, null);
return;
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
if(!(xmlAnyCollectionMapping.isMixedContent() && unmarshalRecord.getTextWrapperFragment() != null && unmarshalRecord.getTextWrapperFragment().equals(xPathFragment))){
setupHandlerForKeepAsElementPolicy(unmarshalRecord, xPathFragment, atts);
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getXMLField()方法的一些代码示例,展示了XPathFragment
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getNamespaceURI()方法的一些代码示例,展示了XPathFrag
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getPrefix()方法的一些代码示例,展示了XPathFragment.g
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getShortName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.isAttribute()方法的一些代码示例,展示了XPathFragment
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getLocalName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setPredicate()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getNonAttributeCollisionSet()方法的一些代码示例,
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.resetShortName()方法的一些代码示例,展示了XPathFragm
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getChildrenCollisionSet()方法的一些代码示例,展示了X
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setContainsIndex()方法的一些代码示例,展示了XPathFra
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setXPath()方法的一些代码示例,展示了XPathFragment.se
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getPrefixBytes()方法的一些代码示例,展示了XPathFragm
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.equals()方法的一些代码示例,展示了XPathFragment.equa
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getHasText()方法的一些代码示例,展示了XPathFragment.
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.hasLeafElementType()方法的一些代码示例,展示了XPathF
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setLocalName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setShouldExecuteSelectNodes()方法的一些代码示例,
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.isGeneratedPrefix()方法的一些代码示例,展示了XPathFr
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setGeneratedPrefix()方法的一些代码示例,展示了XPathF
我是一名优秀的程序员,十分优秀!