本文整理了Java中org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator.reportMaxViolation()
方法的一些代码示例,展示了XMLTypeValidator.reportMaxViolation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLTypeValidator.reportMaxViolation()
方法的具体详情如下:
包路径:org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator
类名称:XMLTypeValidator
方法名:reportMaxViolation
暂无
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Int</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedInt_Max(long unsignedInt, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedInt <= UNSIGNED_INT__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_INT, unsignedInt, UNSIGNED_INT__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Int</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedInt_Max(long unsignedInt, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedInt <= UNSIGNED_INT__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_INT, unsignedInt, UNSIGNED_INT__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Byte</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedByte_Max(short unsignedByte, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedByte <= UNSIGNED_BYTE__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_BYTE, unsignedByte, UNSIGNED_BYTE__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Short</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedShort_Max(int unsignedShort, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedShort <= UNSIGNED_SHORT__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_SHORT, unsignedShort, UNSIGNED_SHORT__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Short</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedShort_Max(int unsignedShort, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedShort <= UNSIGNED_SHORT__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_SHORT, unsignedShort, UNSIGNED_SHORT__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Byte</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedByte_Max(short unsignedByte, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedByte <= UNSIGNED_BYTE__MAX__VALUE;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_BYTE, unsignedByte, UNSIGNED_BYTE__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Negative Integer</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateNegativeInteger_Max(BigInteger negativeInteger, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = negativeInteger.compareTo(NEGATIVE_INTEGER__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.NEGATIVE_INTEGER, negativeInteger, NEGATIVE_INTEGER__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Long</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedLong_Max(BigInteger unsignedLong, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedLong.compareTo(UNSIGNED_LONG__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_LONG, unsignedLong, UNSIGNED_LONG__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Negative Integer</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateNegativeInteger_Max(BigInteger negativeInteger, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = negativeInteger.compareTo(NEGATIVE_INTEGER__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.NEGATIVE_INTEGER, negativeInteger, NEGATIVE_INTEGER__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Non Positive Integer</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateNonPositiveInteger_Max(BigInteger nonPositiveInteger, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = nonPositiveInteger.compareTo(NON_POSITIVE_INTEGER__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.NON_POSITIVE_INTEGER, nonPositiveInteger, NON_POSITIVE_INTEGER__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Non Positive Integer</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateNonPositiveInteger_Max(BigInteger nonPositiveInteger, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = nonPositiveInteger.compareTo(NON_POSITIVE_INTEGER__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.NON_POSITIVE_INTEGER, nonPositiveInteger, NON_POSITIVE_INTEGER__MAX__VALUE, true, diagnostics, context);
return result;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* Validates the Max constraint of '<em>Unsigned Long</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateUnsignedLong_Max(BigInteger unsignedLong, DiagnosticChain diagnostics, Map<Object, Object> context)
{
boolean result = unsignedLong.compareTo(UNSIGNED_LONG__MAX__VALUE) <= 0;
if (!result && diagnostics != null)
reportMaxViolation(XMLTypePackage.Literals.UNSIGNED_LONG, unsignedLong, UNSIGNED_LONG__MAX__VALUE, true, diagnostics, context);
return result;
}
内容来源于网络,如有侵权,请联系作者删除!