private void init() { if (_internalContext != null) { _javaNaming = _internalContext.getJavaNaming(); _xmlNaming = _internalContext.getXMLNaming(); setPrimitiveNodeType(_internalContext.getPrimitiveNodeType()); _wrapCollectionsInContainer = _internalContext .getBooleanProperty(XMLProperties.WRAP_COLLECTIONS_PROPERTY).booleanValue(); _saveMapKeys = _internalContext.getBooleanProperty(XMLProperties.SAVE_MAP_KEYS).booleanValue(); } } // -- init
private void init() { if (_internalContext != null) { _javaNaming = _internalContext.getJavaNaming(); _xmlNaming = _internalContext.getXMLNaming(); setPrimitiveNodeType(_internalContext.getPrimitiveNodeType()); _wrapCollectionsInContainer = _internalContext.getBooleanProperty(XMLConfiguration.WRAP_COLLECTIONS_PROPERTY).booleanValue(); _saveMapKeys = _internalContext.getBooleanProperty(XMLConfiguration.SAVE_MAP_KEYS).booleanValue(); } } //-- init
if (Character.isUpperCase(ncChars[0]) && Character.isUpperCase(ncChars[1])) { if (context != null && context.getBooleanProperty(XMLProperties.MEMBER_NAME_CAPITALISATION_STRICT)) { lowercase = true; } else {
if (Character.isUpperCase(ncChars[0]) && Character.isUpperCase(ncChars[1])) { if (context != null && context.getBooleanProperty(XMLProperties.MEMBER_NAME_CAPITALISATION_STRICT)) { lowercase = true; } else {
/** * Derive class-level properties from {@link XMLProperties} as defined {@link InternalContext}. * This method will be called after a new {@link InternalContext} or a property has been set. * * @link #setInternalContext(InternalContext) */ private void deriveProperties() { _validate = getInternalContext().marshallingValidation(); _saveMapKeys = getInternalContext().getBooleanProperty(XMLProperties.SAVE_MAP_KEYS).booleanValue(); String prop = getInternalContext().getStringProperty(XMLProperties.PROXY_INTERFACES); if (prop != null) { StringTokenizer tokenizer = new StringTokenizer(prop, ", "); while (tokenizer.hasMoreTokens()) { _proxyInterfaces.add(tokenizer.nextToken()); } } }
/** * Initializes this Marshaller. This is common code shared among * the Constructors **/ private void initialize() { setInternalContext(new BackwardCompatibilityContext()); _namespaces = new Namespaces(); _packages = new ArrayList(3); _parents = new SafeStack(); _validate = getInternalContext().marshallingValidation(); // _naming = XMLNaming.getInstance(); _processingInstructions = new ArrayList(3); _attributes = new AttributesImpl(); _topLevelAtts = new AttributeSetImpl(); _saveMapKeys = getInternalContext().getBooleanProperty(XMLConfiguration.SAVE_MAP_KEYS).booleanValue(); String prop = getInternalContext().getStringProperty(XMLConfiguration.PROXY_INTERFACES); if (prop != null) { StringTokenizer tokenizer = new StringTokenizer(prop, ", "); while (tokenizer.hasMoreTokens()) { _proxyInterfaces.add(tokenizer.nextToken()); } } } //-- initialize();
.getBooleanProperty(XMLConfiguration.LENIENT_INTROSPECTED_ELEMENT_STRICTNESS) .booleanValue(); if (! _strictElements) {
.getBooleanProperty(XMLProperties.LENIENT_INTROSPECTED_ELEMENT_STRICTNESS).booleanValue();