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

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

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

origin: org.eclipse/org.eclipse.wst.xsd.ui

public void refreshStringLength()
 XSDMaxLengthFacet maxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
 XSDLengthFacet lengthFacet = xsdSimpleTypeDefinition.getLengthFacet();
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDMinLengthFacet xsdMinLengthFacet = xsdSimpleTypeDefinition.getMinLengthFacet();
 XSDMaxLengthFacet xsdMaxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
 if (xsdMinLengthFacet != null || xsdMaxLengthFacet != null)
 {
  XSDDiagnostic xsdDiagnostic = 
   reportConstraintViolation
    (XSDConstants.PART2,
     "length-minLength-maxLength",
     getElement(),
     null,
     new Object [] {});
  if (xsdMinLengthFacet != null)
  {
   xsdDiagnostic.getComponents().add(xsdMinLengthFacet);
  }
  if (xsdMaxLengthFacet != null)
  {
   xsdDiagnostic.getComponents().add(xsdMaxLengthFacet);
  }
 }
}
origin: org.eclipse/org.eclipse.xsd

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDMinLengthFacet xsdMinLengthFacet = xsdSimpleTypeDefinition.getMinLengthFacet();
 XSDMaxLengthFacet xsdMaxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
 if (xsdMinLengthFacet != null || xsdMaxLengthFacet != null)
 {
  XSDDiagnostic xsdDiagnostic = 
   reportConstraintViolation
    (XSDConstants.PART2,
     "length-minLength-maxLength",
     getElement(),
     null,
     new Object [] {});
  if (xsdMinLengthFacet != null)
  {
   xsdDiagnostic.getComponents().add(xsdMinLengthFacet);
  }
  if (xsdMaxLengthFacet != null)
  {
   xsdDiagnostic.getComponents().add(xsdMaxLengthFacet);
  }
 }
}
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);
 }
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

XSDMaxLengthFacet maxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
origin: org.geotools/gt2-xml-core

if (type.getMaxLengthFacet() != null) {
  XSDMaxLengthFacet length = type.getMaxLengthFacet();
origin: org.geotools.xsd/gt-core

if (type.getMaxLengthFacet() != null) {
  XSDMaxLengthFacet length = type.getMaxLengthFacet();
origin: org.geotools/gt2-xml-xsd

if ( type.getMaxLengthFacet() != null ) {
  XSDMaxLengthFacet length = type.getMaxLengthFacet();
  if ( list.length > length.getValue() ) {
org.eclipse.xsdXSDSimpleTypeDefinitiongetMaxLengthFacet

Javadoc

Returns the value of the 'Max Length Facet' reference.

This represents the org.eclipse.xsd.XSDMaxLengthFacet 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.
  • 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
  • getMaxFacet
    Returns the value of the 'Max Facet' reference. This represents the org.eclipse.xsd.XSDMaxFacet of t
  • getContents,
  • getMaxFacet,
  • getMemberTypeDefinitions,
  • getTargetNamespace,
  • getValidFacets,
  • setBaseTypeDefinition,
  • setItemTypeDefinition,
  • setName,
  • setVariety

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reference (javax.naming)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text 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