internal Content(string String, Support.Content.ContentType ContentType, IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _Temporary = true; _Index = null; _Parent = null; this.ContentType = ContentType; if (ValidateData(String)) { if (String != String.Empty) { _Data = String; if (ContentType == Support.Content.ContentType.Escape) { _EscapeMetaData = new EscapeData(String); } else { _EscapeMetaData = null; } SetParent(); } else { if (ContentType == Support.Content.ContentType.Escape) { throw new PeterPiperException("Attempt to set Content as type 'Escape' yet Content String was empty. Escape type content must have data provided"); } } } }
internal Element(IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _RepeatDictonary = new Dictionary <int, Field>(); _Temporary = true; _Index = null; _Parent = null; }
internal Field(IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _ComponentDictonary = new Dictionary <int, Component>(); _Temporary = true; _Index = null; _Parent = null; }
internal Segment(string StringRaw, IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _Temporary = true; _Index = null; _Parent = null; StringRaw = ValidateStringRaw(StringRaw); _ElementDictonary = ParseSegmentRawStringToElement(StringRaw); }
internal Content(Support.Standard.EscapeType EscapeType, IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _Temporary = true; _Index = null; _Parent = null; this.ContentType = Support.Content.ContentType.Escape; _EscapeMetaData = new EscapeData(EscapeType, String.Empty); _Data = _EscapeMetaData.EscapeTypeCharater.ToString(); SetParent(); }
internal SubComponent(string StringRaw, IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _Temporary = true; _Index = null; _Parent = null; if (ValidateStringRaw(StringRaw)) { _ContentDictonary = ParseSubComponentRawStringToContent(StringRaw, ModelSupport.ContentTypeInternal.Unknown); } }
internal Content(string String, IMessageDelimiters CustomDelimiters) : base(CustomDelimiters) { _Temporary = true; _Index = null; _Parent = null; this.ContentType = Support.Content.ContentType.Text; _EscapeMetaData = null; if (ValidateData(String)) { if (String != String.Empty) { _Data = String; SetParent(); } } }
protected ContentBase(IMessageDelimiters Delimiters) : base(Delimiters) { }
public static IContent Content(string String, IMessageDelimiters CustomDelimiters) { return(new Content(String, CustomDelimiters)); }
public static IField Field(string StringRaw, IMessageDelimiters CustomDelimiters) { return(new Field(StringRaw, CustomDelimiters)); }
public static IField Field(IMessageDelimiters CustomDelimiters) { return(new Field(CustomDelimiters)); }
public static IElement Element(String StringRaw, IMessageDelimiters CustomDelimiters) { return(new Element(StringRaw, CustomDelimiters)); }
public static IElement Element(IMessageDelimiters CustomDelimiters) { return(new Element(CustomDelimiters)); }
public static ISegment Segment(String StringRaw, IMessageDelimiters CustomDelimiters) { return(new Segment(StringRaw, CustomDelimiters)); }
public static IContent Content(Support.Standard.EscapeType EscapeType, IMessageDelimiters CustomDelimiters) { return(new Content(EscapeType, CustomDelimiters)); }
public static IComponent Component(IMessageDelimiters CustomDelimiters) { return(new Component(CustomDelimiters)); }
public static IComponent Component(string StringRaw, IMessageDelimiters CustomDelimiters) { return(new Component(StringRaw, CustomDelimiters)); }
public void Setup() { CustomDelimiters = Creator.MessageDelimiters('#', '@', '*', '!', '%'); }
public static IContent Content(string String, Support.Content.ContentType ContentType, IMessageDelimiters CustomDelimiters) { return(new Content(String, ContentType, CustomDelimiters)); }