/*
 int oldState = getFeatureMask();
 int newState = (oldState & ~mask) | (values & mask);
 return setFeatureMask(newState);
 */
 /*
 /**********************************************************
 /* Public API, Schema configuration
 /**********************************************************
 */
 /// <summary>Method to call to make this generator use specified schema.</summary>
 /// <remarks>
 /// Method to call to make this generator use specified schema.
 /// Method must be called before generating any content, right after instance
 /// has been created.
 /// Note that not all generators support schemas; and those that do usually only
 /// accept specific types of schemas: ones defined for data format this generator
 /// produces.
 /// <p>
 /// If generator does not support specified schema,
 /// <see cref="System.NotSupportedException"/>
 /// is thrown.
 /// </remarks>
 /// <param name="schema">Schema to use</param>
 /// <exception cref="System.NotSupportedException">if generator does not support schema
 /// 	</exception>
 public virtual void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
 {
     throw new System.NotSupportedException("Generator of type " + GetType().FullName
         + " does not support schema of type '" + schema.getSchemaType() + "'");
 }
		/*
		/**********************************************************
		/* Format detection functionality
		/**********************************************************
		*/
		/// <summary>
		/// Method that can be used to quickly check whether given schema
		/// is something that parsers and/or generators constructed by this
		/// factory could use.
		/// </summary>
		/// <remarks>
		/// Method that can be used to quickly check whether given schema
		/// is something that parsers and/or generators constructed by this
		/// factory could use. Note that this means possible use, at the level
		/// of data format (i.e. schema is for same data format as parsers and
		/// generators this factory constructs); individual schema instances
		/// may have further usage restrictions.
		/// </remarks>
		/// <since>2.1</since>
		public virtual bool canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
		{
			string ourFormat = getFormatName();
			return (ourFormat != null) && ourFormat.Equals(schema.getSchemaType());
		}