Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.thaiopensource.validate.rng;
 
public class RngProperty {
  private RngProperty() { }
  public static class DatatypeLibraryFactoryPropertyId extends PropertyId {
    public DatatypeLibraryFactoryPropertyId(String name) {
      super(nameDatatypeLibraryFactory.class);
    }
    public DatatypeLibraryFactory get(PropertyMap properties) {
      return (DatatypeLibraryFactory)properties.get(this);
    }
      return (DatatypeLibraryFactory)builder.put(thisvalue);
    }
  }
          = new DatatypeLibraryFactoryPropertyId("DATATYPE_LIBRARY_FACTORY");
  public static final FlagPropertyId CHECK_ID_IDREF = new FlagPropertyId("CHECK_ID_IDREF");
  public static final FlagPropertyId FEASIBLE = new FlagPropertyId("FEASIBLE");
  public static Option getOption(String uri) {
    if (!uri.startsWith(.))
      return null;
    uri = uri.substring(..length());
    if (uri.equals("feasible"))
      return new FlagOption();
    if (uri.equals("check-id-idref"))
      return new FlagOption();
    return null;
  }
New to GrepCode? Check out our FAQ X