public class ContextPropertyInfo extends Object implements Comparable<ContextPropertyInfo>, Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
hidden |
protected boolean |
multivalued |
protected String |
name |
protected com.hp.hpl.jena.rdf.model.Property |
p |
protected boolean |
structured |
protected String |
type |
protected String |
uri |
Constructor and Description |
---|
ContextPropertyInfo(String uri,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addType(com.hp.hpl.jena.rdf.model.RDFNode value)
Record the type of a sample value, if there is a clash with prior type then default to rdfs:Resource
|
ContextPropertyInfo |
clone()
Clone this Prop -- used by Context.clone() to avoid updating
a shared Context object.
|
int |
compareTo(ContextPropertyInfo o)
Compare on names to permit sorting.
|
String |
diff(ContextPropertyInfo b) |
boolean |
equals(Object other) |
String |
getName()
The shortened name to use in serialization
|
com.hp.hpl.jena.rdf.model.Property |
getProperty(com.hp.hpl.jena.rdf.model.Model m)
Get the corresponding RDF property, may cache
|
String |
getSerialisationName() |
String |
getType()
Returns the assumed range of the property as a URI.
|
String |
getURI()
The absolute URI of the property
|
int |
hashCode() |
boolean |
isHidden() |
boolean |
isMultivalued()
True if the property should be treated as multi-valued
|
boolean |
isStructured() |
void |
setHidden(boolean hidden) |
void |
setMultivalued(boolean multivalued) |
void |
setName(String name) |
void |
setStructured(boolean b) |
void |
setType(String type) |
String |
toString() |
protected final String uri
protected boolean multivalued
protected String name
protected boolean hidden
protected boolean structured
protected String type
protected com.hp.hpl.jena.rdf.model.Property p
public String diff(ContextPropertyInfo b)
public ContextPropertyInfo clone()
public boolean isHidden()
public void setHidden(boolean hidden)
public void setStructured(boolean b)
public boolean isStructured()
public String getURI()
public String getName()
public String getSerialisationName()
public boolean isMultivalued()
public void setName(String name)
public void setMultivalued(boolean multivalued)
public void setType(String type)
public void addType(com.hp.hpl.jena.rdf.model.RDFNode value)
public String getType()
public com.hp.hpl.jena.rdf.model.Property getProperty(com.hp.hpl.jena.rdf.model.Model m)
public int compareTo(ContextPropertyInfo o)
compareTo
in interface Comparable<ContextPropertyInfo>
Copyright © 2014. All Rights Reserved.