Package jade.content.schema.facets

Examples of jade.content.schema.facets.DefaultValueFacet


          Facet[] facets = os.getFacets(names[i]);
          if (facets != null) {
            for (int j = 0; j < facets.length; j++) {
              Facet facet = facets[j];
              if (facet instanceof DefaultValueFacet) {
                DefaultValueFacet dvf = (DefaultValueFacet)facet;
                defaultValue = dvf.getDefaultValue();
              } else if (facet instanceof RegexFacet) {
                RegexFacet rf = (RegexFacet)facet;
                regex = rf.getRegex();
              } else if (facet instanceof PermittedValuesFacet) {
                PermittedValuesFacet pvf = (PermittedValuesFacet)facet;
View Full Code Here


    if (!sad.aggregate) {
      TermSchema ts = (TermSchema)doAddSchema(sad.type, buildHierarchy, sad.manageAsSerializable);
      schema.add(slotName, ts, sad.mandatory ? ObjectSchema.MANDATORY : ObjectSchema.OPTIONAL);
     
      if (sad.defaultValue != null) {
        schema.addFacet(slotName, new DefaultValueFacet(sad.defaultValue));
      }
      if (sad.regex != null) {
        schema.addFacet(slotName, new RegexFacet(sad.regex));
      }
      if (sad.documentation != null) {
View Full Code Here

    if (!sad.aggregate) {
      ObjectSchema os = doAddSchema(sad.type, buildHierarchy, sad.manageAsSerializable);
      schema.add(slotName, os, sad.mandatory ? ObjectSchema.MANDATORY : ObjectSchema.OPTIONAL);
     
      if (sad.defaultValue != null) {
        schema.addFacet(slotName, new DefaultValueFacet(sad.defaultValue));
      }
      if (sad.regex != null) {
        schema.addFacet(slotName, new RegexFacet(sad.regex));
      }
      if (sad.documentation != null) {
View Full Code Here

TOP

Related Classes of jade.content.schema.facets.DefaultValueFacet

Copyright © 2018 www.massapicom. 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.