org.gedcomx.vocab
Class VocabElement

java.lang.Object
  extended by org.gedcomx.vocab.VocabElement
All Implemented Interfaces:
Comparable<VocabElement>

public class VocabElement
extends Object
implements Comparable<VocabElement>

Representation of a vocabulary element


Constructor Summary
VocabElement()
           
 
Method Summary
 VocabElement addDescription(String description, String locale)
           
 VocabElement addLabel(String label, String locale)
           
 int compareTo(VocabElement o)
           
 List<TextValue> getDescriptions()
           
 String getId()
           
 List<TextValue> getLabels()
           
 Integer getPosition()
           
 String getSortName()
           
 URI getSubclass()
           
 URI getSublist()
           
 URI getType()
           
 URI getUri()
           
 void setId(String id)
           
 void setPosition(Integer position)
           
 void setSortName(String sortName)
           
 void setSubclass(URI subclass)
           
 void setSublist(URI sublist)
           
 void setType(URI type)
           
 void setUri(URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabElement

public VocabElement()
Method Detail

getId

public String getId()

setId

public void setId(String id)

getUri

public URI getUri()

setUri

public void setUri(URI uri)

getSubclass

public URI getSubclass()

setSubclass

public void setSubclass(URI subclass)

getType

public URI getType()

setType

public void setType(URI type)

getSortName

public String getSortName()

setSortName

public void setSortName(String sortName)

getLabels

public List<TextValue> getLabels()

addLabel

public VocabElement addLabel(String label,
                             String locale)

getDescriptions

public List<TextValue> getDescriptions()

addDescription

public VocabElement addDescription(String description,
                                   String locale)

getSublist

public URI getSublist()

setSublist

public void setSublist(URI sublist)

getPosition

public Integer getPosition()

setPosition

public void setPosition(Integer position)

compareTo

public int compareTo(VocabElement o)
Specified by:
compareTo in interface Comparable<VocabElement>


Copyright © 2015. All rights reserved.