Tabnine Logo
XSDSimpleTypeDefinition.getTotalDigitsFacet
Code IndexAdd Tabnine to your IDE (free)

How to use
getTotalDigitsFacet
method
in
org.eclipse.xsd.XSDSimpleTypeDefinition

Best Java code snippets using org.eclipse.xsd.XSDSimpleTypeDefinition.getTotalDigitsFacet (Showing top 3 results out of 315)

origin: org.eclipse/org.eclipse.xsd

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDTotalDigitsFacet xsdTotalDigitsFacet = xsdSimpleTypeDefinition.getTotalDigitsFacet();
 if (xsdTotalDigitsFacet != null  && getValue() > xsdTotalDigitsFacet.getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "fractionDigits-less-than-equal-to-totalDigits",
     getElement(),
     XSDConstants.VALUE_ATTRIBUTE,
     new Object [] { new Integer(getValue()), new Integer(xsdTotalDigitsFacet.getValue()) });
  xsdDiagnostic.getComponents().add(xsdTotalDigitsFacet);
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDTotalDigitsFacet xsdTotalDigitsFacet = xsdSimpleTypeDefinition.getTotalDigitsFacet();
 if (xsdTotalDigitsFacet != null  && getValue() > xsdTotalDigitsFacet.getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "fractionDigits-less-than-equal-to-totalDigits",
     getElement(),
     XSDConstants.VALUE_ATTRIBUTE,
     new Object [] { getValue(), xsdTotalDigitsFacet.getValue() });
  xsdDiagnostic.getComponents().add(xsdTotalDigitsFacet);
 }
}
origin: org.eclipse.emf/org.eclipse.xsd.edit

 /**
  * This tests whether the specified simple type definition,
  * <code>s</code>, can accomodate the given constraining facet,
  * <code>f</code>, based on its existing facet children.
  */
 protected boolean canAccomodateFacet(XSDSimpleTypeDefinition s,
                    XSDConstrainingFacet f)
 {
  return
   (f instanceof XSDRepeatableFacet) ||
   (f instanceof XSDLengthFacet && s.getLengthFacet() == null &&
    s.getMinLengthFacet() == null && s.getMaxLengthFacet() == null) ||
   (f instanceof XSDMinLengthFacet && s.getMinLengthFacet() == null &&
    s.getLengthFacet() == null) ||
   (f instanceof XSDMaxLengthFacet && s.getMaxLengthFacet() == null &&
    s.getLengthFacet() == null) ||
   (f instanceof XSDWhiteSpaceFacet && s.getWhiteSpaceFacet() == null) ||
   (f instanceof XSDMinInclusiveFacet && s.getMinFacet() == null) ||
   (f instanceof XSDMinExclusiveFacet && s.getMinFacet() == null) ||
   (f instanceof XSDMaxInclusiveFacet && s.getMaxFacet() == null) ||
   (f instanceof XSDMaxExclusiveFacet && s.getMaxFacet() == null) ||
   (f instanceof XSDTotalDigitsFacet && s.getTotalDigitsFacet() == null) ||
   (f instanceof XSDFractionDigitsFacet 
    && s.getFractionDigitsFacet() == null);
 }
}
org.eclipse.xsdXSDSimpleTypeDefinitiongetTotalDigitsFacet

Javadoc

Returns the value of the 'Total Digits Facet' reference.

This represents the org.eclipse.xsd.XSDTotalDigitsFacet of the #getFacetContents.

Popular methods of XSDSimpleTypeDefinition

  • getItemTypeDefinition
    Returns the value of the 'Item Type Definition' reference. This represents theitem type definition [
  • getVariety
    Returns the value of the 'Variety' attribute. The literals are from the enumeration org.eclipse.xsd.
  • getMaxLengthFacet
    Returns the value of the 'Max Length Facet' reference. This represents the org.eclipse.xsd.XSDMaxLen
  • getMinLengthFacet
    Returns the value of the 'Min Length Facet' reference. This represents the org.eclipse.xsd.XSDMinLen
  • getEnumerationFacets
    Returns the value of the 'Enumeration Facets' reference list. The list contents are of type org.ecli
  • getFacets
    Returns the value of the 'Facets' reference list. The list contents are of type org.eclipse.xsd.XSDC
  • getLengthFacet
    Returns the value of the 'Length Facet' reference. This represents the org.eclipse.xsd.XSDLengthFace
  • getName
  • getBaseType
  • getBaseTypeDefinition
    Returns the value of the 'Base Type Definition' reference. This represents thebase type definition [
  • getContainer
  • getContents
    Returns the value of the 'Contents' containment reference list. The list contents are of type org.ec
  • getContainer,
  • getContents,
  • getMaxFacet,
  • getMemberTypeDefinitions,
  • getTargetNamespace,
  • getValidFacets,
  • setBaseTypeDefinition,
  • setItemTypeDefinition,
  • setName,
  • setVariety

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Menu (java.awt)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collectors (java.util.stream)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now