congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XSDSimpleTypeDefinition.getLengthFacet
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: geotools/geotools

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition;
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: geotools/geotools

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = definition.getSimpleType();
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools.xsd/gt-core

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition;
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools/gt2-xml-xsd

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition;
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools/gt2-xml-core

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = (XSDSimpleTypeDefinition) definition;
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools/gt2-xml-xsd

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = definition
      .getSimpleType();
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools/gt2-xml-core

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = definition
      .getSimpleType();
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.geotools.xsd/gt-core

public int length(XSDTypeDefinition definition) {
  try {
    XSDSimpleTypeDefinition simple = definition
      .getSimpleType();
    XSDLengthFacet facet = simple.getLengthFacet();
    if (facet == null) {
      return Integer.MAX_VALUE;
    }
    return Integer.parseInt(facet.getLexicalValue());
  } catch (NumberFormatException ignore) {
    return Integer.MIN_VALUE;
  }
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

XSDLengthFacet lengthFacet = xsdSimpleTypeDefinition.getLengthFacet();
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

String maxValue = maxLengthText.getText().trim();
XSDLengthFacet lengthFacet = xsdSimpleTypeDefinition.getLengthFacet();
XSDMinLengthFacet minLengthFacet = xsdSimpleTypeDefinition.getMinLengthFacet();
XSDMaxLengthFacet maxLengthFacet = xsdSimpleTypeDefinition.getMaxLengthFacet();
origin: org.geotools/gt2-xml-core

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

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

if ( type.getLengthFacet() != null ) {
  XSDLengthFacet length = type.getLengthFacet();
  if ( list.length != length.getValue() ) {
org.eclipse.xsdXSDSimpleTypeDefinitiongetLengthFacet

Javadoc

Returns the value of the 'Length Facet' reference.

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

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JButton (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
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