Package org.apache.jena.rdf.model.impl
Class PropertyImpl
- java.lang.Object
-
- org.apache.jena.enhanced.Polymorphic<RDFNode>
-
- org.apache.jena.enhanced.EnhNode
-
- org.apache.jena.rdf.model.impl.ResourceImpl
-
- org.apache.jena.rdf.model.impl.PropertyImpl
-
- All Implemented Interfaces:
FrontsNode
,Property
,RDFNode
,Resource
public class PropertyImpl extends ResourceImpl implements Property
An implementation of Property.
-
-
Field Summary
Fields Modifier and Type Field Description static Implementation
factory
-
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
rdfNodeFactory
-
-
Constructor Summary
Constructors Constructor Description PropertyImpl(java.lang.String uri)
Creates new PropertyImplPropertyImpl(java.lang.String nameSpace, java.lang.String localName)
PropertyImpl(java.lang.String nameSpace, java.lang.String localName, int ordinal, ModelCom m)
PropertyImpl(java.lang.String nameSpace, java.lang.String localName, ModelCom m)
PropertyImpl(java.lang.String uri, ModelCom m)
PropertyImpl(Node n, EnhGraph m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrdinal()
Returns the ordinal value of a containment property.Property
inModel(Model m)
Override RDFNode.inModel() to produce a statically-typed Resource in the given Model.boolean
isProperty()
-
Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWith
-
Methods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAs
-
Methods inherited from class org.apache.jena.enhanced.Polymorphic
addView, supports
-
Methods inherited from interface org.apache.jena.graph.FrontsNode
asNode
-
Methods inherited from interface org.apache.jena.rdf.model.Property
getLocalName, getNameSpace
-
Methods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWith
-
Methods inherited from interface org.apache.jena.rdf.model.Resource
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
-
-
-
-
Field Detail
-
factory
public static final Implementation factory
-
-
Constructor Detail
-
PropertyImpl
public PropertyImpl(java.lang.String uri)
Creates new PropertyImpl
-
PropertyImpl
public PropertyImpl(java.lang.String nameSpace, java.lang.String localName)
-
PropertyImpl
public PropertyImpl(java.lang.String uri, ModelCom m)
-
PropertyImpl
public PropertyImpl(java.lang.String nameSpace, java.lang.String localName, ModelCom m)
-
PropertyImpl
public PropertyImpl(java.lang.String nameSpace, java.lang.String localName, int ordinal, ModelCom m)
-
-
Method Detail
-
inModel
public Property inModel(Model m)
Description copied from interface:Resource
Override RDFNode.inModel() to produce a statically-typed Resource in the given Model.
-
isProperty
public boolean isProperty()
- Specified by:
isProperty
in interfaceProperty
-
getOrdinal
public int getOrdinal()
Description copied from interface:Property
Returns the ordinal value of a containment property.RDF containers use properties of the form _1, _2, _3 etc to represent the containment relationship between the container and the objects it contains. When invoked on such a containment property, this method returns the integer part of the property name. When invoked on other properties, it returns 0.
- Specified by:
getOrdinal
in interfaceProperty
- Returns:
- The ordinal value of a containment property, or 0 otherwise.
-
-