incubator.addFacet(name, value, fixed, context);
/** * adds a facet to the type. * * @deprecated * please use the addFacet method, which is better named. */ public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException { addFacet(name, strValue, fixed, context); }
/** * adds a facet to the type. * * @deprecated * please use the addFacet method, which is better named. */ public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException { addFacet(name, strValue, fixed, context); }
/** * adds a facet to the type. * * @deprecated * please use the addFacet method, which is better named. */ public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException { addFacet(name, strValue, fixed, context); }
public void addFacet( String name, String value, boolean fixed, ValidationContext context ) throws DatatypeException { core.addFacet(name,value,fixed,context); } public XSDatatypeExp derive(String uri,String localName) throws DatatypeException {
/** * adds a facet to the type. * * @deprecated * please use the addFacet method, which is better named. */ public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException { addFacet(name, strValue, fixed, context); }
public void addFacet( String name, String value, boolean fixed, ValidationContext context ) throws DatatypeException { core.addFacet(name,value,fixed,context); } public XSDatatypeExp derive(String uri,String localName) throws DatatypeException {
/** * adds a facet to the type. * * @deprecated * please use the addFacet method, which is better named. */ public void add(String name, String strValue, boolean fixed, ValidationContext context) throws DatatypeException { addFacet(name, strValue, fixed, context); }
public void addFacet( String name, String value, boolean fixed, ValidationContext context ) throws DatatypeException { core.addFacet(name,value,fixed,context); } public XSDatatypeExp derive(String uri,String localName) throws DatatypeException {
/** get the current test case */ public String get( TypeIncubator incubator ) throws DatatypeException { switch(idx) { case 0: incubator.addFacet( facetName, facetValue, false, DummyContextProvider.theInstance ); return answer; default: throw new Error(); } }
public XSDatatype render( XSDatatypeExp.RenderingContext context ) throws DatatypeException { TypeIncubator ti = new TypeIncubator( baseType.getType(context) ); Iterator itr = facets.iterator(); for( int i=0; i<facetSize; i++ ) { Facet f = (Facet)itr.next(); ti.addFacet( f.name, f.value, f.fixed, f.context ); } return ti.derive(nsUri,localName); } });
public XSDatatype render( XSDatatypeExp.RenderingContext context ) throws DatatypeException { TypeIncubator ti = new TypeIncubator( baseType.getType(context) ); Iterator itr = facets.iterator(); for( int i=0; i<facetSize; i++ ) { Facet f = (Facet)itr.next(); ti.addFacet( f.name, f.value, f.fixed, f.context ); } return ti.derive(nsUri,localName); } });
public XSDatatype render( XSDatatypeExp.RenderingContext context ) throws DatatypeException { TypeIncubator ti = new TypeIncubator( baseType.getType(context) ); Iterator<Facet> itr = facets.iterator(); for( int i=0; i<facetSize; i++ ) { Facet f = itr.next(); ti.addFacet( f.name, f.value, f.fixed, f.context ); } return ti.derive(nsUri,localName); } });
public XSDatatype render( XSDatatypeExp.RenderingContext context ) throws DatatypeException { TypeIncubator ti = new TypeIncubator( baseType.getType(context) ); Iterator itr = facets.iterator(); for( int i=0; i<facetSize; i++ ) { Facet f = (Facet)itr.next(); ti.addFacet( f.name, f.value, f.fixed, f.context ); } return ti.derive(nsUri,localName); } });
public void addParameter( String name, String value, ValidationContext context ) throws DatatypeException { if( name.equals(XSDatatype.FACET_ENUMERATION) ) // the enumeration facet is not allowed for RELAX NG. throw new DatatypeException( XSDatatypeImpl.localize(XSDatatypeImpl.ERR_NOT_APPLICABLE_FACET, name) ); incubator.addFacet( name, value, false, context ); if( name.equals(XSDatatype.FACET_PATTERN) ) // if the pattern facet is specified, we have to // derive a new type so that multiple pattern facets can // work as ANDing. incubator = new TypeIncubator(incubator.derive(null,null)); }
public void addParameter( String name, String value, ValidationContext context ) throws DatatypeException { if( name.equals(XSDatatype.FACET_ENUMERATION) ) // the enumeration facet is not allowed for RELAX NG. throw new DatatypeException( XSDatatypeImpl.localize(XSDatatypeImpl.ERR_NOT_APPLICABLE_FACET, name) ); incubator.addFacet( name, value, false, context ); if( name.equals(XSDatatype.FACET_PATTERN) ) // if the pattern facet is specified, we have to // derive a new type so that multiple pattern facets can // work as ANDing. incubator = new TypeIncubator(incubator.derive(null,null)); }
public void addParameter( String name, String value, ValidationContext context ) throws DatatypeException { if( name.equals(XSDatatype.FACET_ENUMERATION) ) // the enumeration facet is not allowed for RELAX NG. throw new DatatypeException( XSDatatypeImpl.localize(XSDatatypeImpl.ERR_NOT_APPLICABLE_FACET, name) ); incubator.addFacet( name, value, false, context ); if( name.equals(XSDatatype.FACET_PATTERN) ) // if the pattern facet is specified, we have to // derive a new type so that multiple pattern facets can // work as ANDing. incubator = new TypeIncubator(incubator.derive(null,null)); }
public void addParameter( String name, String value, ValidationContext context ) throws DatatypeException { if( name.equals(XSDatatype.FACET_ENUMERATION) ) // the enumeration facet is not allowed for RELAX NG. throw new DatatypeException( XSDatatypeImpl.localize(XSDatatypeImpl.ERR_NOT_APPLICABLE_FACET, name) ); incubator.addFacet( name, value, false, context ); if( name.equals(XSDatatype.FACET_PATTERN) ) // if the pattern facet is specified, we have to // derive a new type so that multiple pattern facets can // work as ANDing. incubator = new TypeIncubator(incubator.derive(null,null)); }
public void addParameter( String name, String value, ValidationContext context ) throws DatatypeException { if( name.equals(XSDatatype.FACET_ENUMERATION) ) // the enumeration facet is not allowed for RELAX NG. throw new DatatypeException( XSDatatypeImpl.localize(XSDatatypeImpl.ERR_NOT_APPLICABLE_FACET, name) ); incubator.addFacet( name, value, false, context ); if( name.equals(XSDatatype.FACET_PATTERN) ) // if the pattern facet is specified, we have to // derive a new type so that multiple pattern facets can // work as ANDing. incubator = new TypeIncubator(incubator.derive(null,null)); }
public void testSingletonness2() throws Exception { // built-in types use their names to keep singleton-ness. // make sure that it won't be deceived by datatypes // whose name is accidentally the same as the built-in type. TypeIncubator ti = new TypeIncubator(StringType.theInstance); ti.addFacet("maxLength","120",false,null); XSDatatype pseudoString = ti.derive("","string"); assertTrue( freezeDry(pseudoString)!=StringType.theInstance ); } }