Build 1.0_r1(from source)

android.syncml.pim
Class VDataBuilder

java.lang.Object
  extended by android.syncml.pim.VDataBuilder
All Implemented Interfaces:
VBuilder

public class VDataBuilder
extends Object
implements VBuilder

Store the parse result to custom datastruct: VNode, PropertyNode Maybe several vcard instance, so use vNodeList to store. VNode: standy by a vcard instance. PropertyNode: standy by a property line of a card.


Field Summary
(package private)  String curParamType
           
(package private)  PropertyNode curPropNode
           
(package private)  VNode curVNode
           
(package private)  int nodeListPos
           
 ArrayList<VNode> vNodeList
          type=VNode
 
Constructor Summary
VDataBuilder()
           
 
Method Summary
 void end()
           
 void endProperty()
           
 void endRecord()
          END:VXX
 String getResult()
           
 void propertyName(String name)
           
 void propertyParamType(String type)
           
 void propertyParamValue(String value)
           
 void propertyValues(Collection<String> values)
           
 void start()
           
 void startProperty()
           
 void startRecord(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vNodeList

public ArrayList<VNode> vNodeList
type=VNode


nodeListPos

int nodeListPos

curVNode

VNode curVNode

curPropNode

PropertyNode curPropNode

curParamType

String curParamType
Constructor Detail

VDataBuilder

public VDataBuilder()
Method Detail

start

public void start()
Specified by:
start in interface VBuilder

end

public void end()
Specified by:
end in interface VBuilder

startRecord

public void startRecord(String type)
Specified by:
startRecord in interface VBuilder
Parameters:
type - VXX
BEGIN:VXX

endRecord

public void endRecord()
Description copied from interface: VBuilder
END:VXX

Specified by:
endRecord in interface VBuilder

startProperty

public void startProperty()
Specified by:
startProperty in interface VBuilder

endProperty

public void endProperty()
Specified by:
endProperty in interface VBuilder

propertyName

public void propertyName(String name)
Specified by:
propertyName in interface VBuilder
Parameters:
name - a.N
a.N

propertyParamType

public void propertyParamType(String type)
Specified by:
propertyParamType in interface VBuilder
Parameters:
type - LANGUAGE \ ENCODING
;LANGUage= \ ;ENCODING=

propertyParamValue

public void propertyParamValue(String value)
Specified by:
propertyParamValue in interface VBuilder
Parameters:
value - FR-EN \ GBK
FR-EN \ GBK

propertyValues

public void propertyValues(Collection<String> values)
Specified by:
propertyValues in interface VBuilder

getResult

public String getResult()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature