1 57 58 package org.enhydra.apache.xerces.validators.common; 59 60 import org.enhydra.apache.xerces.utils.QName; 61 62 66 67 public final class ContentLeafNameTypeVector { 68 72 public QName[] leafNames = null; 73 public int[] leafTypes = null; 74 public int leafCount = 0; 75 76 80 public ContentLeafNameTypeVector () { 81 } 82 83 public ContentLeafNameTypeVector (QName[] names, int[] types, int count) { 84 setValues(names, types, count); 85 } 86 87 public ContentLeafNameTypeVector (ContentLeafNameTypeVector clntv) { 88 this(clntv.leafNames, clntv.leafTypes, clntv.leafCount); 89 } 90 91 public void setValues(QName[] names, int[] types, int count) { 95 if (count > 0) { 96 leafNames = new QName[count]; 97 leafTypes = new int[count]; 98 leafCount = count; 99 100 System.arraycopy( names, 0, leafNames, 0, count); 101 System.arraycopy( types, 0, leafTypes, 0, count); 102 } 103 } 104 105 } 106 | Popular Tags |