biz.c24.io.api.data
Class URISourcedEnumeration

java.lang.Object
  extended by biz.c24.io.api.data.SourcedEnumeration
      extended by biz.c24.io.api.data.URISourcedEnumeration
All Implemented Interfaces:
Enumeration, ModelComponent, Validator, Serializable

public class URISourcedEnumeration
extends SourcedEnumeration

An enumeration sourced from a URI.

See Also:
Serialized Form

Constructor Summary
URISourcedEnumeration(String rootClassName, Source source, XPathStatement xpath, boolean trim, ClassLoader classLoader, URI uri)
          Creates a new instance.
 
Method Summary
 String getErrorCode()
          Returns the error code for this enumeration.
 URI getUri()
          Returns the uri locating the file containing the enumeration values.
 
Methods inherited from class biz.c24.io.api.data.SourcedEnumeration
getAnnotation, getAnnotation, getClassLoader, getCount, getIndex, getName, getName, getRootClassName, getSource, getValue, getXPath, init, isErrored, isInitialized, isTrim, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URISourcedEnumeration

public URISourcedEnumeration(String rootClassName,
                             Source source,
                             XPathStatement xpath,
                             boolean trim,
                             ClassLoader classLoader,
                             URI uri)
Creates a new instance.

Parameters:
rootClassName - The class name of the root element / type.
source - The source to be used to parse the data.
xpath - The xpath to select the values used for the enumeration.
trim - Whether to trim whitespace from the returned values.
classLoader - The class loader to use to load the root class.
uri - The uri locating the file containing the enumeration values.
Method Detail

getUri

public URI getUri()
Returns the uri locating the file containing the enumeration values.

Returns:
The uri.

getErrorCode

public String getErrorCode()
Description copied from interface: Enumeration
Returns the error code for this enumeration.

Returns:
The error code.


C24 Technologies © 2002-2012: All Rights Reserved.