Package com.microstrategy.web.objects
Class WebXMLBuilder
- java.lang.Object
-
- com.microstrategy.utils.xml.XMLBuilder
-
- com.microstrategy.utils.serialization.XMLStateSerializer
-
- com.microstrategy.web.objects.WebXMLBuilder
-
- Direct Known Subclasses:
RWDelta
public class WebXMLBuilder extends XMLStateSerializer
This class extendsXMLBuilder
functionality with services specific for Microstrategy XML format.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.utils.xml.XMLBuilder
XMLBuilder.Element
-
-
Field Summary
-
Fields inherited from class com.microstrategy.utils.xml.XMLBuilder
curElt
-
-
Constructor Summary
Constructors Constructor Description WebXMLBuilder()
Default constructorWebXMLBuilder(int _bufSize)
Constructs the instance with specified buffer size.WebXMLBuilder(int _bufSize, boolean _encode)
Constructs the instance with specified buffer size and encoding flag.WebXMLBuilder(java.lang.StringBuffer _buf)
Constructs the instance with specified buffer.WebXMLBuilder(java.lang.StringBuffer _buf, boolean _encode)
Constructs the instance with specified buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebXMLBuilder
addAttributes(com.microstrategy.web.objects.AttrList attrs)
Adds all attributes from theattrs
to the current elementWebXMLBuilder
addMiExpTifs(java.lang.String timeFilterType, java.lang.String lastTimeFilterUnit, java.lang.String lastTimeFilterValue, java.lang.String currentTimeFilterValue)
Adds chain of mi, exp and tifs elements to the current elementWebXMLBuilder
addMiInOi(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds chain of mi, in and oi elements to the current elementWebXMLBuilder
addOi(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds oi child element to the current elementWebXMLBuilder
addOiSibling(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds oi sibleng element to the current elementvoid
addTextOptionToNode(java.lang.String nodeName, java.lang.String text)
Add a text node with its parent node's namejava.lang.String
getId()
Use this method to obtain unique IDs for objects embedded in the XML.void
reset()
Cleanups the buffer and the stack so the builder can be reused for building another XML.-
Methods inherited from class com.microstrategy.utils.serialization.XMLStateSerializer
addChildStage
-
Methods inherited from class com.microstrategy.utils.xml.XMLBuilder
addAttribute, addAttribute, addAttribute, addAttributeCond, addBoolAttribute, addBoolAttribute, addChild, addChildMixed, addChildTo, addRawAttribute, addRawAttribute, addRawText, addRawTextMixed, addRawXML, addRawXML, addRequiredBoolAttribute, addSibling, addSiblingTo, addText, addTextMixed, addValueTag, addValueTag, addValueTag, addValueTag, append, closeAll, closeElement, closeElements, closeTag, getBuffer, getRawBuffer, getRawBufferInternal, init, init, isEncode, printBuffer, toString
-
-
-
-
Constructor Detail
-
WebXMLBuilder
public WebXMLBuilder()
Default constructor
-
WebXMLBuilder
public WebXMLBuilder(int _bufSize)
Constructs the instance with specified buffer size.- Parameters:
_bufSize
- the initial buffer size
-
WebXMLBuilder
public WebXMLBuilder(int _bufSize, boolean _encode)
Constructs the instance with specified buffer size and encoding flag.- Parameters:
_bufSize
- the initial buffer size_encode
- flag indicating that XML must be encodded
-
WebXMLBuilder
public WebXMLBuilder(java.lang.StringBuffer _buf)
Constructs the instance with specified buffer. Used for building embeded objects XML- Parameters:
_buf
- the bufer where to store XML
-
WebXMLBuilder
public WebXMLBuilder(java.lang.StringBuffer _buf, boolean _encode)
Constructs the instance with specified buffer. Used for building embeded objects XML- Parameters:
_buf
- the bufer where to store XML_encode
- flag indicating that XML must be encodded
-
-
Method Detail
-
reset
public void reset()
Description copied from class:XMLBuilder
Cleanups the buffer and the stack so the builder can be reused for building another XML.- Overrides:
reset
in classXMLBuilder
-
getId
public final java.lang.String getId()
Use this method to obtain unique IDs for objects embedded in the XML. This IDs are used inid
andrfd
attributes.- Returns:
- the next ID value
-
addAttributes
public WebXMLBuilder addAttributes(com.microstrategy.web.objects.AttrList attrs) throws XMLBuilderException
Adds all attributes from theattrs
to the current element- Parameters:
attrs
- attribute list- Returns:
this
- Throws:
XMLBuilderException
-
addMiExpTifs
public WebXMLBuilder addMiExpTifs(java.lang.String timeFilterType, java.lang.String lastTimeFilterUnit, java.lang.String lastTimeFilterValue, java.lang.String currentTimeFilterValue)
Adds chain of mi, exp and tifs elements to the current element- Parameters:
timeFilterType
- a value for the type of time filter, last or currentlastTimeFilterUnit
- string representation of an enum indicating the unit for last time, minute, hour or daylastTimeFilterValue
- string representation of the last time valuecurrentTimeFilterValue
- string representation of the current time value- Returns:
this
-
addOi
public WebXMLBuilder addOi(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds oi child element to the current element- Parameters:
id
- a value for the id attributeattrs
- other attributes- Returns:
this
-
addOiSibling
public WebXMLBuilder addOiSibling(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds oi sibleng element to the current element- Parameters:
id
- a value for the id attributeattrs
- other attributes- Returns:
this
-
addMiInOi
public WebXMLBuilder addMiInOi(java.lang.String id, com.microstrategy.web.objects.AttrList attrs)
Adds chain of mi, in and oi elements to the current element- Parameters:
id
- a value for the id attributeattrs
- other attributes- Returns:
this
-
addTextOptionToNode
public void addTextOptionToNode(java.lang.String nodeName, java.lang.String text)
Add a text node with its parent node's name- Parameters:
nodeName
- parent node name.text
- The text for the text node.
-
-