com.sforce.ws.bind
Interface XMLizable

All Known Subinterfaces:
XmlTypeInfoProvider
All Known Implementing Classes:
AllOrNoneHeader_element, AllowFieldTruncationHeader_element, ApiFault, ApiQueryFault, AssignmentRuleHeader_element, AsyncApiException, BatchInfo, BatchInfoList, BatchResult, CallOptions_element, ChildRelationship, ConvertLead_element, ConvertLeadResponse_element, Create_element, CreateResponse_element, DataCategory, DataCategoryGroupSobjectTypePair, DebuggingHeader_element, DebuggingInfo_element, Delete_element, DeletedRecord, DeleteResponse_element, DeleteResult, DescribeDataCategoryGroupResult, DescribeDataCategoryGroups_element, DescribeDataCategoryGroupsResponse_element, DescribeDataCategoryGroupStructureResult, DescribeDataCategoryGroupStructures_element, DescribeDataCategoryGroupStructuresResponse_element, DescribeGlobal_element, DescribeGlobalResponse_element, DescribeGlobalResult, DescribeGlobalSObjectResult, DescribeLayout, DescribeLayout_element, DescribeLayoutButton, DescribeLayoutButtonSection, DescribeLayoutComponent, DescribeLayoutItem, DescribeLayoutResponse_element, DescribeLayoutResult, DescribeLayoutRow, DescribeLayoutSection, DescribeSObject_element, DescribeSObjectResponse_element, DescribeSObjectResult, DescribeSObjects_element, DescribeSObjectsResponse_element, DescribeSoftphoneLayout_element, DescribeSoftphoneLayoutCallType, DescribeSoftphoneLayoutInfoField, DescribeSoftphoneLayoutItem, DescribeSoftphoneLayoutResponse_element, DescribeSoftphoneLayoutResult, DescribeSoftphoneLayoutSection, DescribeSoftphoneScreenPopOption, DescribeTab, DescribeTabs_element, DescribeTabSetResult, DescribeTabsResponse_element, DisableFeedTrackingHeader_element, Email, EmailFileAttachment, EmailHeader_element, EmptyRecycleBin_element, EmptyRecycleBinResponse_element, EmptyRecycleBinResult, Error, Error, Field, GetDeleted_element, GetDeletedResponse_element, GetDeletedResult, GetServerTimestamp_element, GetServerTimestampResponse_element, GetServerTimestampResult, GetUpdated_element, GetUpdatedResponse_element, GetUpdatedResult, GetUserInfo_element, GetUserInfoResponse_element, GetUserInfoResult, InvalidateSessions_element, InvalidateSessionsResponse_element, InvalidateSessionsResult, InvalidFieldFault, InvalidIdFault, InvalidNewPasswordFault, InvalidQueryLocatorFault, InvalidSObjectFault, JobInfo, LeadConvert, LeadConvertResult, LocaleOptions_element, Login_element, LoginFault, LoginResponse_element, LoginResult, LoginScopeHeader_element, Logout_element, LogoutResponse_element, MalformedQueryFault, MalformedSearchFault, MassEmailMessage, Merge_element, MergeRequest, MergeResponse_element, MergeResult, MruHeader_element, PackageVersion, PackageVersionHeader_element, PicklistEntry, PicklistForRecordType, Process_element, ProcessRequest, ProcessResponse_element, ProcessResult, ProcessSubmitRequest, ProcessWorkitemRequest, Query_element, QueryAll_element, QueryAllResponse_element, QueryMore_element, QueryMoreResponse_element, QueryOptions_element, QueryResponse_element, QueryResult, RecordTypeInfo, RecordTypeMapping, RelatedList, RelatedListColumn, RelatedListSort, ResetPassword_element, ResetPasswordResponse_element, ResetPasswordResult, Result, Retrieve_element, RetrieveResponse_element, SaveResult, Search_element, SearchRecord, SearchResponse_element, SearchResult, SendEmail_element, SendEmailError, SendEmailResponse_element, SendEmailResult, SessionHeader_element, SetPassword_element, SetPasswordResponse_element, SetPasswordResult, SingleEmailMessage, SoapHeaderObject, SObject, StreamingEnabledHeader_element, Undelete_element, UndeleteResponse_element, UndeleteResult, UnexpectedErrorFault, Update_element, UpdateResponse_element, Upsert_element, UpsertResponse_element, UpsertResult, UserTerritoryDeleteHeader_element, XmlObject

public interface XMLizable

This interface is used to mark a class as de/serializable to XML.

Since:
1.0 Nov 30, 2005
Version:
1.0
Author:
http://cheenath.com

Method Summary
 void load(XmlInputStream in, TypeMapper typeMapper)
          load the fileds/children from the specified xml stream
 void write(QName element, XmlOutputStream out, TypeMapper typeMapper)
          write this instace as xml.
 

Method Detail

write

void write(QName element,
           XmlOutputStream out,
           TypeMapper typeMapper)
           throws IOException
write this instace as xml.

Parameters:
element - xml element name
out - xml output stream
typeMapper - type mapper to be used
Throws:
IOException - failed to write xml

load

void load(XmlInputStream in,
          TypeMapper typeMapper)
          throws IOException,
                 ConnectionException
load the fileds/children from the specified xml stream

Parameters:
in - xml input stream from which the data is read
typeMapper - type mapper to be used
Throws:
IOException - failed to read xml
ConnectionException - failed to read/parser/bind xml


Copyright © 2012. All Rights Reserved.