org.mindswap.rdfparser.rdf
Class RDFClassImpl

java.lang.Object
  |
  +--org.mindswap.rdfparser.rdf.RDFResource
        |
        +--org.mindswap.rdfparser.rdf.RDFClass
              |
              +--org.mindswap.rdfparser.rdf.RDFClassImpl
All Implemented Interfaces:
java.lang.Cloneable, RDFConsts, java.io.Serializable

public class RDFClassImpl
extends RDFClass

See Also:
Serialized Form

Fields inherited from interface org.mindswap.rdfparser.consts.RDFConsts
OLD_DAMLURL, RDF, RDF_About, RDF_AboutEach, RDF_AboutEachPrefix, RDF_Alt, RDF_Bag, RDF_BagID, RDF_Class, RDF_Comment, RDF_ConstraintProperty, RDF_Description, RDF_Domain, RDF_First, RDF_ID, RDF_IsDefinedBy, RDF_Label, RDF_Li, RDF_Nil, RDF_NodeID, RDF_Object, RDF_ParseType, RDF_Predicate, RDF_Property, RDF_Range, RDF_Resource, RDF_Rest, RDF_SeeAlso, RDF_Seq, RDF_SubClass, RDF_Subject, RDF_SubProperty, RDF_TERMS, RDF_Type, RDF_Value, RDFSURL, RDFURL
 
Constructor Summary
RDFClassImpl(RDFClass c)
           
 
Method Summary
 java.lang.Object clone()
          Makes a copy of this object.

 org.mindswap.n3.ntriples.NTripleList getNTriples(Namespaces ns)
          Return a list of NTriples that are equivalent to this resource.

 java.util.Vector getTriples(java.lang.String subject, Namespaces ns)
          Return a list of generic Triples that are equivalent to this resource.

 java.lang.String getType()
          Returns the type of this object as a string.

 boolean hasSuperClass(java.lang.String parent)
           
 boolean isEnumeration()
           
 boolean isValidInstance()
           
 RDFClassImpl pickOneOf(javax.swing.JFrame parent)
           
 void setProperty(RDFPropertyImpl pi)
           
 void setType(java.lang.String s)
           
 java.lang.String toRDF(Namespaces ns, int indent)
          Returns the RDF representation of this class as a String

 
Methods inherited from class org.mindswap.rdfparser.rdf.RDFClass
addNode, createInstance, equals, getNTriples, getProperties, getPropertyById, getPropertyByType, getPropertyByType, getSameClasses, getSuperClasses, hasAncestor, hasAncestor, listProperties, merge, setProperty, validate
 
Methods inherited from class org.mindswap.rdfparser.rdf.RDFResource
addAttribute, addAttributes, addEquivalentTo, addNodes, getAttributeByName, getAttributes, getComment, getEquivalentTos, getFriendlyId, getFriendlyType, getId, getLabel, getNodes, getNTriples, getResourceByType, getTriples, getURI, removeEquivalentTo, setAttributes, setComment, setEquivalentTos, setId, setLabel, toRDF, toRDF, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFClassImpl

public RDFClassImpl(RDFClass c)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: RDFResource
Makes a copy of this object.

Overrides:
clone in class RDFClass
Following copied from class: org.mindswap.rdfparser.rdf.RDFResource
Returns:
A copy of this object

setProperty

public void setProperty(RDFPropertyImpl pi)

getType

public java.lang.String getType()
Description copied from class: RDFResource
Returns the type of this object as a string.

Overrides:
getType in class RDFClass
Following copied from class: org.mindswap.rdfparser.rdf.RDFResource
Returns:
the object's type
See Also:
XMLConsts, RDFConsts, DAMLConsts, OWLConsts

setType

public void setType(java.lang.String s)

toRDF

public java.lang.String toRDF(Namespaces ns,
                              int indent)
Description copied from class: RDFResource
Returns the RDF representation of this class as a String

Overrides:
toRDF in class RDFClass
Following copied from class: org.mindswap.rdfparser.rdf.RDFResource
Returns:
The string RDF representation
See Also:
RDFResource.toRDF(), RDFResource.toRDF(org.mindswap.xmlparser.Namespaces)

isValidInstance

public boolean isValidInstance()

isEnumeration

public boolean isEnumeration()

hasSuperClass

public boolean hasSuperClass(java.lang.String parent)
Overrides:
hasSuperClass in class RDFClass

getNTriples

public org.mindswap.n3.ntriples.NTripleList getNTriples(Namespaces ns)
Description copied from class: RDFResource
Return a list of NTriples that are equivalent to this resource.

Overrides:
getNTriples in class RDFClass
Following copied from class: org.mindswap.rdfparser.rdf.RDFResource
Returns:
The NTriples that correspond to this resource
See Also:
RDFResource.getNTriples(), RDFResource.getNTriples(String, org.mindswap.xmlparser.Namespaces)

getTriples

public java.util.Vector getTriples(java.lang.String subject,
                                   Namespaces ns)
Description copied from class: RDFResource
Return a list of generic Triples that are equivalent to this resource.

Overrides:
getTriples in class RDFResource
Following copied from class: org.mindswap.rdfparser.rdf.RDFResource
Returns:
Triples that correspond to this resource
See Also:
RDFResource.getTriples(org.mindswap.xmlparser.Namespaces)

pickOneOf

public RDFClassImpl pickOneOf(javax.swing.JFrame parent)