@Test public void testPropertiesInclusion() { oracle.addProperty("com.domain.Foo", "a", "java.lang.String"); oracle.addProperty("com.domain.Foo", "b", "java.lang.String"); final Map<String, Object> map = new HashMap<String, Object>(); map.put("domain", "Foo"); map.put("properties", "a"); final DtoConfig dc = new DtoConfig(oracle, rootConfig, "FooDto", map); assertThat(dc.getProperties().size(), is(1)); }
public List<DtoProperty> getProperties() { if (properties == null) { properties = list(); final List<PropConfig> pcs = getPropertiesConfig(); if (getDomainType() != null) { addPropertiesFromDomainObject(pcs); addChainedPropertiesFromDomainObject(pcs); } addLeftOverExtensionProperties(pcs); sortProperties(pcs, properties); } return properties; }
DtoConfig { public List<DtoProperty> getProperties() { if (properties == null) { properties = list(); final List<PropConfig> pcs = getPropertiesConfig(); if (getDomainType() != null) { addPropertiesFromDomainObject(pcs); addChainedPropertiesFromDomainObject(pcs); } addLeftOverExtensionProperties(pcs); sortProperties(pcs, properties); } return properties; } }
DtoConfig { public List<DtoProperty> getProperties() { if (properties == null) { properties = list(); final List<PropConfig> pcs = getPropertiesConfig(); if (getDomainType() != null) { addPropertiesFromDomainObject(pcs); addChainedPropertiesFromDomainObject(pcs); } addLeftOverExtensionProperties(pcs); sortProperties(pcs, properties); } return properties; } DtoConfig(final TypeOracle oracle, final RootConfig root, final String simpleName, final Object map); }
DtoConfig { public List<DtoProperty> getProperties() { if (properties == null) { properties = list(); final List<PropConfig> pcs = getPropertiesConfig(); if (getDomainType() != null) { addPropertiesFromDomainObject(pcs); addChainedPropertiesFromDomainObject(pcs); } addLeftOverExtensionProperties(pcs); sortProperties(pcs, properties); } return properties; } DtoConfig(final TypeOracle oracle, final RootConfig root, final String simpleName, final Object map); List<DtoProperty> getProperties(); List<DtoProperty> getInheritedProperties(); List<DtoProperty> getAllProperties(); String getSimpleName(); String getDtoType(); boolean shouldAddPublicConstructor(); List<String> getAnnotations(); List<String> getInterfaces(); String getBaseDtoSimpleName(); DtoConfig getBaseDto(); List<DtoConfig> getSubClassDtos(); boolean includeBeanMethods(); String getDomainType(); List<String> getEquality(); boolean includeTessellModel(); boolean isEnum(); boolean isAbstract(); List<String> getEnumValues(); boolean isManualDto(); List<String> getForcedMappers(); boolean requiresMapperType(); boolean hasIdProperty(); boolean hasExtensionProperties(); @Override String toString(); }
DtoConfig { public List<DtoProperty> getProperties() { if (properties == null) { properties = list(); final List<PropConfig> pcs = getPropertiesConfig(); if (getDomainType() != null) { addPropertiesFromDomainObject(pcs); addChainedPropertiesFromDomainObject(pcs); } addLeftOverExtensionProperties(pcs); sortProperties(pcs, properties); } return properties; } DtoConfig(final TypeOracle oracle, final RootConfig root, final String simpleName, final Object map); List<DtoProperty> getProperties(); List<DtoProperty> getInheritedProperties(); List<DtoProperty> getAllProperties(); String getSimpleName(); String getDtoType(); boolean shouldAddPublicConstructor(); List<String> getAnnotations(); List<String> getInterfaces(); String getBaseDtoSimpleName(); DtoConfig getBaseDto(); List<DtoConfig> getSubClassDtos(); boolean includeBeanMethods(); String getDomainType(); List<String> getEquality(); boolean includeTessellModel(); boolean isEnum(); boolean isAbstract(); List<String> getEnumValues(); boolean isManualDto(); List<String> getForcedMappers(); boolean requiresMapperType(); boolean hasIdProperty(); boolean hasExtensionProperties(); @Override String toString();  }