org.eaglei.model
Class EIBasicInstance

java.lang.Object
  extended by org.eaglei.model.EIResource
      extended by org.eaglei.model.EIBasicInstance
All Implemented Interfaces:
java.io.Serializable

public class EIBasicInstance
extends EIResource
implements java.io.Serializable

Author:
Daniela Bourges-Waldegg Objects of this class represent a bare-bones instance of an eagle-i ontology class: - an instance uri, a type and a label - object properties and their values (URIs) - datatype properties and their values These objects do not contain repository metadata or any other property outside of the EI ontology. EIBasicInstance objects are always contained in an EIInstance object, either as the main instance or as embedded instances. They are created only with minimal information (uri and label), other properties are set via their container EIInstance
See Also:
Serialized Form

Method Summary
 void addDatattypeProperty(EIEntity property, java.lang.String value)
           
 void addEIType(EIEntity eiType)
           
 void addObjectProperty(EIEntity property, EIEntity value)
           
 int compareTo(java.lang.Object o)
           
static EIBasicInstance createEmptyBasicInstance(EIEntity instanceEntity)
           
 EIEntity findPropertyForInstance(EIEntity instanceEntity)
           
 java.util.Map<EIEntity,java.util.Set<java.lang.String>> getDatatypeProperties()
           
 java.util.Set<java.lang.String> getDatatypeProperty(EIEntity property)
           
 EIClass getInstanceClass()
           
 java.lang.String getInstanceLabel()
           
 EIEntity getInstanceType()
           
 EIURI getInstanceURI()
           
 java.util.Map<EIEntity,java.util.Set<EIEntity>> getObjectProperties()
           
 java.util.Set<EIEntity> getObjectProperty(EIEntity property)
           
 java.util.List<EIEntity> getOtherEITypes()
           
 EIClass getRootSuperType()
           
 boolean hasAllRequiredProperties()
           
 boolean isEmbedded()
           
 void replaceDatatypePropertyAllValues(EIEntity property, java.util.Set<java.lang.String> values)
           
 void replaceDatatypePropertyValue(EIEntity property, java.lang.String oldValue, java.lang.String newValue)
           
 void replaceObjectPropertyAllValues(EIEntity property, java.util.Set<EIEntity> values)
           
 void replaceObjectPropertyValue(EIEntity property, EIURI oldValue, EIEntity newValue)
           
 void setEmbedded(boolean isEmbedded)
           
 void setHasAllRequiredProperties(boolean instanceHasAllRequiredProperties)
           
 void setInstanceClass(EIClass instanceClass)
           
 void setInstanceLabel(java.lang.String instanceLabel)
           
 void setInstanceType(EIEntity instanceType)
           
 void setOtherEITypes(java.util.List<EIEntity> eiTypes)
           
 void setRootSuperType(EIClass rootSuperType)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eaglei.model.EIResource
equals, getEntity, hashCode, setLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createEmptyBasicInstance

public static EIBasicInstance createEmptyBasicInstance(EIEntity instanceEntity)

getInstanceClass

public EIClass getInstanceClass()

setInstanceClass

public void setInstanceClass(EIClass instanceClass)

getInstanceURI

public EIURI getInstanceURI()

getInstanceLabel

public java.lang.String getInstanceLabel()

setInstanceLabel

public void setInstanceLabel(java.lang.String instanceLabel)

getInstanceType

public EIEntity getInstanceType()

setInstanceType

public void setInstanceType(EIEntity instanceType)

getObjectProperties

public java.util.Map<EIEntity,java.util.Set<EIEntity>> getObjectProperties()

addObjectProperty

public void addObjectProperty(EIEntity property,
                              EIEntity value)

getObjectProperty

public java.util.Set<EIEntity> getObjectProperty(EIEntity property)

replaceObjectPropertyValue

public void replaceObjectPropertyValue(EIEntity property,
                                       EIURI oldValue,
                                       EIEntity newValue)

replaceObjectPropertyAllValues

public void replaceObjectPropertyAllValues(EIEntity property,
                                           java.util.Set<EIEntity> values)

getDatatypeProperties

public java.util.Map<EIEntity,java.util.Set<java.lang.String>> getDatatypeProperties()

addDatattypeProperty

public void addDatattypeProperty(EIEntity property,
                                 java.lang.String value)

getDatatypeProperty

public java.util.Set<java.lang.String> getDatatypeProperty(EIEntity property)

replaceDatatypePropertyValue

public void replaceDatatypePropertyValue(EIEntity property,
                                         java.lang.String oldValue,
                                         java.lang.String newValue)

replaceDatatypePropertyAllValues

public void replaceDatatypePropertyAllValues(EIEntity property,
                                             java.util.Set<java.lang.String> values)

addEIType

public void addEIType(EIEntity eiType)

setOtherEITypes

public void setOtherEITypes(java.util.List<EIEntity> eiTypes)

getOtherEITypes

public java.util.List<EIEntity> getOtherEITypes()

compareTo

public int compareTo(java.lang.Object o)

toString

public java.lang.String toString()
Overrides:
toString in class EIResource

setHasAllRequiredProperties

public void setHasAllRequiredProperties(boolean instanceHasAllRequiredProperties)

hasAllRequiredProperties

public boolean hasAllRequiredProperties()

isEmbedded

public boolean isEmbedded()

setEmbedded

public void setEmbedded(boolean isEmbedded)

getRootSuperType

public EIClass getRootSuperType()

setRootSuperType

public void setRootSuperType(EIClass rootSuperType)

findPropertyForInstance

public EIEntity findPropertyForInstance(EIEntity instanceEntity)


Copyright © 2009-2011 Eagle-I. All Rights Reserved.