Package com.sun.msv.datatype.xsd

Examples of com.sun.msv.datatype.xsd.TypeIncubator.addFacet()


        String name = element.getName();
        String value = element.attributeValue("value");
        boolean fixed = AttributeHelper.booleanValue(element, "fixed");

        // add facet
        incubator.addFacet(name, value, fixed, context);
      }

      // derive a new type by those facets
      String newTypeName = null;
View Full Code Here


                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);
            }
        });
    }
View Full Code Here

        // normal incubator
        return new XSTypeIncubator() {
            private final TypeIncubator core = new TypeIncubator(dt);
           
            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 {
                return new XSDatatypeExp( core.derive(uri,localName), pool );
            }
        };
View Full Code Here

          String facetName = tokens.nextToken();
          String facetValue = tokens.nextToken();
          // to add a facet, call add method.
          // you MUST supply a valid ValidationContextProvider,
          // although this example omits one.
          incubator.addFacet( facetName, facetValue, false, null );
          continue;
        }
        if( cmd.equals("test") )
        {
          String value = tokens.nextToken();
View Full Code Here

                String name = element.getName();
                String value = element.attributeValue("value");
                boolean fixed = AttributeHelper.booleanValue(element, "fixed");

                // add facet
                incubator.addFacet(name, value, fixed, context);
            }

            // derive a new type by those facets
            String newTypeName = null;
View Full Code Here

/* 464 */         Element element = (Element)iter.next();
/* 465 */         String name = element.getName();
/* 466 */         String value = element.attributeValue("value");
/* 467 */         boolean fixed = AttributeHelper.booleanValue(element, "fixed");
/*     */
/* 470 */         incubator.addFacet(name, value, fixed, context);
/*     */       }
/*     */
/* 474 */       String newTypeName = null;
/*     */
/* 476 */       return incubator.derive("", newTypeName);
View Full Code Here

                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);
            }
        });
    }
View Full Code Here

        // normal incubator
        return new XSTypeIncubator() {
            private final TypeIncubator core = new TypeIncubator(dt);
           
            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 {
                return new XSDatatypeExp( core.derive(uri,localName), pool );
            }
        };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.