You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/06/27 14:01:42 UTC
[isis] 02/03: ISIS-2222: fixes .adoc for Wrapper Character
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch ISIS-2222
in repository https://gitbox.apache.org/repos/asf/isis.git
commit c71b819124022ce44d2017e5d588452417312395
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sat Jun 27 15:01:02 2020 +0100
ISIS-2222: fixes .adoc for Wrapper Character
---
...WrapperCharacterViewModel-description.ORIG.adoc | 43 ----------------------
1 file changed, 43 deletions(-)
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/characters/vm/WrapperCharacterViewModel-description.ORIG.adoc b/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/characters/vm/WrapperCharacterViewModel-description.ORIG.adoc
deleted file mode 100644
index f795bdf9..0000000
--- a/examples/demo/domain/src/main/java/demoapp/dom/types/wrapper/characters/vm/WrapperCharacterViewModel-description.ORIG.adoc
+++ /dev/null
@@ -1,43 +0,0 @@
-JAXB supports `Character` out-of-the-box, so no special annotations are required.
-
-[source,java]
-----
-@XmlRootElement(name = "demo.WrapperCharacterViewModel")
-@XmlType
-@XmlAccessorType(XmlAccessType.FIELD)
-@DomainObject(
- nature=Nature.VIEW_MODEL,
- objectType = "demo.WrapperCharacterViewModel"
-)
-@lombok.NoArgsConstructor // <.>
-public class WrapperCharacterViewModel
- implements HasAsciiDocDescription, WrapperCharacterHolder {
-
- public WrapperCharacterViewModel(Character initialValue) { // <.>
- // ...
- }
-
- @Title(prepend = "Character (wrapper) view model: ")
- @Getter @Setter
- private Character readOnlyProperty; // <.>
-
- @Getter @Setter
- private Character readOnlyProperty2;
-
- @Property(editing = Editing.ENABLED)
- @Getter @Setter
- private Character readWriteProperty;
-
- @Property(editing = Editing.ENABLED, optionality = Optionality.OPTIONAL) // <.>
- @XmlElement(required = false) // <.>
- @Getter @Setter
- private Character readWriteOptionalProperty;
-
-}
-----
-<.> a no-arg constructor is required by JAXB
-<.> no additional annotations required.
-<.> mandatory property as defined to JAXB.
-Note that JAXB's default is that a property is optional, whereas Apache Isis is the opposite, that it is mandatory.
-<.> optional property as defined to Apache Isis
-