public class TypedNamedEntity extends NamedEntity implements TypedSpan
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
types |
uri, uris
length, startPosition
Constructor and Description |
---|
TypedNamedEntity(int startPosition,
int length,
Set<String> uris,
Set<String> types) |
TypedNamedEntity(int startPosition,
int length,
String uri,
Set<String> types) |
TypedNamedEntity(TypedNamedEntity typedNamedEntity) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object obj) |
Set<String> |
getTypes() |
int |
hashCode() |
void |
setTypes(Set<String> types) |
String |
toString() |
addUri, containsUri, getUri, getUris, setUri, setUris
getLength, getStartPosition, setLength, setStartPosition
finalize, getClass, notify, notifyAll, wait, wait, wait
getLength, getStartPosition, setLength, setStartPosition
public TypedNamedEntity(int startPosition, int length, String uri, Set<String> types)
public TypedNamedEntity(int startPosition, int length, Set<String> uris, Set<String> types)
public TypedNamedEntity(TypedNamedEntity typedNamedEntity)
public Set<String> getTypes()
getTypes
in interface TypedMarking
public void setTypes(Set<String> types)
setTypes
in interface TypedMarking
public String toString()
toString
in interface Marking
toString
in class NamedEntity
public int hashCode()
hashCode
in class NamedEntity
public boolean equals(Object obj)
equals
in class NamedEntity
public Object clone() throws CloneNotSupportedException
clone
in interface Marking
clone
in class NamedEntity
CloneNotSupportedException
Copyright © 2016. All rights reserved.