All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.xsom.ForeignAttributes Maven / Gradle / Ivy

Go to download

XML Schema Object Model (XSOM) is a Java library that allows applications to easily parse XML Schema documents and inspect information in them. It is expected to be useful for applications that need to take XML Schema as an input.

The newest version!
/*
 * Copyright (C) 2017 Oracle
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.sun.xml.xsom;

import org.relaxng.datatype.ValidationContext;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;

/**
 * Foreign attributes on schema elements.
 *
 * 

* This is not a schema component as defined in the spec, * but this is often useful for a schema processing application. * * @author Kohsuke Kawaguchi */ public interface ForeignAttributes extends Attributes { /** * Returns context information of the element to which foreign attributes * are attached. * *

* For example, this can be used to resolve relative references to other resources * (by using {@link ValidationContext#getBaseUri()}) or to resolve * namespace prefixes in the attribute values (by using {@link ValidationContext#resolveNamespacePrefix(String)}. * * @return * always non-null. */ ValidationContext getContext(); /** * Returns the location of the element to which foreign attributes * are attached. */ Locator getLocator(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy