< prev index next >

src/jdk.xml.bind/share/classes/com/sun/xml/internal/org/relaxng/datatype/helpers/ParameterlessDatatypeBuilder.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2015, Thai Open Source Software Center Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: --- 1,7 ---- /* ! * Copyright (c) 2005, 2010, Thai Open Source Software Center Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met:
*** 42,60 **** * This implementation can be used for Datatypes which have no parameters. * Any attempt to add parameters will be rejected. * * <p> * Typical usage would be: ! * <PRE>{@code * class MyDatatypeLibrary implements DatatypeLibrary { * .... * DatatypeBuilder createDatatypeBuilder( String typeName ) { * return new ParameterleessDatatypeBuilder(createDatatype(typeName)); * } * .... * } ! * }</PRE> * * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a> */ public final class ParameterlessDatatypeBuilder implements DatatypeBuilder { --- 42,60 ---- * This implementation can be used for Datatypes which have no parameters. * Any attempt to add parameters will be rejected. * * <p> * Typical usage would be: ! * <PRE><XMP> * class MyDatatypeLibrary implements DatatypeLibrary { * .... * DatatypeBuilder createDatatypeBuilder( String typeName ) { * return new ParameterleessDatatypeBuilder(createDatatype(typeName)); * } * .... * } ! * </XMP></PRE> * * @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a> */ public final class ParameterlessDatatypeBuilder implements DatatypeBuilder {
< prev index next >