Package com.sodius.oslc.app.dng.model
Class AttributeType
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.app.dng.model.AttributeType
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcName("AttributeType") @OslcNamespace("http://www.ibm.com/xmlns/rdm/rdf/") @OslcResourceShape(title="AttributeType Resource Shape", describes="http://www.ibm.com/xmlns/rdm/rdf/AttributeType") public class AttributeType extends AbstractResource
Represents an attribute type defined in DOORS Next. The attribute type notably gives access to enum entries, which are the available literals in case the type is an enumeration.- Since:
- 1.1.0
- See Also:
GetAttributeType
-
-
Constructor Summary
Constructors Constructor Description AttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
EnumEntry[]
getEnumEntries()
EnumEntry
getEnumEntry(URI literal)
Returns the enum entry matching the provided literal URI, if any.String
getTitle()
URI
getValueType()
void
setDescription(String description)
void
setEnumEntries(EnumEntry[] enumEntries)
void
setTitle(String title)
void
setValueType(URI valueType)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
setTitle
public void setTitle(String title)
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcTitle("Description") @OslcValueType(XMLLiteral) public String getDescription()
-
setDescription
public void setDescription(String description)
-
getValueType
@OslcPropertyDefinition("http://www.ibm.com/xmlns/rdm/rdf/valueType") public URI getValueType()
-
setValueType
public void setValueType(URI valueType)
-
getEnumEntries
@OslcPropertyDefinition("http://www.ibm.com/xmlns/rdm/rdf/enumEntries") @OslcRepresentation(Inline) @OslcRdfCollectionType(collectionType="Seq") public EnumEntry[] getEnumEntries()
-
getEnumEntry
public EnumEntry getEnumEntry(URI literal)
Returns the enum entry matching the provided literal URI, if any.- Parameters:
literal
- the URI of an enum entry, defined for this enumeration attribute type.- Returns:
- the enum entry matching the provided literal URI,
null
if none.
-
setEnumEntries
public void setEnumEntries(EnumEntry[] enumEntries)
-
-