
com.aliyuncs.drcloud.transform.v20170824.FindKnowledgeExtendListResponseUnmarshaller Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.aliyuncs.drcloud.transform.v20170824;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.drcloud.model.v20170824.FindKnowledgeExtendListResponse;
import com.aliyuncs.drcloud.model.v20170824.FindKnowledgeExtendListResponse.KnowledgeExtend;
import com.aliyuncs.transform.UnmarshallerContext;
public class FindKnowledgeExtendListResponseUnmarshaller {
public static FindKnowledgeExtendListResponse unmarshall(FindKnowledgeExtendListResponse findKnowledgeExtendListResponse, UnmarshallerContext context) {
List list = new ArrayList();
for (int i = 0; i < context.lengthValue("FindKnowledgeExtendListResponse.List.Length"); i++) {
KnowledgeExtend knowledgeExtend = new KnowledgeExtend();
knowledgeExtend.setId(context.longValue("FindKnowledgeExtendListResponse.List["+ i +"].Id"));
knowledgeExtend.setKnowledgeId(context.stringValue("FindKnowledgeExtendListResponse.List["+ i +"].KnowledgeId"));
knowledgeExtend.setName(context.stringValue("FindKnowledgeExtendListResponse.List["+ i +"].Name"));
knowledgeExtend.setRank(context.integerValue("FindKnowledgeExtendListResponse.List["+ i +"].Rank"));
knowledgeExtend.setCreatorId(context.longValue("FindKnowledgeExtendListResponse.List["+ i +"].CreatorId"));
knowledgeExtend.setModifierId(context.longValue("FindKnowledgeExtendListResponse.List["+ i +"].ModifierId"));
knowledgeExtend.setGmtCreate(context.stringValue("FindKnowledgeExtendListResponse.List["+ i +"].GmtCreate"));
knowledgeExtend.setGmtModified(context.stringValue("FindKnowledgeExtendListResponse.List["+ i +"].GmtModified"));
list.add(knowledgeExtend);
}
findKnowledgeExtendListResponse.setList(list);
return findKnowledgeExtendListResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy