Package jade.content.schema.facets

Examples of jade.content.schema.facets.RegexFacet


              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;
                pValues = pvf.getPermittedValuesAsString();
              } else if (facet instanceof CardinalityFacet) {
                CardinalityFacet cf = (CardinalityFacet)facet;
View Full Code Here


     
      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) {
        schema.addFacet(slotName, new DocumentationFacet(sad.documentation));
      }
      if (sad.permittedValues != null) {
View Full Code Here

     
      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) {
        schema.addFacet(slotName, new DocumentationFacet(sad.documentation));
      }
      if (sad.permittedValues != null) {
View Full Code Here

TOP

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

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.