public String get() { setDefaultValue(); return getConfigMap().get(getAttributeName()); }
private void setDefaultValue() { final Map<String, String> map = getConfigMap(); if (defaultValue != null && !map.containsKey(getAttributeName())) { map.put(getAttributeName(), defaultValue); } }
private void generateMarshallers(final MarshallerGenerationCallback callback) { final Set<MetaClass> exposed = mappingContext.getDefinitionsFactory().getExposedClasses(); for (final MetaClass clazz : exposed) { mappingContext.registerGeneratedMarshaller(clazz.getFullyQualifiedName()); } final boolean lazyEnabled = CommonConfigAttribs.LAZY_LOAD_BUILTIN_MARSHALLERS.getBoolean(); for (final MetaClass cls : exposed) { final MetaClass compType = cls.getOuterComponentType(); final MappingDefinition definition = mappingContext.getDefinitionsFactory().getDefinition(compType); if (definition.getClientMarshallerClass() != null || definition.alreadyGenerated()) { continue; } if (target == MarshallerOutputTarget.Java && lazyEnabled && definition.isLazy()) { if (unlazyMarshallers.contains(compType.getFullyQualifiedName())) { definition.setLazy(false); } else { continue; } } addMarshaller(compType); callback.callback(compType); } }
private void setDefaultValue() { final Map<String, String> map = getConfigMap(); if (defaultValue != null && !map.containsKey(getAttributeName())) { map.put(getAttributeName(), defaultValue); } }
private void generateMarshallers(final MarshallerGenerationCallback callback) { final Set<MetaClass> exposed = mappingContext.getDefinitionsFactory().getExposedClasses(); for (final MetaClass clazz : exposed) { mappingContext.registerGeneratedMarshaller(clazz.getFullyQualifiedName()); } final boolean lazyEnabled = CommonConfigAttribs.LAZY_LOAD_BUILTIN_MARSHALLERS.getBoolean(); for (final MetaClass cls : exposed) { final MetaClass compType = cls.getOuterComponentType(); final MappingDefinition definition = mappingContext.getDefinitionsFactory().getDefinition(compType); if (definition.getClientMarshallerClass() != null || definition.alreadyGenerated()) { continue; } if (target == MarshallerOutputTarget.Java && lazyEnabled && definition.isLazy()) { if (unlazyMarshallers.contains(compType.getFullyQualifiedName())) { definition.setLazy(false); } else { continue; } } addMarshaller(compType); callback.callback(compType); } }
public String get() { setDefaultValue(); return getConfigMap().get(getAttributeName()); }
public void set(final String value) { getConfigMap().put(getAttributeName(), value); }
getMarshallerMethod.append(Stmt.loadLiteral(null).returnValue()).finish(); if (CommonConfigAttribs.MAKE_DEFAULT_ARRAY_MARSHALLERS.getBoolean()) { for (final MetaClass arrayType : MarshallingGenUtil.getDefaultArrayMarshallers()) { addArrayMarshaller(arrayType, target == MarshallerOutputTarget.GWT);
public Integer getInt() { setDefaultValue(); return Integer.parseInt(getConfigMap().get(getAttributeName())); }
public void set(final String value) { getConfigMap().put(getAttributeName(), value); }
getMarshallerMethod.append(Stmt.loadLiteral(null).returnValue()).finish(); if (CommonConfigAttribs.MAKE_DEFAULT_ARRAY_MARSHALLERS.getBoolean()) { for (final MetaClass arrayType : MarshallingGenUtil.getDefaultArrayMarshallers()) { addArrayMarshaller(arrayType, target == MarshallerOutputTarget.GWT);
public Integer getInt() { setDefaultValue(); return Integer.parseInt(getConfigMap().get(getAttributeName())); }
public boolean getBoolean() { setDefaultValue(); return Boolean.parseBoolean(getConfigMap().get(getAttributeName())); }
public boolean getBoolean() { setDefaultValue(); return Boolean.parseBoolean(getConfigMap().get(getAttributeName())); }