< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 53,59 **** --- 53,75 ---- if(token.equals("2.2")) return V2_2; return null; } + /** + * Gives the String representation of the {@link SpecVersion} + */ + public String getVersion(){ + switch(this){ + case V2_0: + return "2.0"; + case V2_1: + return "2.1"; + case V2_2: + return "2.2"; + default: + return null; + } + } + public static final SpecVersion LATEST = V2_2; }
< prev index next >