Class VClass
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
-
- edu.cornell.mannlib.vitro.webapp.beans.VClass
-
- All Implemented Interfaces:
ResourceBean,Comparable<VClass>
- Direct Known Subclasses:
VClassJena,VClassList
public class VClass extends BaseResourceBean implements Comparable<VClass>
A Java class representing an ontology ("Vitro") class [kwg8-07/30/07]: comments [kwg8-07/30/07]: comments, naming cleanup
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcustomDisplayViewprotected StringcustomEntryFormprotected StringcustomSearchViewprotected StringcustomShortViewprotected IntegerdisplayLimitprotected IntegerdisplayRankprotected VClassGroupgroupprotected StringgroupURIprotected StringmyDescriptionInformation about the type of information expected of a member of this VClassprotected intmyEntityCountprotected StringmyExampleAn example member of this VClassprotected StringmyNameWhat this VClass is calledprotected StringmyShortDefinitionprotected StringquickEditJspprotected FloatsearchBoost-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
localName, localNameWithPrefix, namespace, pickListName, URI
-
-
Constructor Summary
Constructors Constructor Description VClass()Default constructorVClass(String uriString)Constructs the VClass with a given URIVClass(String namespace, String localName, String vclassName)Constructs the VClass from a URI that has been separated into namespace and localName components.
-
Method Summary
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.beans.BaseResourceBean
equals, getLabel, getLocalName, getLocalNameWithPrefix, getNamespace, getPickListName, getURI, hashCode, isAnonymous, setLocalName, setLocalNameWithPrefix, setNamespace, setPickListName, setURI
-
-
-
-
Field Detail
-
myName
protected String myName
What this VClass is called
-
myExample
protected String myExample
An example member of this VClass
-
myDescription
protected String myDescription
Information about the type of information expected of a member of this VClass
-
myShortDefinition
protected String myShortDefinition
-
myEntityCount
protected int myEntityCount
-
displayLimit
protected Integer displayLimit
-
quickEditJsp
protected String quickEditJsp
-
displayRank
protected Integer displayRank
-
groupURI
protected String groupURI
-
group
protected VClassGroup group
-
customEntryForm
protected String customEntryForm
-
customDisplayView
protected String customDisplayView
-
customShortView
protected String customShortView
-
customSearchView
protected String customSearchView
-
searchBoost
protected Float searchBoost
-
-
Constructor Detail
-
VClass
public VClass()
Default constructor
-
VClass
public VClass(String namespace, String localName, String vclassName)
Constructs the VClass from a URI that has been separated into namespace and localName components.- Parameters:
namespace- The name-space for the URIlocalName- The local name for this URIvclassName- The name of the VClass
-
VClass
public VClass(String uriString)
Constructs the VClass with a given URI- Parameters:
uriString- The source string with which to create this URI
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getExample
public String getExample()
-
setExample
public void setExample(String example)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String descr)
-
getShortDef
public String getShortDef()
-
setShortDef
public void setShortDef(String sd)
-
getEntityCount
public int getEntityCount()
-
setEntityCount
public void setEntityCount(int ec)
-
getDisplayLimit
public int getDisplayLimit()
-
setDisplayLimit
public void setDisplayLimit(int displayLimit)
-
getQuickEditJsp
public String getQuickEditJsp()
-
setQuickEditJsp
public void setQuickEditJsp(String quickEditJsp)
-
getDisplayRank
public int getDisplayRank()
-
setDisplayRank
public void setDisplayRank(int displayRank)
-
getGroupURI
public String getGroupURI()
-
setGroupURI
public void setGroupURI(String groupURI)
-
getGroup
public VClassGroup getGroup()
-
setGroup
public void setGroup(VClassGroup vcg)
-
getCustomEntryForm
public String getCustomEntryForm()
-
setCustomEntryForm
public void setCustomEntryForm(String s)
-
getCustomDisplayView
public String getCustomDisplayView()
-
setCustomDisplayView
public void setCustomDisplayView(String s)
-
getCustomShortView
public String getCustomShortView()
-
setCustomShortView
public void setCustomShortView(String s)
-
getCustomSearchView
public String getCustomSearchView()
-
setCustomSearchView
public void setCustomSearchView(String s)
-
getSearchBoost
public Float getSearchBoost()
-
setSearchBoost
public void setSearchBoost(Float boost)
-
isUnion
public boolean isUnion()
-
copy
public VClass copy()
Constructs the VClass as a deep copy of an existing VClass.
-
copyFields
protected void copyFields(VClass that)
-
compareTo
public int compareTo(VClass o1)
Sorts alphabetically by name- Specified by:
compareToin interfaceComparable<VClass>
-
-