public bool SetPresence(string token)
{
bool hasDefault = true;
if (string.Equals(token, "FIXED", StringComparison.OrdinalIgnoreCase))
{
this.m_presence = AttributePresence.Fixed;
}
else if (string.Equals(token, "REQUIRED", StringComparison.OrdinalIgnoreCase))
{
this.m_presence = AttributePresence.Required;
hasDefault = false;
}
else if (string.Equals(token, "IMPLIED", StringComparison.OrdinalIgnoreCase))
{
this.m_presence = AttributePresence.Implied;
hasDefault = false;
}
else
{
throw new SgmlParseException(string.Format(CultureInfo.CurrentUICulture, "Attribute value '{0}' not supported", token));
}
return hasDefault;
}