|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.text.Format
com.davisor.data.Type
com.davisor.data.TextType
com.davisor.data.URLTextType
com.davisor.data.URLTextOutputType
URLTextOuputType defines a data type that writes text strings as URL-encoded, but always parses them as plain text.
TextData,
URLTextType,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class java.text.Format |
java.text.Format.Field |
| Field Summary | |
static java.lang.String |
TYPENAME
Type name ("OURLText"). |
| Fields inherited from class com.davisor.data.URLTextType |
DEFAULT |
| Fields inherited from class com.davisor.data.Type |
METADATA_GROUP, METADATA_NAME, METADATA_PARENT, METADATA_SUBCHANNELS |
| Constructor Summary | |
|
URLTextOutputType()
Default constructor. |
|
URLTextOutputType(java.lang.String dataName)
Creates a new default type with no identity. |
|
URLTextOutputType(java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int maxLength,
java.lang.String prefix)
Creates a new URL output text type. |
|
URLTextOutputType(java.lang.String dataName,
java.lang.String id,
java.lang.String format)
Constructs a new type. |
protected |
URLTextOutputType(java.lang.String typeName,
java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int maxLength,
java.lang.String prefix)
Creates a new URL output text type. |
|
URLTextOutputType(URLTextOutputType utot)
Copy constructor. |
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
java.lang.String |
stringValue(java.lang.String value)
URL-encodes a text string. |
| Methods inherited from class com.davisor.data.URLTextType |
check, getCompatibility, getFormat, getValueClass, setFormat, toData |
| Methods inherited from class com.davisor.data.TextType |
equals, getMaxLength, getPrefix, getSQLCode, hashCode, setMaxLength, setPrefix, stringValue, zero |
| Methods inherited from class com.davisor.data.Type |
ceil, check, compare, create, create, create, create, create, dup, floor, format, getDataName, getId, getID, getMetaData, getMetaData, getSpecs, getSQLName, getSQLName, getTypeName, isNull, parseObject, register, register, setDataName, setId, setID, setMetaData, setMetaData, setSpecs, toData, toData, toData, toString, toXML, xmlEnd, xmlStart |
| Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String TYPENAME
| Constructor Detail |
public URLTextOutputType()
public URLTextOutputType(URLTextOutputType utot)
public URLTextOutputType(java.lang.String dataName)
dataName - data name (may be null)
public URLTextOutputType(java.lang.String dataName,
java.lang.String id,
java.lang.String format)
This is the constructor the SQL type mapper Type.create(Integer,String,String,String) method will call to
create a type that matches given SQL type.
dataName - data name (may be null)id - type identity (may be null)format - type spesification (may be null)URLTextType.setFormat(java.lang.String)
public URLTextOutputType(java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int maxLength,
java.lang.String prefix)
dataName - type name (may be null)id - type identity (may be null)metaData - type meta data map (may be null)maxLength - maximum text lengthprefix - mandatory text prefix (may be null)
protected URLTextOutputType(java.lang.String typeName,
java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int maxLength,
java.lang.String prefix)
typeName - type namedataName - type name (may be null)id - type identity (may be null)metaData - type meta data map (may be null)maxLength - maximum text lengthprefix - mandatory text prefix (may be null)| Method Detail |
public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class URLTextType
public java.lang.String stringValue(java.lang.String value)
throws InvalidDataException
stringValue in class URLTextTypevalue - data string value
InvalidDataException - neverURLEncoder.encode(String),
URLTextType.stringValue(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||