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

org.apache.woden.xml.IntOrTokenAttr Maven / Gradle / Ivy

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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 org.apache.woden.xml;


/**
 * This interface represents XML attribute information items of type 
 * 'Union of xs:int, xs:token', for example
 * the whttp:code extension attribute of binding <fault>.
 * 

* The isInt and isToken methods determine whether * to call the getInt or getToken methods. * If the implementor object is initialized with an int, * isInt will return 'true', isToken will return * 'false', getInt will return the int value and getToken * will return null. If it is initialized with an xs:token, isInt * will return 'false', isToken will return 'true', getInt * will return null and getToken will return the token string. *

* If the implementor object is initialized with a null value (i.e. because * of an attribute value conversion error or because the attribute value * was empty in the WSDL), the getContents, getInt * and getToken methods will return null and isInt, * isToken and isValid will return false. * * @author [email protected] */ public interface IntOrTokenAttr extends XMLAttr { public boolean isInt(); public boolean isToken(); public Integer getInt(); public String getToken(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy