1 38 39 40 package com.sun.xml.fastinfoset.vocab; 41 42 import java.net.URI ; 43 44 public abstract class Vocabulary { 45 public static final int RESTRICTED_ALPHABET = 0; 46 public static final int ENCODING_ALGORITHM = 1; 47 public static final int PREFIX = 2; 48 public static final int NAMESPACE_NAME = 3; 49 public static final int LOCAL_NAME = 4; 50 public static final int OTHER_NCNAME = 5; 51 public static final int OTHER_URI = 6; 52 public static final int ATTRIBUTE_VALUE = 7; 53 public static final int OTHER_STRING = 8; 54 public static final int CHARACTER_CONTENT_CHUNK = 9; 55 public static final int ELEMENT_NAME = 10; 56 public static final int ATTRIBUTE_NAME = 11; 57 58 protected boolean _hasInitialReadOnlyVocabulary; 59 60 protected URI _referencedVocabularyURI; 61 62 public boolean hasInitialVocabulary() { 63 return _hasInitialReadOnlyVocabulary; 64 } 65 66 protected void setInitialReadOnlyVocabulary(boolean hasInitialReadOnlyVocabulary) { 67 _hasInitialReadOnlyVocabulary = hasInitialReadOnlyVocabulary; 68 } 69 70 public boolean hasExternalVocabulary() { 71 return _referencedVocabularyURI != null; 72 } 73 74 public URI getExternalVocabularyURI() { 75 return _referencedVocabularyURI; 76 } 77 78 protected void setExternalVocabularyURI(URI referencedVocabularyURI) { 79 _referencedVocabularyURI = referencedVocabularyURI; 80 } 81 82 } 83 | Popular Tags |