public class XMLType extends Object
Constructor and Description |
---|
XMLType(String xml,
XFTSchema s)
if the xml string has a ':' then the characters before it will become the localPrefix, and
the characters after it will become the local Field.
|
Modifier and Type | Method and Description |
---|---|
static String |
CleanType(String xml)
Removes any characters before (and including) the ':' character.
|
String |
getForeignPrefix()
If the XMLType refers to a basic data type or a locally defined data type (based on
the schema's target namespace prefix), then the localPrefix is returned, else the
valid original prefix is found and returned.
|
String |
getForeignXMLNS() |
String |
getFullForeignType()
foreignPrefix + ':' + localType
|
String |
getFullLocalType()
localPrefix + ':' + localType
|
String |
getLocalPrefix()
Locally defined prefix for this dataType.
|
String |
getLocalType()
Locally defined dataType
|
String |
getLocalXMLNS() |
static String |
GetPrefix(String xml)
Removes any characters before (and including) the ':' character.
|
XFTSchema |
getSchema() |
String |
getText(boolean withPrefix) |
static boolean |
IsDate(String t) |
Object |
parseValue(Object o) |
static Object |
ParseValue(Object o,
String type) |
void |
setLocalPrefix(String string)
Locally defined prefix for this dataType.
|
void |
setLocalType(String string)
Locally defined dataType
|
void |
setSchema(XFTSchema schema) |
String |
toString() |
public XMLType(String xml, XFTSchema s)
xml
- s
- public static String CleanType(String xml)
xml
- public static boolean IsDate(String t)
public static String GetPrefix(String xml)
xml
- public String getLocalPrefix()
public String getLocalType()
public void setLocalPrefix(String string)
string
- public void setLocalType(String string)
string
- public String getFullLocalType()
public String getFullForeignType()
public XFTSchema getSchema()
public void setSchema(XFTSchema schema)
schema
- public String getForeignPrefix()
public String getLocalXMLNS()
public String getForeignXMLNS()
public String getText(boolean withPrefix)
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.