Class TagTypeBase

    • Constructor Detail

      • TagTypeBase

        protected TagTypeBase​(int _tag_type,
                              int _tag_features,
                              java.lang.String _tag_name)
    • Method Detail

      • addTagType

        protected void addTagType()
      • resolveTaggable

        protected Taggable resolveTaggable​(java.lang.String id)
      • getTagType

        public int getTagType()
        Description copied from interface: TagType
        Unique type denoting this species of tag
        Specified by:
        getTagType in interface TagType
        Returns:
      • getTagTypeName

        public java.lang.String getTagTypeName​(boolean localize)
        Specified by:
        getTagTypeName in interface TagType
      • hasTagTypeFeature

        public boolean hasTagTypeFeature​(long feature)
        Specified by:
        hasTagTypeFeature in interface TagType
      • fireChanged

        protected void fireChanged()
      • addTag

        public void addTag​(Tag t)
        Specified by:
        addTag in interface TagType
      • requestAttention

        public void requestAttention​(Tag t)
      • sync

        protected void sync()
      • closing

        protected void closing()
      • getTag

        public Tag getTag​(int tag_id)
        Specified by:
        getTag in interface TagType
      • getTag

        public Tag getTag​(java.lang.String tag_name,
                          boolean is_localized)
        Specified by:
        getTag in interface TagType
      • fireMembershipChanged

        protected void fireMembershipChanged​(Tag t)
      • fireMetadataChanged

        protected void fireMetadataChanged​(Tag t)
      • readBooleanAttribute

        protected java.lang.Boolean readBooleanAttribute​(TagBase tag,
                                                         java.lang.String attr,
                                                         java.lang.Boolean def)
      • writeBooleanAttribute

        protected boolean writeBooleanAttribute​(TagBase tag,
                                                java.lang.String attr,
                                                java.lang.Boolean value)
      • readLongAttribute

        protected java.lang.Long readLongAttribute​(TagBase tag,
                                                   java.lang.String attr,
                                                   java.lang.Long def)
      • writeLongAttribute

        protected boolean writeLongAttribute​(TagBase tag,
                                             java.lang.String attr,
                                             java.lang.Long value)
      • readStringAttribute

        protected java.lang.String readStringAttribute​(TagBase tag,
                                                       java.lang.String attr,
                                                       java.lang.String def)
      • writeStringAttribute

        protected boolean writeStringAttribute​(TagBase tag,
                                               java.lang.String attr,
                                               java.lang.String value)
        Returns:
        Whether attribute was changed from existing value
      • readMapAttribute

        protected java.util.Map<java.lang.String,​java.lang.Object> readMapAttribute​(TagBase tag,
                                                                                          java.lang.String attr,
                                                                                          java.util.Map<java.lang.String,​java.lang.Object> def)
      • writeMapAttribute

        protected void writeMapAttribute​(TagBase tag,
                                         java.lang.String attr,
                                         java.util.Map<java.lang.String,​java.lang.Object> value)
      • readStringListAttribute

        protected java.lang.String[] readStringListAttribute​(TagBase tag,
                                                             java.lang.String attr,
                                                             java.lang.String[] def)
      • writeStringListAttribute

        protected boolean writeStringListAttribute​(TagBase tag,
                                                   java.lang.String attr,
                                                   java.lang.String[] value)
      • readLongListAttribute

        protected long[] readLongListAttribute​(TagBase tag,
                                               java.lang.String attr,
                                               long[] def)
      • writeLongListAttribute

        protected boolean writeLongListAttribute​(TagBase tag,
                                                 java.lang.String attr,
                                                 long[] value)
      • setTagGroup

        protected void setTagGroup​(Tag tag,
                                   java.lang.String old_name,
                                   java.lang.String new_name)
      • getTagGroup

        protected TagGroup getTagGroup​(java.lang.String name)