Interface ITMPTagValidator
- Namespace
- TMPEffects.Tags
Tag validation interface.
public interface ITMPTagValidator
Methods
ValidateOpenTag(TagInfo, out TMPEffectTag, out int)
Validate a given ParsingUtility.TagInfo. MUST be of type Open.
bool ValidateOpenTag(ParsingUtility.TagInfo tagInfo, out TMPEffectTag data, out int endIndex)
Parameters
tagInfoParsingUtility.TagInfoInformation about the tag.
dataTMPEffectTagAssuming the tag is validated, this will be set to the created TMPEffectTag; otherwise it will be null.
endIndexintAssuming the tag is validated, this will be set to the endIndex of the tag.
Returns
- bool
true if the tag is successfully validated; false otherwise.
Exceptions
ValidateTag(TMPEffectTag)
Validate a given TMPEffectTag.
bool ValidateTag(TMPEffectTag tag)
Parameters
tagTMPEffectTagInformation about the tag.
Returns
- bool
true if the tag is successfully validated; false otherwise.
ValidateTag(TagInfo)
Validate a given ParsingUtility.TagInfo.
bool ValidateTag(ParsingUtility.TagInfo tagInfo)
Parameters
tagInfoParsingUtility.TagInfoInformation about the tag.
Returns
- bool
true if the tag is successfully validated; false otherwise.