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

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

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

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

public void refreshStringLength()
 XSDMinLengthFacet minLengthFacet = xsdSimpleTypeDefinition.getMinLengthFacet();
 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

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

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

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

if ( type.getMinLengthFacet() != null ) {
  XSDMinLengthFacet length = type.getMinLengthFacet();
  if ( list.length < length.getValue() ) {
org.eclipse.xsdXSDSimpleTypeDefinitiongetMinLengthFacet

Javadoc

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

This represents the org.eclipse.xsd.XSDMinLengthFacet 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
  • 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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Best plugins for Eclipse
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