1 /* 2 * hunt-proton: AMQP Protocol library for D programming language. 3 * 4 * Copyright (C) 2018-2019 HuntLabs 5 * 6 * Website: https://www.huntlabs.net/ 7 * 8 * Licensed under the Apache-2.0 License. 9 * 10 */ 11 12 module hunt.proton.codec.impl.AtomicElement; 13 14 import hunt.proton.codec.impl.AbstractElement; 15 import hunt.proton.codec.impl.Element; 16 import hunt.Exceptions; 17 18 abstract class AtomicElement(T) : AbstractElement!T 19 { 20 21 this(IElement parent, IElement prev) 22 { 23 super(parent, prev); 24 } 25 26 public IElement child() 27 { 28 throw new UnsupportedOperationException(); 29 } 30 31 public void setChild(IElement elt) 32 { 33 throw new UnsupportedOperationException(); 34 } 35 36 37 public bool canEnter() 38 { 39 return false; 40 } 41 42 public IElement checkChild(IElement element) 43 { 44 throw new UnsupportedOperationException(); 45 } 46 47 public IElement addChild(IElement element) 48 { 49 throw new UnsupportedOperationException(); 50 } 51 52 override 53 string startSymbol() { 54 throw new UnsupportedOperationException(); 55 } 56 57 override 58 string stopSymbol() { 59 throw new UnsupportedOperationException(); 60 } 61 62 }