= WrappingObject
:Notice: 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.

Implemented by all objects that have been viewed as per _WrapperFactory#wrap(Object)_ .

== API

[source,java]
.WrappingObject.java
----
interface WrappingObject {
  final static String ORIGIN_GETTER_NAME;
  final static String ORIGIN_FIELD_NAME;
  final static String SAVE_METHOD_NAME;
  final static List<AdditionalField> ADDITIONAL_FIELDS;
  Origin __causeway_origin()     // <.>
  Origin getOrigin(WrappingObject proxyObject)     // <.>
  T withOrigin(T proxyObject, Origin origin)     // <.>
  void __causeway_save()     // <.>
}
----

<.> xref:#__causeway_origin_[__causeway_origin()]
+
--
Getter for the underlying _Origin_ .
--
<.> xref:#getOrigin_WrappingObject[getOrigin(WrappingObject)]
+
--
Getter for the underlying _Origin_ .
--
<.> xref:#withOrigin_T_Origin[withOrigin(T, Origin)]
+
--
Wither for the underlying _Origin_ .
--
<.> xref:#__causeway_save_[__causeway_save()]
+
--
Programmatic equivalent of invoking save for a transient object .
--

== Members

[#__causeway_origin_]
=== __causeway_origin()

Getter for the underlying _Origin_ .

[#getOrigin_WrappingObject]
=== getOrigin(WrappingObject)

Getter for the underlying _Origin_ .

[#withOrigin_T_Origin]
=== withOrigin(T, Origin)

Wither for the underlying _Origin_ .

[#__causeway_save_]
=== __causeway_save()

Programmatic equivalent of invoking save for a transient object .
