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

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

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

origin: org.eclipse/org.eclipse.xsd

XSDSimpleTypeDefinition.Assessment assessment = xsdTypeDefinition.assess(value);
Collection<XSDDiagnostic> allDiagnostics = assessment.getDiagnostics();
if (!allDiagnostics.isEmpty())
origin: org.eclipse.xsd/org.eclipse.xsd

XSDSimpleTypeDefinition.Assessment assessment = xsdTypeDefinition.assess(element, value);
Collection<XSDDiagnostic> allDiagnostics = assessment.getDiagnostics();
if (!allDiagnostics.isEmpty())
origin: org.eclipse.xsd/org.eclipse.xsd

(XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(theElement, getLexicalValue());
origin: org.eclipse/org.eclipse.xsd

(XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(getLexicalValue());
origin: org.eclipse.xsd/org.eclipse.xsd

(XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(theElement, getLexicalValue());
origin: org.eclipse/org.eclipse.xsd

@Override
public void validateValue()
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
 XSDSimpleTypeDefinition baseTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition();
 if (baseTypeDefinition != null)
 {
  XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment = 
   (XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(getLexicalValue());
  if (!assessment.getDiagnostics().isEmpty())
  {
   assessment.assignDiagnostics(this, getElement(), XSDConstants.VALUE_ATTRIBUTE);
   getDiagnostics().addAll(assessment.getDiagnostics());
  }
  else if (assessment.getValue() == null)
  {
   createRequiredAttributeDiagnostic(XSDConstants.PART2, "element-enumeration", getElement(), XSDConstants.VALUE_ATTRIBUTE);
  }
 }
}
origin: org.eclipse/org.eclipse.xsd

(XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(getLexicalValue());
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
public void validateValue()
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
 XSDSimpleTypeDefinition baseTypeDefinition = xsdSimpleTypeDefinition.getBaseTypeDefinition();
 if (baseTypeDefinition != null)
 {
  XSDSimpleTypeDefinitionImpl.AssessmentImpl assessment = 
   (XSDSimpleTypeDefinitionImpl.AssessmentImpl)baseTypeDefinition.assess(getElement(), getLexicalValue());
  if (!assessment.getDiagnostics().isEmpty())
  {
   assessment.assignDiagnostics(this, getElement(), XSDConstants.VALUE_ATTRIBUTE);
   getDiagnostics().addAll(assessment.getDiagnostics());
  }
  else if (assessment.getValue() == null)
  {
   createRequiredAttributeDiagnostic(XSDConstants.PART2, "element-enumeration", getElement(), XSDConstants.VALUE_ATTRIBUTE);
  }
 }
}
org.eclipse.xsdXSDSimpleTypeDefinitionassess

Javadoc

Returns an assessment of the literal.

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

  • 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
  • Top plugins for Android Studio
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