org.jomc.mojo
Class PropertiesResourceType

Package class diagram package PropertiesResourceType
java.lang.Object
  extended by org.jomc.mojo.ResourceType
      extended by org.jomc.mojo.PropertiesResourceType
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
TemplateParameterResource, TransformationParameterResource, VelocityPropertyResource

public class PropertiesResourceType
extends ResourceType

Datatype describing a properties resource.

Since:
1.2
Version:
$JOMC: PropertiesResourceType.java 3880 2011-10-24 01:00:25Z schulte2005 $
Author:
Christian Schulte

Field Summary
static String PLAIN_FORMAT
          Constant for the plain properties file format.
static String XML_FORMAT
          Constant for the XML properties file format.
 
Constructor Summary
PropertiesResourceType()
          Creates a new PropertiesResourceType instance.
 
Method Summary
 PropertiesResourceType clone()
          Creates and returns a copy of this object.
 String getFormat()
          Gets the value of the format property.
static List<String> getSupportedFormats()
          Gets a list holding supported format values.
static boolean isFormatSupported(String value)
          Tests a given format value.
 void setFormat(String value)
          Sets the value of the format property.
 
Methods inherited from class org.jomc.mojo.ResourceType
getConnectTimeout, getLocation, getReadTimeout, isOptional, setConnectTimeout, setLocation, setOptional, setReadTimeout, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLAIN_FORMAT

public static final String PLAIN_FORMAT
Constant for the plain properties file format.

See Also:
Constant Field Values

XML_FORMAT

public static final String XML_FORMAT
Constant for the XML properties file format.

See Also:
Constant Field Values
Constructor Detail

PropertiesResourceType

public PropertiesResourceType()
Creates a new PropertiesResourceType instance.

Method Detail

getFormat

public final String getFormat()
Gets the value of the format property.

Returns:
The value of the format property.

setFormat

public final void setFormat(String value)
Sets the value of the format property.

Parameters:
value - The new value of the format property or null.

getSupportedFormats

public static List<String> getSupportedFormats()
Gets a list holding supported format values.

Returns:
An unmodifiable list holding supported format values.
See Also:
isFormatSupported(java.lang.String)

isFormatSupported

public static boolean isFormatSupported(String value)
Tests a given format value.

Parameters:
value - The format value to test.
Returns:
true, if the given format value is supported; false, if the given format value is not supported.
See Also:
getSupportedFormats()

clone

public PropertiesResourceType clone()
Creates and returns a copy of this object.

Overrides:
clone in class ResourceType
Returns:
A copy of this object.


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.