Package com.kscs.util.jaxb
Interface PartialCopyable<T extends PartialCopyable<T>>
- All Known Implementing Classes:
AnyXmlOptionalType,AnyXmlType,AppSequenceType,AssertionType,AttributedQNameType,AttributedUnsignedLongType,AttributedURIType,Body,ByeType,CreateResponseType,DeliveryType,Detail,EndpointReferenceType,Envelope,Fault,Faultcode,Faultreason,FilterType,GetMetadata,GetStatus,GetStatusResponse,Header,HelloType,HostedServiceType,HostServiceType,LanguageSpecificStringType,LocalizedStringType,Metadata,MetadataSection,MetadataType,NotUnderstoodType,ProbeMatchesType,ProbeMatchType,ProbeType,ProblemActionType,Reasontext,ReferenceParametersType,RelatesToType,Relationship,Renew,RenewResponse,ResolveMatchesType,ResolveMatchType,ResolveType,ResourceCreated,ScopesType,SecurityType,SigType,Subcode,Subscribe,SubscribeResponse,SubscriptionEnd,SupportedEnvType,TBinding,TBindingOperation,TBindingOperationFault,TBindingOperationMessage,TDefinitions,TDocumentation,TDocumented,TExtensibilityElement,TExtensibleAttributesDocumented,TExtensibleDocumented,TFault,ThisDeviceType,ThisModelType,TImport,TMessage,TOperation,TParam,TPart,TPort,TPortType,TService,TTypes,Unsubscribe,UpgradeType
public interface PartialCopyable<T extends PartialCopyable<T>>
Contract for objects that can be copied partially,
i.e. by explicitly excluding or including specified
branches of the object tree.
-
Method Summary
Modifier and TypeMethodDescriptioncopyExcept(PropertyTree propertyTree) Clones this instances partially, the parts to be EXCLUDED will be defined by propertyTreecopyOnly(PropertyTree propertyTree) Clones this instances partially, the parts to be INCLUDED will be defined by propertyTree, all other parts will be excluded.createCopy(PropertyTree propertyTree, PropertyTreeUse propertyTreeUse) Clones this instances partially, the parts will be defined by propertyTree
-
Method Details
-
createCopy
Clones this instances partially, the parts will be defined by propertyTree- Parameters:
propertyTree- Defines which parts of the object tree will be cloned or excludedpropertyTreeUse- Defines how the clone graph will be used: To include or to exclude properties.- Returns:
- A copy of the original object.
-
copyExcept
Clones this instances partially, the parts to be EXCLUDED will be defined by propertyTree- Parameters:
propertyTree- Defines which parts of the object tree will be excluded- Returns:
- A copy of the original object.
-
copyOnly
Clones this instances partially, the parts to be INCLUDED will be defined by propertyTree, all other parts will be excluded.- Parameters:
propertyTree- Defines which parts of the object tree will be included in the clone- Returns:
- A copy of the original object.
-