/*
 * @(#)$Id: Discrete.java 1567 2003-06-09 20:50:21Z kk122374 $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.datatype.xsd;

/**
 * base interface of types to which length-related facets are applicable.
 * 
 * @author <a href="mailto:kohsuke.kawaguchi@eng.sun.com">Kohsuke KAWAGUCHI</a>
 */
interface Discrete {
    /** count the number of item in value type.
     * 
     * Actual semantics of this method varies.
     */
    public int countLength( Object value );
}
