|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.profile.ProfileElement
org.apache.oodt.profile.RangedProfileElement
public class RangedProfileElement
Ranged profile element. Objects of this class are elements of a profile that represent a range of values.
| Field Summary | |
|---|---|
protected String |
max
Maximum value. |
protected String |
min
Minimum value. |
| Fields inherited from class org.apache.oodt.profile.ProfileElement |
|---|
comments, desc, id, maxOccurrence, name, obligation, profile, synonyms, type, unit |
| Constructor Summary | |
|---|---|
RangedProfileElement(Profile profile)
Create blank profile attributes belonging to the given profile. |
|
RangedProfileElement(Profile profile,
String name,
String id,
String desc,
String type,
String unit,
List synonyms,
boolean obligation,
int maxOccurrence,
String comment,
String min,
String max)
Create a profile element from constituent attributes. |
|
| Method Summary | |
|---|---|
protected void |
addElementSpecificProperties(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource element,
ProfileAttributes profAttr,
URI uri)
Add the statements specific to this kind of profile element to an RDF model. |
protected void |
addValues(Node node)
Add the values of this element to the given node. |
String |
getMaxValue()
Get my maximum value. |
String |
getMinValue()
Get my minimum value. |
List |
getValues()
Get legal values. |
protected boolean |
isEnumerated()
Tell if this element is of the enumerated kind. |
void |
setMaxValue(String max)
|
void |
setMinValue(String min)
|
| Methods inherited from class org.apache.oodt.profile.ProfileElement |
|---|
clone, compareTo, createProfElementDocument, createProfileElement, elements, equals, getComments, getDescription, getID, getMaxOccurrence, getName, getProfile, getSynonyms, getType, getUnit, hashCode, isObligatory, profiles, setComments, setDescription, setID, setMaxOccurrence, setName, setObligation, setProfile, setType, setUnit, toString, toXML, toXMLWithoutValues |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String min
protected String max
| Constructor Detail |
|---|
public RangedProfileElement(Profile profile)
public RangedProfileElement(Profile profile,
String name,
String id,
String desc,
String type,
String unit,
List synonyms,
boolean obligation,
int maxOccurrence,
String comment,
String min,
String max)
profile - Profile to which this element belongs.name - Required name of the element.id - ID of the element.desc - Long description of the element.type - Data type of the element.unit - Units.synonyms - Collection of element IDs (String) that are synonyms for this element.obligation - True if this is a required elementmaxOccurrence - Maximum number of occurrences of this element.comment - Any comments about this element.min - Minimum value.max - Maximum value.| Method Detail |
|---|
protected boolean isEnumerated()
ProfileElement
isEnumerated in class ProfileElementboolean value.public void setMinValue(String min)
public void setMaxValue(String max)
protected void addValues(Node node)
throws DOMException
ProfileElement
addValues in class ProfileElementnode - The node to add to.
DOMException - If an error occurs creating the XML nodes.public String getMinValue()
ProfileElement
getMinValue in class ProfileElementpublic String getMaxValue()
ProfileElement
getMaxValue in class ProfileElementpublic List getValues()
ProfileElement
getValues in class ProfileElementStrings).
protected void addElementSpecificProperties(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource element,
ProfileAttributes profAttr,
URI uri)
ProfileElement
addElementSpecificProperties in class ProfileElementmodel - The model.element - This element, as an RDF resource.profAttr - The attributes of the element's profile.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||