railo.runtime.op
Interface Castable
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- Application, Argument, Array, Caller, CatchBlock, CGI, Client, Cluster, Collection, CollectionPlus, Component, ComponentAccess, ComponentPro, ComponentScope, Cookie, Form, FunctionValue, Local, MemoryScope, Objects, Query, QueryColumn, QueryColumnPro, QueryTable, Request, Scope, Server, Session, SharedScope, StorageScope, Struct, Threads, TimeSpan, Undefined, URL, URLForm, UserScope, Variables, XMLStruct
- All Known Implementing Classes:
- ApplicationImpl, ArgumentImpl, ArgumentIntKey, ArgumentThreadImpl, ArrayImpl, ArrayImplNS, ArraySupport, CallerImpl, CastableArray, CastableStruct, CatchBlockImpl, CFCProxy, CGIImpl, ClientCache, ClientCookie, ClientDatasource, ClientFile, ClientMemory, Closure, ClusterNotSupported, ClusterWrap, CollectionStruct, COMObject, ComponentAccessProxy, ComponentImpl, ComponentProxy, ComponentScopeShadow, ComponentScopeThis, ComponentWrap, CookieImpl, Date, DateImpl, DateTime, DateTimeImpl, DebugQueryColumn, DoubleStruct, Excel, FeedStruct, FileStreamWrapper, FileStreamWrapperRead, FileStreamWrapperReadBinary, FileStreamWrapperReadWrite, FileStreamWrapperWrite, FormImpl, FunctionValueImpl, HttpSessionBindingListenerStruct, Image, JavaObject, JavaProxy, JSession, KeyImpl, ListAsArray, LocalImpl, LocalNotSupportedScope, MapAsStruct, ModeObjectWrap, Null, ObjectStruct, PDFDocument, QueryCacheQuery, QueryCacheQueryColumn, QueryColumnImpl, QueryColumnRef, QueryImpl, ReadOnlyStruct, RequestImpl, RPCClient, ScopeSupport, ServerImpl, SessionCache, SessionCookie, SessionDatasource, SessionFile, SessionMemory, SimpleDumpData, SimpleQuery, SimpleQueryColumn, StorageScopeCache, StorageScopeCookie, StorageScopeDatasource, StorageScopeFile, StorageScopeImpl, StorageScopeMemory, StructImpl, StructImplKey, StructImplString, StructSupport, SuperComponent, SVArray, SVStruct, ThreadsImpl, Time, TimeImpl, TimeSpanImpl, TOArray, TODateTime, TOObjects, TOQuery, TOStruct, TOUDF, UndefinedImpl, UrlFormImpl, URLImpl, VariablesImpl, XMLAttributes, XMLAttrStruct, XMLCDATASectionStruct, XMLDocumentStruct, XMLElementStruct, XMLMultiElementArray, XMLMultiElementStruct, XMLNodeList, XMLNodeStruct, XMLTextStruct
public interface Castable
- extends Serializable
Interface to define a Object as Castable, for Railo Type Casts
castToString
String castToString()
throws PageException
- cast the castable value to a string, other than the Method toString, this Method can throw a Exception
- Returns:
- String representation of the Object
- Throws:
PageException
castToString
String castToString(String defaultValue)
- cast the castable value to a string, return the default value, when the method is not castable
- Returns:
- String representation of the Object
- Throws:
PageException
castToBooleanValue
boolean castToBooleanValue()
throws PageException
- cast the castable value to a boolean value
- Returns:
- boolean Value representation of the Object
- Throws:
PageException
castToBoolean
Boolean castToBoolean(Boolean defaultValue)
- cast the castable value to a boolean value
- Returns:
- boolean Value representation of the Object
- Throws:
PageException
castToDoubleValue
double castToDoubleValue()
throws PageException
- cast the castable value to a double value
- Returns:
- double Value representation of the Object
- Throws:
PageException
castToDoubleValue
double castToDoubleValue(double defaultValue)
- cast the castable value to a double value
- Returns:
- double Value representation of the Object
- Throws:
PageException
castToDateTime
DateTime castToDateTime()
throws PageException
- cast the castable value to a date time object
- Returns:
- date time representation of the Object
- Throws:
PageException
castToDateTime
DateTime castToDateTime(DateTime defaultValue)
- cast the castable value to a date time object
- Parameters:
defaultValue
- returned when it is not possible to cast to a dateTime object
- Returns:
- date time representation of the Object
- Throws:
PageException
compareTo
int compareTo(String str)
throws PageException
- Throws:
PageException
compareTo
int compareTo(boolean b)
throws PageException
- Throws:
PageException
compareTo
int compareTo(double d)
throws PageException
- Throws:
PageException
compareTo
int compareTo(DateTime dt)
throws PageException
- Throws:
PageException
Copyright © 2012 Railo