private void action1()throws SAXException { result = new RestrictionSimpleTypeImpl( $runtime.document, annotation, locator, fa, name, name==null, finalSet, baseType ); }
private void action0()throws SAXException { result.addFacet(facet); }
public XSFacet getFacet( String name ) { XSFacet f = getDeclaredFacet(name); if(f!=null) return f; // none was found on this datatype. check the base type. return getSimpleBaseType().getFacet(name); }
public XSSimpleType getPrimitiveType() { if(isPrimitive()) return this; return getSimpleBaseType().getPrimitiveType(); }
public List<XSFacet> getFacets( String name ) { List<XSFacet> f = getDeclaredFacets(name); if(!f.isEmpty()) return f; // none was found on this datatype. check the base type. return getSimpleBaseType().getFacets(name); }
public boolean isPrimitive() { return getSimpleBaseType()==getOwnerSchema().getRoot().anySimpleType; }
public XSVariety getVariety() { return getSimpleBaseType().getVariety(); }
/** * Processes an xsd value in form of xsd attribute from extended base. * <p> * Example: * <xsd:complexType name="Employee"> * <xsd:simpleContent> * <xsd:extension base="a:ShortId"> <- xsd extension base * <xsd:attribute name="id" type="xsd:string" use="optional"/> * </xsd:extension> * </xsd:simpleContent> * </xsd:complexType> * <p> * <xsd:simpleType name="ShortId"> * <xsd:restriction base="xsd:string"> * <xsd:minLength value="1"/> <- This is a special field that is added to the generated class, called "value" (corresponds to the valuePropertyName), * <xsd:maxLength value="5"/> it gets processed by this method and the "value" field receives @Size(min = 1, max = 5). * </xsd:restriction> * </xsd:simpleType> */ private void processValueFromExtendedBase(CValuePropertyInfo valueProperty, ClassOutline classOutline, List<FacetCustomization> customizations) { String valuePropertyName = valueProperty.getName(false); JFieldVar fieldVar = classOutline.implClass.fields().get(valuePropertyName); XSSimpleType type = ((RestrictionSimpleTypeImpl) valueProperty.getSchemaComponent()).asSimpleType(); processSimpleType(null, type, fieldVar, customizations); }
public List<XSFacet> getFacets( String name ) { List<XSFacet> f = getDeclaredFacets(name); if(!f.isEmpty()) return f; // none was found on this datatype. check the base type. return getSimpleBaseType().getFacets(name); }
public XSSimpleType getPrimitiveType() { if(isPrimitive()) return this; return getSimpleBaseType().getPrimitiveType(); }
public boolean isPrimitive() { return getSimpleBaseType()==getOwnerSchema().getRoot().anySimpleType; }
public XSVariety getVariety() { return getSimpleBaseType().getVariety(); }
/** * Processes an xsd value in form of xsd attribute from extended base. * <p> * Example: * <xsd:complexType name="Employee"> * <xsd:simpleContent> * <xsd:extension base="a:ShortId"> <- xsd extension base * <xsd:attribute name="id" type="xsd:string" use="optional"/> * </xsd:extension> * </xsd:simpleContent> * </xsd:complexType> * <p> * <xsd:simpleType name="ShortId"> * <xsd:restriction base="xsd:string"> * <xsd:minLength value="1"/> <- This is a special field that is added to the generated class, called "value" (corresponds to the valuePropertyName), * <xsd:maxLength value="5"/> it gets processed by this method and the "value" field receives @Size(min = 1, max = 5). * </xsd:restriction> * </xsd:simpleType> */ private void processValueFromExtendedBase(CValuePropertyInfo valueProperty, ClassOutline classOutline, List<FacetCustomization> customizations) { String valuePropertyName = valueProperty.getName(false); JFieldVar fieldVar = classOutline.implClass.fields().get(valuePropertyName); XSSimpleType type = ((RestrictionSimpleTypeImpl) valueProperty.getSchemaComponent()).asSimpleType(); processSimpleType(type, fieldVar, customizations); }
public List<XSFacet> getFacets( String name ) { List<XSFacet> f = getDeclaredFacets(name); if(!f.isEmpty()) return f; // none was found on this datatype. check the base type. return getSimpleBaseType().getFacets(name); }
public XSFacet getFacet( String name ) { XSFacet f = getDeclaredFacet(name); if(f!=null) return f; // none was found on this datatype. check the base type. return getSimpleBaseType().getFacet(name); }
public XSSimpleType getPrimitiveType() { if(isPrimitive()) return this; return getSimpleBaseType().getPrimitiveType(); }
public boolean isPrimitive() { return getSimpleBaseType()==getOwnerSchema().getRoot().anySimpleType; }
private void action1()throws SAXException { result = new RestrictionSimpleTypeImpl( $runtime.document, annotation, locator, fa, name, name==null, finalSet, baseType ); }
private void action0()throws SAXException { result.addFacet(facet); }
public XSVariety getVariety() { return getSimpleBaseType().getVariety(); }