public static XSDLengthFacet createLengthFacet(Node node) { if (XSDConstants.nodeType(node) == XSDConstants.LENGTH_ELEMENT) { XSDLengthFacet xsdLengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdLengthFacet.setElement((Element)node); return xsdLengthFacet; } return null; }
public static XSDLengthFacet createLengthFacet(Node node) { if (XSDConstants.nodeType(node) == XSDConstants.LENGTH_ELEMENT) { XSDLengthFacet xsdLengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdLengthFacet.setElement((Element)node); return xsdLengthFacet; } return null; }
lengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); lengthFacet.setLexicalValue(max); xsdSimpleType.getFacetContents().add(lengthFacet); lengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdSimpleType.getFacetContents().add(lengthFacet); lengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); lengthFacet.setLexicalValue(min); xsdSimpleType.getFacetContents().add(lengthFacet); lengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdSimpleType.getFacetContents().add(lengthFacet);
XSDLengthFacet xsdLengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdLengthFacet);
XSDLengthFacet xsdLengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdLengthFacet.setLexicalValue(Integer.toString(eStructuralFeature.getLowerBound())); xsdRestrictedTypeDefinition.getFacetContents().add(xsdLengthFacet);
if (length != -1) XSDLengthFacet xsdLengthFacet = XSDFactory.eINSTANCE.createXSDLengthFacet(); xsdLengthFacet.setLexicalValue(Integer.toString(length)); xsdSimpleTypeDefinition.getFacetContents().add(xsdLengthFacet);
(XSDLengthFacetImpl)getXSDFactory().createXSDLengthFacet(); clonedLengthFacet.isReconciling = true;
(XSDLengthFacetImpl)getXSDFactory().createXSDLengthFacet(); clonedLengthFacet.isReconciling = true;