热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.jvnet.jaxb2_commons.lang.CopyStrategy.copy()方法的使用及代码示例

本文整理了Java中org.jvnet.jaxb2_commons.lang.CopyStrategy.copy()方法的一些代码示例,展示了CopyStrategy.copy()的具体用法。这些代码

本文整理了Java中org.jvnet.jaxb2_commons.lang.CopyStrategy.copy()方法的一些代码示例,展示了CopyStrategy.copy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CopyStrategy.copy()方法的具体详情如下:
包路径:org.jvnet.jaxb2_commons.lang.CopyStrategy
类名称:CopyStrategy
方法名:copy

CopyStrategy.copy介绍

暂无

代码示例

代码示例来源:origin: com.cisco.oss.foundation/configuration-api

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof StringEnum) {
final StringEnum copy = ((StringEnum) draftCopy);
if (this.value!= null) {
String sourceValue;
sourceValue = this.getValue();
String copyValue = ((String) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue));
copy.setValue(copyValue);
} else {
copy.value = null;
}
}
return draftCopy;
}

代码示例来源:origin: kamilfb/mqtt-spy

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof ConversionFormatterDetails) {
final ConversionFormatterDetails copy = ((ConversionFormatterDetails) draftCopy);
if (this.format!= null) {
ConversionMethod sourceFormat;
sourceFormat = this.getFormat();
ConversionMethod copyFormat = ((ConversionMethod) strategy.copy(LocatorUtils.property(locator, "format", sourceFormat), sourceFormat));
copy.setFormat(copyFormat);
} else {
copy.format = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/gml-v_3_1_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof TopoCurvePropertyType) {
final TopoCurvePropertyType copy = ((TopoCurvePropertyType) draftCopy);
if (this.isSetTopoCurve()) {
TopoCurveType sourceTopoCurve;
sourceTopoCurve = this.getTopoCurve();
TopoCurveType copyTopoCurve = ((TopoCurveType) strategy.copy(LocatorUtils.property(locator, "topoCurve", sourceTopoCurve), sourceTopoCurve));
copy.setTopoCurve(copyTopoCurve);
} else {
copy.topoCurve = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/gml-v_3_1_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof TopoSurfacePropertyType) {
final TopoSurfacePropertyType copy = ((TopoSurfacePropertyType) draftCopy);
if (this.isSetTopoSurface()) {
TopoSurfaceType sourceTopoSurface;
sourceTopoSurface = this.getTopoSurface();
TopoSurfaceType copyTopoSurface = ((TopoSurfaceType) strategy.copy(LocatorUtils.property(locator, "topoSurface", sourceTopoSurface), sourceTopoSurface));
copy.setTopoSurface(copyTopoSurface);
} else {
copy.topoSurface = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/gml-v_3_1_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof KnotPropertyType) {
final KnotPropertyType copy = ((KnotPropertyType) draftCopy);
if (this.isSetKnot()) {
KnotType sourceKnot;
sourceKnot = this.getKnot();
KnotType copyKnot = ((KnotType) strategy.copy(LocatorUtils.property(locator, "knot", sourceKnot), sourceKnot));
copy.setKnot(copyKnot);
} else {
copy.knot = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/ows-v_1_1_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof DCP) {
final DCP copy = ((DCP) draftCopy);
if (this.isSetHTTP()) {
HTTP sourceHTTP;
sourceHTTP = this.getHTTP();
HTTP copyHTTP = ((HTTP) strategy.copy(LocatorUtils.property(locator, "http", sourceHTTP), sourceHTTP));
copy.setHTTP(copyHTTP);
} else {
copy.http = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_2_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof XMLEncodingPropertyByValueType) {
final XMLEncodingPropertyByValueType copy = ((XMLEncodingPropertyByValueType) draftCopy);
if (this.isSetXMLEncoding()) {
XMLEncodingType sourceXMLEncoding;
sourceXMLEncoding = this.getXMLEncoding();
XMLEncodingType copyXMLEncoding = ((XMLEncodingType) strategy.copy(LocatorUtils.property(locator, "xmlEncoding", sourceXMLEncoding), sourceXMLEncoding));
copy.setXMLEncoding(copyXMLEncoding);
} else {
copy.xmlEncoding = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_2_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof TextEncodingPropertyByValueType) {
final TextEncodingPropertyByValueType copy = ((TextEncodingPropertyByValueType) draftCopy);
if (this.isSetTextEncoding()) {
TextEncodingType sourceTextEncoding;
sourceTextEncoding = this.getTextEncoding();
TextEncodingType copyTextEncoding = ((TextEncodingType) strategy.copy(LocatorUtils.property(locator, "textEncoding", sourceTextEncoding), sourceTextEncoding));
copy.setTextEncoding(copyTextEncoding);
} else {
copy.textEncoding = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/sensorml-v_1_0_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Link.Source) {
final Link.Source copy = ((Link.Source) draftCopy);
if (this.isSetRef()) {
String sourceRef;
sourceRef = this.getRef();
String copyRef = ((String) strategy.copy(LocatorUtils.property(locator, "ref", sourceRef), sourceRef));
copy.setRef(copyRef);
} else {
copy.ref = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/wms-v_1_3_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Post) {
final Post copy = ((Post) draftCopy);
if (this.isSetOnlineResource()) {
OnlineResource sourceOnlineResource;
sourceOnlineResource= this.getOnlineResource();
OnlineResource copyOnlineResource= ((OnlineResource) strategy.copy(LocatorUtils.property(locator, "onlineResource", sourceOnlineResource), sourceOnlineResource));
copy.setOnlineResource(copyOnlineResource);
} else {
copy.OnlineResource= null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/sensorml-v_1_0_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof ArrayLink.DestinationIndex) {
final ArrayLink.DestinationIndex copy = ((ArrayLink.DestinationIndex) draftCopy);
if (this.isSetRef()) {
String sourceRef;
sourceRef = this.getRef();
String copyRef = ((String) strategy.copy(LocatorUtils.property(locator, "ref", sourceRef), sourceRef));
copy.setRef(copyRef);
} else {
copy.ref = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/sensorml-v_1_0_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof ArrayLink.SourceIndex) {
final ArrayLink.SourceIndex copy = ((ArrayLink.SourceIndex) draftCopy);
if (this.isSetRef()) {
String sourceRef;
sourceRef = this.getRef();
String copyRef = ((String) strategy.copy(LocatorUtils.property(locator, "ref", sourceRef), sourceRef));
copy.setRef(copyRef);
} else {
copy.ref = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/sensorml-v_1_0_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof SpatialReferenceFrame) {
final SpatialReferenceFrame copy = ((SpatialReferenceFrame) draftCopy);
if (this.isSetEngineeringCRS()) {
EngineeringCRSType sourceEngineeringCRS;
sourceEngineeringCRS = this.getEngineeringCRS();
EngineeringCRSType copyEngineeringCRS = ((EngineeringCRSType) strategy.copy(LocatorUtils.property(locator, "engineeringCRS", sourceEngineeringCRS), sourceEngineeringCRS));
copy.setEngineeringCRS(copyEngineeringCRS);
} else {
copy.engineeringCRS = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_2_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof VectorPropertyByValueType) {
final VectorPropertyByValueType copy = ((VectorPropertyByValueType) draftCopy);
if (this.isSetVector()) {
VectorType sourceVector;
sourceVector = this.getVector();
VectorType copyVector = ((VectorType) strategy.copy(LocatorUtils.property(locator, "vector", sourceVector), sourceVector));
copy.setVector(copyVector);
} else {
copy.vector = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_2_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof DataChoiceType.ChoiceValue) {
final DataChoiceType.ChoiceValue copy = ((DataChoiceType.ChoiceValue) draftCopy);
if (this.isSetCategory()) {
CategoryType sourceCategory;
sourceCategory = this.getCategory();
CategoryType copyCategory = ((CategoryType) strategy.copy(LocatorUtils.property(locator, "category", sourceCategory), sourceCategory));
copy.setCategory(copyCategory);
} else {
copy.category = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/sensorml-v_1_0_1-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof ProcessMethodType.Algorithm) {
final ProcessMethodType.Algorithm copy = ((ProcessMethodType.Algorithm) draftCopy);
if (this.isSetAlgorithmDefinition()) {
ProcessMethodType.Algorithm.AlgorithmDefinition sourceAlgorithmDefinition;
sourceAlgorithmDefinition = this.getAlgorithmDefinition();
ProcessMethodType.Algorithm.AlgorithmDefinition copyAlgorithmDefinition = ((ProcessMethodType.Algorithm.AlgorithmDefinition) strategy.copy(LocatorUtils.property(locator, "algorithmDefinition", sourceAlgorithmDefinition), sourceAlgorithmDefinition));
copy.setAlgorithmDefinition(copyAlgorithmDefinition);
} else {
copy.algorithmDefinition = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/ws-addressing-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof AttributedURIType) {
final AttributedURIType copy = ((AttributedURIType) draftCopy);
if (this.isSetValue()) {
String sourceValue;
sourceValue = this.getValue();
String copyValue = ((String) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue));
copy.setValue(copyValue);
} else {
copy.value = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/ws-addressing-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof AttributedQNameType) {
final AttributedQNameType copy = ((AttributedQNameType) draftCopy);
if (this.isSetValue()) {
QName sourceValue;
sourceValue = this.getValue();
QName copyValue = ((QName) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue));
copy.setValue(copyValue);
} else {
copy.value = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_1_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof ArrayPropertyType) {
final ArrayPropertyType copy = ((ArrayPropertyType) draftCopy);
if (this.isSetArray()) {
ArrayType sourceArray;
sourceArray = this.getArray();
ArrayType copyArray = ((ArrayType) strategy.copy(LocatorUtils.property(locator, "array", sourceArray), sourceArray));
copy.setArray(copyArray);
} else {
copy.array = null;
}
}
return draftCopy;
}

代码示例来源:origin: org.jvnet.ogc/swecommon-v_1_0_0-schema

public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof TimePropertyType) {
final TimePropertyType copy = ((TimePropertyType) draftCopy);
if (this.isSetTime()) {
Time sourceTime;
sourceTime = this.getTime();
Time copyTime = ((Time) strategy.copy(LocatorUtils.property(locator, "time", sourceTime), sourceTime));
copy.setTime(copyTime);
} else {
copy.time = null;
}
}
return draftCopy;
}

推荐阅读
author-avatar
小艾的沙滩
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有