org.simantics.databoard.type
Class StringType
java.lang.Object
org.simantics.databoard.type.Datatype
org.simantics.databoard.type.StringType
public class StringType
- extends Datatype
Constructor Summary |
StringType()
|
StringType(java.lang.String pattern)
|
StringType(java.lang.String pattern,
java.lang.String mimeType,
Range length)
|
StringType(java.lang.String pattern,
java.lang.String mimeType,
java.lang.String length)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
pattern
public java.lang.String pattern
- Mime-Type
mimeType
public java.lang.String mimeType
length
public java.lang.String length
StringType
public StringType()
StringType
public StringType(java.lang.String pattern)
StringType
public StringType(java.lang.String pattern,
java.lang.String mimeType,
Range length)
StringType
public StringType(java.lang.String pattern,
java.lang.String mimeType,
java.lang.String length)
count
public int count()
- Description copied from class:
Datatype
- Get component type count
- Specified by:
count
in class Datatype
- Returns:
- component count
getComponentType
public Datatype getComponentType(int index)
- Description copied from class:
Datatype
- Get component type
- Specified by:
getComponentType
in class Datatype
- Parameters:
index
- component index
- Returns:
- datatype
getComponentType
public Datatype getComponentType(ChildReference path)
- Description copied from class:
Datatype
- Get component type
- Specified by:
getComponentType
in class Datatype
- Parameters:
path
- child path or null to return this.
- Returns:
- datatype
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
accept
public void accept(Datatype.Visitor1 v,
java.lang.Object obj)
- Specified by:
accept
in class Datatype
accept
public <T> T accept(Datatype.Visitor<T> v)
- Specified by:
accept
in class Datatype
getPattern
public java.lang.String getPattern()
setPattern
public void setPattern(java.lang.String pattern)
throws java.util.regex.PatternSyntaxException
- Throws:
java.util.regex.PatternSyntaxException
getMimeType
public java.lang.String getMimeType()
setMimeType
public void setMimeType(java.lang.String mimeType)
getLength
public Range getLength()
minLength
public int minLength()
maxLength
public int maxLength()
getCompiledPattern
public java.util.regex.Pattern getCompiledPattern()
- Get compiled reg exp pattern
- Returns:
- pattern or null
setLength
public void setLength(java.lang.String length)
setLength
public void setLength(Range range)