Package org.hl7.fhir.utilities.xml
Class XMLWriterState
- java.lang.Object
-
- org.hl7.fhir.utilities.xml.XMLWriterState
-
public class XMLWriterState extends Object
-
-
Constructor Summary
Constructors Constructor Description XMLWriterState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNamespaceDefn(String namespace, String abbrev)XMLNamespacegetDefaultNamespace()XMLNamespacegetDefnByAbbreviation(String abbreviation)XMLNamespacegetDefnByNamespace(String namespace)StringgetName()StringgetNamespace()booleanhasChildren()booleanisInComment()booleanisPretty()voidseeChild()voidsetInComment(boolean inComment)voidsetName(String name)voidsetNamespace(String namespace)voidsetPretty(boolean pretty)
-
-
-
Constructor Detail
-
XMLWriterState
public XMLWriterState()
-
-
Method Detail
-
addNamespaceDefn
public void addNamespaceDefn(String namespace, String abbrev) throws IOException
- Throws:
IOException
-
getDefnByNamespace
public XMLNamespace getDefnByNamespace(String namespace)
-
getDefnByAbbreviation
public XMLNamespace getDefnByAbbreviation(String abbreviation)
-
getNamespace
public String getNamespace()
- Returns:
- the namespace
-
setNamespace
public void setNamespace(String namespace)
- Parameters:
namespace- the namespace to set
-
hasChildren
public boolean hasChildren()
- Returns:
- the children
-
seeChild
public void seeChild()
- Parameters:
children- the children to set
-
getDefaultNamespace
public XMLNamespace getDefaultNamespace()
-
isInComment
public boolean isInComment()
- Returns:
- the inComment
-
setInComment
public void setInComment(boolean inComment)
- Parameters:
inComment- the inComment to set
-
isPretty
public boolean isPretty()
- Returns:
- the pretty
-
setPretty
public void setPretty(boolean pretty)
- Parameters:
pretty- the pretty to set
-
-