Package ontopoly.model
Class DataType
- java.lang.Object
-
- ontopoly.model.Topic
-
- ontopoly.model.DataType
-
public class DataType extends Topic
Represents a datatype which can be assigned to an occurrence type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static List<DataType>
getDataTypes(TopicMap tm)
static DataType
getDefaultDataType(TopicMap tm)
LocatorIF
getLocator()
Returns the datatype locator that this datatype represents.boolean
isBinary()
Tests whether this datatype is xsd:base64Binary (binary content).boolean
isDate()
Tests whether this datatype is xsd:date.boolean
isDateTime()
Tests whether this datatype is xsd:datetime.boolean
isHTML()
Tests whether this datatype is on:datatype-html.boolean
isImage()
Tests whether this datatype is on:datatype-image.boolean
isNumber()
Tests whether this datatype is xsd:number.boolean
isString()
Tests whether this datatype is xsd:string.boolean
isURI()
Tests whether this datatype is xsd:anyUri.-
Methods inherited from class ontopoly.model.Topic
addTopicType, copyCharacteristics, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, hashCode, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString
-
-
-
-
Method Detail
-
getLocator
public LocatorIF getLocator()
Returns the datatype locator that this datatype represents.
-
isDate
public boolean isDate()
Tests whether this datatype is xsd:date.- Returns:
- true if the datatype is xsd:date.
-
isDateTime
public boolean isDateTime()
Tests whether this datatype is xsd:datetime.- Returns:
- true if the datatype is xsd:datetime.
-
isNumber
public boolean isNumber()
Tests whether this datatype is xsd:number.- Returns:
- true if the datatype is xsd:number.
-
isString
public boolean isString()
Tests whether this datatype is xsd:string.- Returns:
- true if the datatype is xsd:string.
-
isURI
public boolean isURI()
Tests whether this datatype is xsd:anyUri.- Returns:
- true if the datatype is xsd:anyUri.
-
isHTML
public boolean isHTML()
Tests whether this datatype is on:datatype-html.- Returns:
- true if the datatype is on:datatype-html.
-
isImage
public boolean isImage()
Tests whether this datatype is on:datatype-image.- Returns:
- true if the datatype is on:datatype-image.
-
isBinary
public boolean isBinary()
Tests whether this datatype is xsd:base64Binary (binary content).- Returns:
- true if the datatype is xsd:base64Binary (binary content).
-
-