public XMLDeclaration setEncodingQuote (char encodingQuote) { this.encodingQuote = encodingQuote; updateText (); return this; }
public XMLDeclaration setStandaloneQuote (char standaloneQuote) { this.standaloneQuote = standaloneQuote; updateText (); return this; }
public XMLDeclaration setShowStandaloneNo (boolean showStandaloneNo) { this.showStandaloneNo = showStandaloneNo; updateText (); return this; }
public XMLDeclaration setStandalone (boolean standalone) { this.standalone = standalone; updateText (); return this; }
public XMLDeclaration setEncoding (String encoding) { if (encoding != null && encoding.trim ().length () == 0) throw new IllegalArgumentException ("encoding is blank"); this.encoding = encoding; updateText (); return this; }
public XMLDeclaration setPostSpace (String postSpace) { if (postSpace == null) postSpace = ""; else if (postSpace.trim ().length () != 0) throw new XMLParseException ("Space after the last field must not contain anything but whitespace"); this.postSpace = postSpace; updateText (); return this; }
public XMLDeclaration setVersionQuote (char versionQuote) { checkQuote ("version", versionQuote); this.versionQuote = versionQuote; updateText (); return this; }
public XMLDeclaration setEncodingEquals (String encodingEquals) { checkEquals ("encoding", encodingEquals); this.encodingEquals = encodingEquals; updateText (); return this; }
public XMLDeclaration setStandaloneEquals (String standaloneEquals) { checkEquals ("standalone", standaloneEquals); this.standaloneEquals = standaloneEquals; updateText (); return this; }
public XMLDeclaration setEncodingSpace (String encodingSpace) { checkSpace ("encoding", encodingSpace); this.encodingSpace = encodingSpace; updateText (); return this; }
public XMLDeclaration setStandaloneSpace (String standaloneSpace) { checkSpace ("standalone", standaloneSpace); this.standaloneSpace = standaloneSpace; updateText (); return this; }
public XMLDeclaration setVersionSpace (String versionSpace) { checkSpace ("version", versionSpace); this.versionSpace = versionSpace; updateText (); return this; }
public XMLDeclaration setVersion (String version) { checkVersion (version); this.version = version; updateText (); return this; }
public XMLDeclaration setVersionEquals (String versionEquals) { checkEquals ("version", versionEquals); this.versionEquals = versionEquals; updateText (); return this; }
public XMLDeclaration (String version, String encoding, boolean standalone) { super ("xml", null); checkVersion (version); if (encoding != null && encoding.trim ().length () == 0) throw new IllegalArgumentException ("encoding is blank"); this.versionSpace = " "; this.versionEquals = "="; this.versionQuote = '"'; this.version = version; this.encodingSpace = " "; this.encodingEquals = "="; this.encodingQuote = '"'; this.encoding = encoding; this.standaloneSpace = " "; this.standaloneEquals = "="; this.standaloneQuote = '"'; this.standalone = standalone; this.postSpace = ""; updateText (); }
throw new XMLParseException ("Missing version attribute", source, 0); updateText ();