예제 #1
0
        public override string ToString()
        {
            StringBuilder buffer = (new StringBuilder("{realisation=")).Append(realisation);             //$NON-NLS-1$

            if (category != null)
            {
                buffer.Append(", category=").Append(category.ToString());                 //$NON-NLS-1$
            }
            if (features != null)
            {
                buffer.Append(", features=").Append(features.ToStringNLG());                 //$NON-NLS-1$
            }
            buffer.Append('}');
            return(buffer.ToString());
        }
예제 #2
0
        /**********************************************************/
        // other methods
        /**********************************************************/

        public override string ToString()
        {
            ElementCategory _category = Category;
            StringBuilder   buffer    = new StringBuilder("WordElement[");        //$NON-NLS-1$

            buffer.Append(BaseForm).Append(':');
            if (_category != null)
            {
                buffer.Append(_category.ToString());
            }
            else
            {
                buffer.Append("no category");                 //$NON-NLS-1$
            }
            buffer.Append(']');
            return(buffer.ToString());
        }