Пример #1
0
        /// <summary>
        /// Returns the property ID string that is associated with a
        /// given property ID in a section format ID's namespace.
        /// </summary>
        /// <param name="sectionFormatID">Each section format ID has its own name
        /// space of property ID strings and thus must be specified.</param>
        /// <param name="pid">The property ID</param>
        /// <returns>The well-known property ID string associated with the
        /// property ID pid in the name space spanned by sectionFormatID If the pid
        /// sectionFormatID combination is not well-known, the
        /// string "[undefined]" is returned.
        /// </returns>
        public static String GetPIDString(byte[] sectionFormatID,
                                          long pid)
        {
            PropertyIDMap m = GetInstance().Get(sectionFormatID);

            if (m == null)
            {
                return(UNDEFINED);
            }
            else
            {
                String s = (String)m.Get(pid);
                if (s == null)
                {
                    return(UNDEFINED);
                }
                return(s);
            }
        }
Пример #2
0
 /// <summary>
 /// Associates a section format ID with a {@link
 /// PropertyIDMap}.
 /// </summary>
 /// <param name="sectionFormatID">the section format ID</param>
 /// <param name="propertyIDMap">The property ID map.</param>
 /// <returns></returns>
 public Object Put(byte[] sectionFormatID,
                   PropertyIDMap propertyIDMap)
 {
     return(this[sectionFormatID] = propertyIDMap);
 }