AntXtras/Svn4Ant-1.1.0

com.idaremedia.svn4ant.startup
Class AcceptedWCFormat

java.lang.Object
  extended byorg.apache.tools.ant.types.EnumeratedAttribute
      extended bycom.idaremedia.antx.parameters.EnumSkeleton
          extended bycom.idaremedia.svn4ant.startup.AcceptedWCFormat
All Implemented Interfaces:
com.idaremedia.antx.apis.FlexStringFriendly

public final class AcceptedWCFormat
extends com.idaremedia.antx.parameters.EnumSkeleton

Enumeration that helps the client application flag what version of working copy format svn4ant (or SVNKit) should accept. Possible values are: "pre-svn14", "svn14", and "default" where "default "is interpreted to mean whatever the underlying svnkit supports.

Since:
JWare/Svn4Ant 1.1
Author:
ssmc, ©2007 iDare Media, Inc.
Thread Safety:
multiple

Field Summary
static AcceptedWCFormat DEFAULT
          Singleton "default" choice.
static AcceptedWCFormat PRE_SVN14
          Singleton "pre-svn14" choice.
static AcceptedWCFormat SVN_14
          Singleton "svn14" choice.
 
Fields inherited from class com.idaremedia.antx.parameters.EnumSkeleton
index
 
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
 
Constructor Summary
AcceptedWCFormat()
          Initializes a new WCFormat instance via reflection.
 
Method Summary
static AcceptedWCFormat from(String s)
          Returns a WCFormat that maps to the incoming symbolic name.
static AcceptedWCFormat from(String s, AcceptedWCFormat dflt)
          Same as from(String) but with a default value if supplied value does not match any known WCFormat's name.
 String[] getValues()
          Return the legitimate values for this WCFormat selector.
 
Methods inherited from class com.idaremedia.antx.parameters.EnumSkeleton
equals, hashCode, stringFrom
 
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRE_SVN14

public static final AcceptedWCFormat PRE_SVN14
Singleton "pre-svn14" choice.


SVN_14

public static final AcceptedWCFormat SVN_14
Singleton "svn14" choice.


DEFAULT

public static final AcceptedWCFormat DEFAULT
Singleton "default" choice.

Constructor Detail

AcceptedWCFormat

public AcceptedWCFormat()
Initializes a new WCFormat instance via reflection.

Method Detail

getValues

public String[] getValues()
Return the legitimate values for this WCFormat selector.


from

public static final AcceptedWCFormat from(String s)
Returns a WCFormat that maps to the incoming symbolic name. Will return null if no match.

Parameters:
s - symbolic name (or actual name of Enum).
Returns:
tag or null if s not recognized.

from

public static final AcceptedWCFormat from(String s,
                                          AcceptedWCFormat dflt)
Same as from(String) but with a default value if supplied value does not match any known WCFormat's name.

Parameters:
s - the symbolic name to be matched
dflt - the default WCFormat if necessary

AntXtras/Svn4Ant-1.1.0

Copyright (c) 2005-2008 Sandbox Software MC. All Rights Reserved.