View Javadoc

1   /*
2    * $Id: Cardinality.java,v 1.7 2005/06/01 14:36:02 jlerner Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8   
9   package com.bbn.swede.core.dom.owl;
10  
11  import com.bbn.swede.core.dom.OASTNode;
12  import com.bbn.swede.core.dom.PropertyNode;
13  
14  /***
15   * Custom property node implementation for owl:cardinality.
16   * @author jlerner
17   */
18  public class Cardinality extends PropertyNode
19  {
20     /*
21      *  (non-Javadoc)
22      * @see com.bbn.swede.core.dom.OASTNode#allowedChildren()
23      */
24     protected int[] allowedChildren()
25     {
26        return null;
27     }
28  
29     /*
30      *  (non-Javadoc)
31      * @see com.bbn.swede.core.dom.OASTNode#getNodeType()
32      */
33     public int getNodeType()
34     {
35        return OASTNode.OWL_CARDINALITY;
36     }
37  
38  }