#
# Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
# version 2 with the GNU Classpath Exception, which is available at
# https://www.gnu.org/software/classpath/license.html.
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#


#
#   *********  N O T E   *************
#
# The contents and format of this file are not
# published or supported interfaces of GlassFish.
# This file is not intended to be edited by users.
#
# See the in-code comments in DeveloperContentHandler for a discussion
# of how these properties are used.
#owned=/jnlp:/@codebase,/jnlp:/@href,/jnlp:/security,/jnlp:/application-desc,/jnlp/resources:/java

# Defaulted content:
# GF owns the codebase and href, defaults others (spec, version)
# children of <information> without os, arch, platform, or locale attrs
defaulted=\
    /jnlp:/@*[not(name() = 'codebase' or name() = 'href')],\
    /jnlp/information[not(@*)]:/title,\
    /jnlp/information[not(@*)]:/vendor,\
    /jnlp/information[not(@*)]:/homepage,\
    /jnlp/information[not(@*)]:/description,\
    /jnlp/information[not(@*)]:/icon,\
    /jnlp/information[not(@*)]:/offline-allowed,\
    /jnlp/information[not(@*)]:/shortcut,\
    /jnlp/information[not(@*)]:/association,\
    /jnlp/information[not(@*)]:/related-content,\
    /jnlp/application-desc:/@*[not(name() = 'main-class')]

# Merged content:
# all <information> elements specifying at least one attr
# all <resources> elements with at least one attribute
# all children of the default <resources> element
# either component-desc or installer-desc (for developer-provided JNLP)

merged=\
    /jnlp:/information[@*],\
    /jnlp:/resources[@*],\
    /jnlp/resources[not(@*)]:/*,\
    /jnlp:/component-desc | installer-desc,\
    /jnlp:/update


static.refs=\
    jnlp/information/homepage/@href,\
    jnlp/information/icon/@href,\
    jnlp/resources/java/resources/jar/@href,\
    jnlp/resources/jar/@href,\
    jnlp/resources/nativelib/@href,\
    jnlp/related-content/@href

dynamic.refs=jnlp/resources/extension/@href
