AttributedCharacterIterator.h

Go to the documentation of this file.
00001 #ifndef JAVA_TEXT_ATTRIBUTEDCHARACTERITERATOR_H
00002 #define JAVA_TEXT_ATTRIBUTEDCHARACTERITERATOR_H 1
00003 
00004 #ifndef JAVA_TEXT_SPEC
00005 #include <java_text/Spec.h>
00006 #endif /* JAVA_TEXT_SPEC */
00007 #ifndef JAVA_TEXT_CHARACTERITERATOR_H
00008 #include <java_text/CharacterIterator.h>
00009 #endif /* JAVA_TEXT_CHARACTERITERATOR_H */
00010 #ifndef JAVA_UTIL_SET_H
00011 #include <java_util/Set.h>
00012 #endif /* JAVA_UTIL_SET_H */
00013 #ifndef JAVA_UTIL_MAP_H
00014 #include <java_util/Map.h>
00015 #endif /* JAVA_UTIL_MAP_H */
00016 
00017 namespace java {
00018   namespace text {
00019 
00020     using namespace java::util;
00021 
00060     class JAVA_TEXT_SPEC AttributedCharacterIterator : virtual public CharacterIterator {
00061 
00062     public:
00063 
00071       class JAVA_TEXT_SPEC Attribute : virtual public Object {
00072 
00073       public:
00074 
00080           static const Attribute LANGUAGE;
00081 
00091           static const Attribute READING;
00092 
00099           static const Attribute INPUT_METHOD_SEGMENT;
00100 
00104           Attribute();
00105 
00110           virtual String toString() const;
00111 
00112       protected:
00113 
00117           Attribute(const String& name);
00118 
00122           virtual String getName() const;
00123 
00124       private:
00125 
00126           String name;
00127           REGISTER_MEMBERS;
00128 
00129       };
00130 
00135       virtual jint getRunStart() = 0;
00136 
00141      virtual jint getRunStart(const Attribute& attribute) = 0;
00142 
00147       virtual jint getRunStart(const Set& attributes) = 0;
00148 
00153       virtual jint getRunLimit() = 0;
00154 
00159       virtual jint getRunLimit(const Attribute& attribute) = 0;
00160 
00165       virtual jint getRunLimit(const Set& attributes) = 0;
00166 
00171       virtual Ref<Map> getAttributes() = 0;
00172 
00178       virtual ObjectRef getAttribute(const Attribute& attribute) = 0;
00179 
00185       virtual Ref<Set> getAllAttributeKeys() = 0;
00186 
00187     private:
00188 
00189       REGISTER_MEMBERS;
00190 
00191     };
00192 
00193 
00194   } // namespace text
00195 } // namespace java
00196 
00197 #endif /* JAVA_TEXT_CHARACTERITERATOR_H */

Generated on Fri May 16 11:54:42 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3