/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
*
* @author Marek Potociar (marek.potociar at sun.com)
*/
public enum NamespaceVersion {
}),
});
/**
* Resolves URI represented as a String into an enumeration value. If the URI
* doesn't represent any existing enumeration value, method returns
* {@code null}.
*
* @param uri WS-Policy namespace URI
* @return Enumeration value that represents given URI or {@code null} if
* no enumeration value exists for given URI.
*/
return namespaceVersion;
}
}
return null;
}
/**
* Resolves fully qualified name defined in the WS-Policy namespace into an
* enumeration value. If the URI in the name doesn't represent any existing
* enumeration value, method returns {@code null}
*
* @param name fully qualified name defined in the WS-Policy namespace
* @return Enumeration value that represents given namespace or {@code null} if
* no enumeration value exists for given namespace.
*/
}
/**
* Returns latest supported version of the policy namespace
*
* @return latest supported policy namespace version.
*/
return v1_5;
}
/**
* Resolves FQN into a policy XML token. The version of the token can be determined
* by invoking {@link #resolveVersion(QName)}.
*
* @param name fully qualified name defined in the WS-Policy namespace
* @return XML token enumeration that represents this fully qualified name.
* If the token or the namespace is not resolved {@link XmlToken#UNKNOWN} value
* is returned.
*/
return token;
}
}
}
}
}
/**
* Method returns default namespace prefix for given namespace version.
*
* @return default namespace prefix for given namespace version
*/
return defaultNsPrefix;
}
/**
* Resolves XML token into a fully qualified name within given namespace version.
*
* @param token XML token enumeration value.
* @return fully qualified name of the {@code token} within given namespace
* version. Method returns {@code null} in case the token is not supported in
* given namespace version or in case {@link XmlToken#UNKNOWN} was used as
* an input parameter.
*/
}
return nsUri;
}
}