public class TypeConst
extends org.ai_heuristic.util.AiTypeConst
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BINARYFILE
Defines a Binary file type
|
static java.lang.String |
BYTEARRAY
Defines a ByteArray class parameter type
|
static java.lang.String |
BYTELIST
Defines a byte list tag name
|
static java.lang.String |
DATE
Defines a Date tag name
|
static java.lang.String |
HTMLFILE
Defines an HTML file type
|
static java.lang.String |
LISTCONTAINER
Defines an info resource list container type
|
static java.lang.String |
QUERYCONTAINER
Defines an info resource query container type
|
static java.lang.String |
RANDOMCONTAINER
Defines an info resource random container type
|
static java.lang.String |
RESOURCECONTAINER
Defines an info resource container type
|
static java.lang.String |
STREAMXML
Defines a online feed type in xml format
|
static java.lang.String |
TEXTFILE
Defines a Text file type
|
static java.lang.String |
URI
Defines a URI type, to include file paths
|
static java.lang.String |
VOID
Defines a Void class parameter type
|
static java.lang.String |
XMLFILE
Defines an XML file type
|
ARRAY, ARRAYLIST, BOOLEAN, BOOLEANOBJ, BYTE, BYTEOBJ, BYTEOBJCODE, CHARACTER, CHARACTEROBJ, DOUBLE, DOUBLEOBJ, ELEMENT, FLOAT, FLOATOBJ, HASHMAP, HASHTABLE, INTEGER, INTEGEROBJ, LINKEDHASHMAP, LINKEDLIST, LONG, LONGOBJ, OBJECT, SHORT, SHORTOBJ, STACK, STRING, TREE, URL, VECTOR
Constructor and Description |
---|
TypeConst() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isBinaryType(java.lang.String dataType)
Return true if the data is a binary type.
|
static boolean |
isHtml(java.lang.String dataType)
Return true if the data type indicates an html or xhtml type.
|
static boolean |
isResourceContainer(java.lang.String dataType)
Return true if the data type indicates an info resource container.
|
static boolean |
isTextType(java.lang.String dataType)
Return true if the data is a text file type, but not xml or any of the other
recognised ones.
|
static boolean |
isURL(java.lang.String dataType)
Return true if the data type indicates an html, xhtml or a remote URL type.
|
static boolean |
isXmlType(java.lang.String dataType)
Return true if the data is a xml type.
|
static java.lang.String |
resourceContainerType(java.lang.String dataType)
Get the most appropriate info resource type for the specified data type.
|
public static final java.lang.String VOID
public static final java.lang.String DATE
public static final java.lang.String BYTELIST
public static final java.lang.String BINARYFILE
public static final java.lang.String TEXTFILE
public static final java.lang.String XMLFILE
public static final java.lang.String HTMLFILE
public static final java.lang.String URI
public static final java.lang.String BYTEARRAY
public static final java.lang.String STREAMXML
public static final java.lang.String RESOURCECONTAINER
public static final java.lang.String LISTCONTAINER
public static final java.lang.String RANDOMCONTAINER
public static final java.lang.String QUERYCONTAINER
public static boolean isBinaryType(java.lang.String dataType)
dataType
- the data type to check, including file type.public static boolean isXmlType(java.lang.String dataType)
dataType
- the data type to check, including file type.public static boolean isTextType(java.lang.String dataType)
dataType
- the data type to check, including file type.public static boolean isHtml(java.lang.String dataType)
dataType
- the data type.public static boolean isURL(java.lang.String dataType)
dataType
- the data type.public static boolean isResourceContainer(java.lang.String dataType)
dataType
- the data type.public static java.lang.String resourceContainerType(java.lang.String dataType)
dataType
- the data type, for example, Integer.class.getName(),
String.class.getName(), URL.class.getName(). Basic types are covered.
An HTML source should be represented by URL.class.getName(). Container types
are also returned.