|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.att.gs.codip.ograph.OGBaseOntology
An implementaiton of the OGOntology Interface that provides static instances of the OWL Classes and Properties.
Field Summary | |
protected OGOntology |
myImpl
The internal Ontology implementation. |
Constructor Summary | |
OGBaseOntology()
|
Method Summary | |
void |
addClass(OGClass theClass)
Adds the provided class to the ontology. |
void |
addDatatype(OGDatatype theDatatype)
Adds the provided data type to the ontology. |
void |
addImport(OGOntology theImport)
Adds the provided ontology to the ontology's imports. |
void |
addLiteral(OGLiteral theLiteral)
Adds the provided literal to the ontology. |
OGPropInstance |
addNewPropInstance(OGResource newPropType,
OGResource theObject)
Creates a property instantce and adds it to the resource. |
void |
addProperty(OGProperty theProperty)
Adds the provided property to the ontology. |
void |
addPropInstance(OGPropInstance thePropInstance)
Adds the provided property instance to the resource. |
void |
addResource(OGResource theResource)
Adds the provided resource to the ontology. |
void |
addType(OGResource theType)
Adds the given type to the list of multi-types. |
java.util.Iterator |
classes()
Provides a iterator for the all of the ontology's classes. |
java.util.Iterator |
classes(OGResource aType)
Provides a iterator for only the ontology's classes of the provided type. |
boolean |
containsClass(java.lang.Object theID)
Checks for the existence of a Class in this ontology whose ID matches the provided ID. |
boolean |
containsDatatype(java.lang.Object theID)
Checks for the existence of a Datatype in this ontology whose ID matches the provided ID. |
boolean |
containsImport(java.lang.Object theID)
Looks for an imported ontology in this ontology whose ID matches the provided ID. |
boolean |
containsLiteral(java.lang.Object theID)
Looks for a literal in this ontology whose ID matches the provided ID. |
boolean |
containsProperty(java.lang.Object theID)
Checks for the existence of a property in this ontology whose ID matches the provided ID. |
boolean |
containsPropInstance(java.lang.Object theID)
Checks for the existence of a property in this resource whose ID matches the provided ID. |
boolean |
containsResource(java.lang.Object theID)
Looks for a resource in this ontology whose ID matches the provided ID. |
boolean |
containsType(OGResource theType)
Type checker for multi-types. |
OGClass |
createClass()
Creates a Class in this ontology with a generated unique ID and adds the Class to the ontology. |
OGClass |
createClass(OGResource aType)
Creates a Class in this ontology with a generated unique ID, sets the Clases type to the passed in type and adds the Class to the ontology. |
OGClass |
createClass(OGResource aType,
java.lang.String theID)
Looks for, and possibilly creates, a Class in this ontology. |
OGClass |
createClass(java.lang.String theID)
Looks for, and possibilly creates, a Class in this ontology. |
OGDatatype |
createDatatype()
Creates a Datatype in this ontology with a generated unique ID and adds the Datatype to the ontology. |
OGDatatype |
createDatatype(OGResource aType)
Creates a Datatype in this ontology with a generated unique ID, sets the Clases type to the passed in type and adds the Datatype to the ontology. |
OGDatatype |
createDatatype(OGResource aType,
java.lang.String theID)
Looks for, and possibilly creates, a Datatype in this ontology. |
OGDatatype |
createDatatype(java.lang.String theID)
Looks for, and possibilly creates, a Datatype in this ontology. |
OGLiteral |
createLiteral()
Creates a Literal in this ontology with a generated unique ID and adds the Literal to the ontology. |
OGLiteral |
createLiteral(OGResource aType)
Creates a Literal in this ontology with a generated unique ID, sets the Clases type to the passed in type and adds the Literal to the ontology. |
OGLiteral |
createLiteral(OGResource aType,
java.lang.String theID)
Looks for, and possibilly creates, a Literal in this ontology. |
OGLiteral |
createLiteral(java.lang.String theID)
Looks for, and possibilly creates, a Literal in this ontology. |
OGLiteral |
createLiteralByValue(OGResource aType,
java.lang.String theValue)
Looks for, and possibilly creates, a Literal in this ontology. |
OGLiteral |
createLiteralByValue(java.lang.String theValue)
Looks for, and possibilly creates, a Literal in this ontology. |
OGProperty |
createProperty()
Creates a Property in this ontology with a generated unique ID and adds the Property to the ontology. |
OGProperty |
createProperty(OGResource aType)
Creates a Property in this ontology with a generated unique ID, sets the Clases type to the passed in type and adds the Property to the ontology. |
OGProperty |
createProperty(OGResource aType,
java.lang.String theID)
Looks for, and possibilly creates, a Property in this ontology. |
OGProperty |
createProperty(java.lang.String theID)
Looks for, and possibilly creates, a Property in this ontology. |
OGPropInstance |
createPropInstance(OGResource aType)
Creates a Property instance in this ontology with a generated unique ID, sets the Clases type to the passed in type and adds the Property to the ontology. |
OGPropInstance |
createPropInstance(OGResource aType,
java.lang.String theID)
Looks for, and possibilly creates, a Property instance in this ontology. |
java.util.Iterator |
datatypes()
Provides a iterator for the all of the ontology's data types. |
java.util.Iterator |
datatypes(OGResource aType)
Provides a iterator for only the ontology's data types of the provided type. |
OGClass |
getClass(java.lang.Object theID)
Looks for a Class in this ontology whose ID matches the provided ID. |
java.util.Collection |
getClasses(OGResource aType)
Provides a Collection of the ontology's classes of the provided type. |
java.lang.String |
getComment()
Getter method for this resource's comment string. |
OGDatatype |
getDatatype(java.lang.Object theID)
Looks for a Datatype in this ontology whose ID matches the provided ID. |
java.util.Collection |
getDatatypes(OGResource aType)
Provides a Collection of the ontology's data types of the provided type. |
java.lang.String |
getID()
Getter method for the Resources ID. |
OGOntology |
getImport(java.lang.Object theID)
Looks for an imported ontology in this ontology whose ID matches the provided ID. |
OGOntology[] |
getImports()
Accessor for the read only indexed bean property, "imports" |
java.lang.String |
getLabel()
Getter method for this resource's label string. |
OGLiteral |
getLiteral(java.lang.Object theID)
Looks for a literal in this ontology whose ID matches the provided ID. |
java.util.Collection |
getLiterals(OGResource aType)
Provides a Collection of the ontology's literals of the provided type. |
java.lang.String |
getLocalName()
Getter method for this resource's Local Name. |
java.lang.String |
getNamespace()
Getter method for this resource's Namespace. |
OGOntology |
getOntology()
Getter method for this resource's Ontology. |
java.util.Collection |
getProperties(OGResource aType)
Provides a Collection of the ontology's properties of the provided type. |
OGProperty |
getProperty(java.lang.Object theID)
Looks for a property in this ontology whose ID matches the provided ID. |
OGPropInstance |
getPropInstance(java.lang.Object theID)
Looks for a property of this resource whose ID matches the provided ID. |
OGPropInstance[] |
getPropInstances()
Accessor for the read only indexed bean property, "properties" |
java.util.Collection |
getPropInstances(OGResource aType)
Provies a Collection for all of the resource's properties that are a particular type. |
OGResource |
getResource(java.lang.Object theID)
Looks for a resource in this ontology whose ID matches the provided ID. |
java.util.Collection |
getResources(OGResource aType)
Provides a Collection of the ontology's resources of the provided type. |
java.lang.String |
getSourceURI()
Getter method for the source URI of this ontology. |
LogicalResource |
getType()
Getter method for this resource's type. |
java.lang.String |
getURI()
Getter method for this resource's URI. |
java.lang.String |
getVersionInfo()
Getter method for the version information of this ontology. |
java.util.Iterator |
imports()
Provides a iterator for the all of the ontology's imports. |
boolean |
isLiteralType()
Type checker for any literal type. |
boolean |
isType(LogicalResource theType)
Type checker, extensions can add support for multi-types. |
java.util.Iterator |
literals()
Provides a iterator for the all of the ontology's literals. |
java.util.Iterator |
literals(OGResource aType)
Provides a iterator for only the ontology's literals of the provided type. |
OGClass |
lookupClass(java.lang.Object theID)
Looks for a matching class in this ontology. |
OGClass |
lookupClass(java.lang.Object theID,
boolean pCreate)
Looks for, and possibilly creates, a Class in this ontology. |
OGDatatype |
lookupDatatype(java.lang.Object theID)
Looks for a matching data type in this ontology. |
OGDatatype |
lookupDatatype(java.lang.Object theID,
boolean pCreate)
Looks for, and possibilly creates, a Datatype in this ontology. |
OGOntology |
lookupImport(java.lang.Object theID)
Looks for an imported ontology by ID. |
OGLiteral |
lookupLiteral(java.lang.Object theID)
Looks for a matching literal in this ontology. |
OGLiteral |
lookupLiteral(java.lang.Object theID,
boolean pCreate)
Looks for, and possibilly creates, a literal in this ontology. |
OGProperty |
lookupProperty(java.lang.Object theID)
Looks for a matching property in this ontology. |
OGProperty |
lookupProperty(java.lang.Object theID,
boolean pCreate)
Looks for, and possibilly creates, a property in this ontology. |
OGPropInstance |
lookupPropInstance(java.lang.Object theID)
Looks for a matching property in this resource. |
OGResource |
lookupResource(java.lang.Object theID)
Looks for a matching resource in this ontology. |
void |
morph(java.lang.String URI)
Base Ontology Methods. |
java.util.Iterator |
properties()
Provides a iterator for the all of the ontology's properties. |
java.util.Iterator |
properties(OGResource aType)
Provides a iterator for only the ontology's properties of the provided type. |
java.util.Iterator |
propInstances()
Provides a iterator for the all of the resource's properties. |
java.util.Iterator |
propInstances(OGResource aType)
Looks for a property of this resource that is a particular type. |
void |
removeClass(OGClass theClass)
Removes the provided class from the ontology. |
void |
removeDatatype(OGDatatype theDatatype)
Removes the provided data type from the ontology. |
void |
removeImport(OGOntology theImport)
Removes the provided ontology from the ontology's imports. |
void |
removeLiteral(OGLiteral theLiteral)
Removes the provided literal from the ontology. |
void |
removeProperty(OGProperty theProperty)
Removes the provided property from the ontology. |
void |
removePropInstance(OGPropInstance thePropInstance)
Removes the provided property instance from the resource. |
void |
removeResource(OGResource theResource)
Removes the provided resource from the ontology. |
void |
removeType(OGResource theType)
Removes the given type from the list of multi-types. |
java.util.Iterator |
resources()
Provides a iterator for the all of the ontology's resources. |
java.util.Iterator |
resources(OGResource aType)
Provides a iterator for only the ontology's resources of the provided type. |
void |
setComment(java.lang.String theLabel)
Setter method for this resource's comment string. |
void |
setLabel(java.lang.String theLabel)
Setter method for this resource's label string. |
void |
setSourceURI(java.lang.String theSourceURI)
Setter method for the source URI of this ontology. |
void |
setType(LogicalResource theType)
Collection Access Methods. |
void |
setVersionInfo(java.lang.String theVersionInfo)
Setter method for the version information of this ontology. |
java.util.Iterator |
types()
Provides an iterator over the list of multi-types. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected OGOntology myImpl
Constructor Detail |
public OGBaseOntology()
Method Detail |
public void morph(java.lang.String URI)
morph
in interface OGOntology
public OGOntology getOntology()
OGResource
getOntology
in interface OGResource
public java.lang.String getNamespace()
OGResource
getNamespace
in interface OGResource
public java.lang.String getLocalName()
OGResource
getLocalName
in interface OGResource
public void setVersionInfo(java.lang.String theVersionInfo)
OGOntology
setVersionInfo
in interface OGOntology
theVersionInfo
- The version information String.public java.lang.String getVersionInfo()
OGOntology
getVersionInfo
in interface OGOntology
public java.lang.String getID()
OGResource
getID
in interface OGResource
public java.lang.String getURI()
OGResource
getURI
in interface OGResource
public void setSourceURI(java.lang.String theSourceURI)
OGOntology
setSourceURI
in interface OGOntology
theSourceURI
- The source URI String.public java.lang.String getSourceURI()
OGOntology
getSourceURI
in interface OGOntology
public void setLabel(java.lang.String theLabel)
OGResource
setLabel
in interface OGResource
theLabel
- The label of this resource.public java.lang.String getLabel()
OGResource
getLabel
in interface OGResource
public void setComment(java.lang.String theLabel)
OGResource
setComment
in interface OGResource
theLabel
- The comment for this resource.public java.lang.String getComment()
OGResource
getComment
in interface OGResource
public void setType(LogicalResource theType)
setType
in interface LogicalResource
theType
- The type of this resource.public LogicalResource getType()
LogicalResource
getType
in interface LogicalResource
public boolean isType(LogicalResource theType)
LogicalResource
isType
in interface LogicalResource
public boolean isLiteralType()
LogicalResource
isLiteralType
in interface LogicalResource
public boolean containsType(OGResource theType)
OGResource
containsType
in interface OGResource
public void addType(OGResource theType)
OGResource
addType
in interface OGResource
public void removeType(OGResource theType)
OGResource
removeType
in interface OGResource
public java.util.Iterator types()
OGResource
types
in interface OGResource
public OGPropInstance lookupPropInstance(java.lang.Object theID)
OGResource
lookupPropInstance
in interface OGResource
theID
- The ID of the sought property.
public OGPropInstance addNewPropInstance(OGResource newPropType, OGResource theObject)
OGResource
addNewPropInstance
in interface OGResource
newPropType
- The type of the property instance.theObject
- The object of the property instance.
public void addPropInstance(OGPropInstance thePropInstance)
OGResource
addPropInstance
in interface OGResource
public void removePropInstance(OGPropInstance thePropInstance)
OGResource
removePropInstance
in interface OGResource
thePropInstance
- The property to remove from the resource.public OGPropInstance getPropInstance(java.lang.Object theID)
OGResource
getPropInstance
in interface OGResource
theID
- The ID of the sought property.
public OGPropInstance[] getPropInstances()
OGResource
getPropInstances
in interface OGResource
public boolean containsPropInstance(java.lang.Object theID)
OGResource
containsPropInstance
in interface OGResource
theID
- The ID of the sought property.
public java.util.Iterator propInstances()
OGResource
propInstances
in interface OGResource
public java.util.Iterator propInstances(OGResource aType)
OGResource
propInstances
in interface OGResource
aType
- The type of the sought properties.
public java.util.Collection getPropInstances(OGResource aType)
OGResource
getPropInstances
in interface OGResource
aType
- The type of the sought properties.
public OGClass lookupClass(java.lang.Object theID)
OGOntology
lookupClass
in interface OGOntology
theID
- The ID of the sought class.
public OGClass lookupClass(java.lang.Object theID, boolean pCreate)
OGOntology
lookupClass
in interface OGOntology
theID
- The ID of the sought class.pCreate
- true causes a new instance to be created if no existing
match is found.
public OGClass createClass()
OGOntology
createClass
in interface OGOntology
public OGClass createClass(java.lang.String theID)
OGOntology
createClass
in interface OGOntology
theID
- The ID of the new class.
public OGClass createClass(OGResource aType)
OGOntology
createClass
in interface OGOntology
aType
- The type of the new class.
public OGClass createClass(OGResource aType, java.lang.String theID)
OGOntology
createClass
in interface OGOntology
aType
- The type of the new class.theID
- The ID of the new class.
public void addClass(OGClass theClass)
OGOntology
addClass
in interface OGOntology
theClass
- The class to add to the ontology.public void removeClass(OGClass theClass)
OGOntology
removeClass
in interface OGOntology
theClass
- The class to remove to the ontology.public OGClass getClass(java.lang.Object theID)
OGOntology
getClass
in interface OGOntology
theID
- The ID of the sought class.
public boolean containsClass(java.lang.Object theID)
OGOntology
containsClass
in interface OGOntology
theID
- The ID of the sought class.
public java.util.Iterator classes()
OGOntology
classes
in interface OGOntology
public java.util.Iterator classes(OGResource aType)
OGOntology
classes
in interface OGOntology
aType
- The type of classes to include in the iterator.
public java.util.Collection getClasses(OGResource aType)
OGOntology
getClasses
in interface OGOntology
aType
- The type of classes to include in the iterator.
public OGDatatype lookupDatatype(java.lang.Object theID)
OGOntology
lookupDatatype
in interface OGOntology
theID
- The ID of the sought data type.
public OGDatatype lookupDatatype(java.lang.Object theID, boolean pCreate)
OGOntology
lookupDatatype
in interface OGOntology
theID
- The ID of the sought data type.pCreate
- true causes a new instance to be created if no existing
match is found.
public OGDatatype createDatatype()
OGOntology
createDatatype
in interface OGOntology
public OGDatatype createDatatype(java.lang.String theID)
OGOntology
createDatatype
in interface OGOntology
theID
- The ID of the new Datatype.
public OGDatatype createDatatype(OGResource aType)
OGOntology
createDatatype
in interface OGOntology
aType
- The type of the new Datatype.
public OGDatatype createDatatype(OGResource aType, java.lang.String theID)
OGOntology
createDatatype
in interface OGOntology
aType
- The type of the new Datatype.theID
- The ID of the new Datatype.
public void addDatatype(OGDatatype theDatatype)
OGOntology
addDatatype
in interface OGOntology
theDatatype
- The data type to add to the ontology.public void removeDatatype(OGDatatype theDatatype)
OGOntology
removeDatatype
in interface OGOntology
theDatatype
- The data type to remove to the ontology.public OGDatatype getDatatype(java.lang.Object theID)
OGOntology
getDatatype
in interface OGOntology
theID
- The ID of the sought data type.
public boolean containsDatatype(java.lang.Object theID)
OGOntology
containsDatatype
in interface OGOntology
theID
- The ID of the sought data type.
public java.util.Iterator datatypes()
OGOntology
datatypes
in interface OGOntology
public java.util.Iterator datatypes(OGResource aType)
OGOntology
datatypes
in interface OGOntology
aType
- The type of data types to include in the iterator.
public java.util.Collection getDatatypes(OGResource aType)
OGOntology
getDatatypes
in interface OGOntology
aType
- The type of data types to include in the iterator.
public OGProperty lookupProperty(java.lang.Object theID)
OGOntology
lookupProperty
in interface OGOntology
theID
- The ID of the sought property.
public OGProperty lookupProperty(java.lang.Object theID, boolean pCreate)
OGOntology
lookupProperty
in interface OGOntology
theID
- The ID of the sought property.pCreate
- true causes a new instance to be created if no existing
match is found.
public OGProperty createProperty()
OGOntology
createProperty
in interface OGOntology
public OGProperty createProperty(java.lang.String theID)
OGOntology
createProperty
in interface OGOntology
theID
- The ID of the new Property.
public OGProperty createProperty(OGResource aType)
OGOntology
createProperty
in interface OGOntology
aType
- The type of the new Property.
public OGPropInstance createPropInstance(OGResource aType)
OGOntology
createPropInstance
in interface OGOntology
aType
- The type of the new Property.
public OGProperty createProperty(OGResource aType, java.lang.String theID)
OGOntology
createProperty
in interface OGOntology
aType
- The type of the new Property.theID
- The ID of the new Property.
public OGPropInstance createPropInstance(OGResource aType, java.lang.String theID)
OGOntology
createPropInstance
in interface OGOntology
aType
- The type of the new Property.theID
- The ID of the new Property.
public void addProperty(OGProperty theProperty)
OGOntology
addProperty
in interface OGOntology
theProperty
- The property to add to the ontology.public void removeProperty(OGProperty theProperty)
OGOntology
removeProperty
in interface OGOntology
theProperty
- The property from remove to the ontology.public OGProperty getProperty(java.lang.Object theID)
OGOntology
getProperty
in interface OGOntology
theID
- The ID of the sought property.
public boolean containsProperty(java.lang.Object theID)
OGOntology
containsProperty
in interface OGOntology
theID
- The ID of the sought property.
public java.util.Iterator properties()
OGOntology
properties
in interface OGOntology
public java.util.Iterator properties(OGResource aType)
OGOntology
properties
in interface OGOntology
aType
- The type of properties to include in the iterator.
public java.util.Collection getProperties(OGResource aType)
OGOntology
getProperties
in interface OGOntology
aType
- The type of properties to include in the iterator.
public OGLiteral lookupLiteral(java.lang.Object theID)
OGOntology
lookupLiteral
in interface OGOntology
theID
- The ID of the sought literal.
public OGLiteral lookupLiteral(java.lang.Object theID, boolean pCreate)
OGOntology
lookupLiteral
in interface OGOntology
theID
- The ID of the sought literal.pCreate
- true causes a new instance to be created if no existing
match is found.
public OGLiteral createLiteral()
OGOntology
createLiteral
in interface OGOntology
public OGLiteral createLiteral(java.lang.String theID)
OGOntology
createLiteral
in interface OGOntology
theID
- The ID of the new Literal.
public OGLiteral createLiteralByValue(java.lang.String theValue)
OGOntology
createLiteralByValue
in interface OGOntology
theValue
- The value of the new Literal.
public OGLiteral createLiteral(OGResource aType)
OGOntology
createLiteral
in interface OGOntology
aType
- The type of the new Literal.
public OGLiteral createLiteral(OGResource aType, java.lang.String theID)
OGOntology
createLiteral
in interface OGOntology
aType
- The type of the new Literal.theID
- The ID of the new Literal.
public OGLiteral createLiteralByValue(OGResource aType, java.lang.String theValue)
OGOntology
createLiteralByValue
in interface OGOntology
aType
- The type of the new Literal.
public void addLiteral(OGLiteral theLiteral)
OGOntology
addLiteral
in interface OGOntology
theLiteral
- The literal to add to the ontology.public void removeLiteral(OGLiteral theLiteral)
OGOntology
removeLiteral
in interface OGOntology
theLiteral
- The literal to remove to the ontology.public OGLiteral getLiteral(java.lang.Object theID)
OGOntology
getLiteral
in interface OGOntology
theID
- The ID of the sought literal.
public boolean containsLiteral(java.lang.Object theID)
OGOntology
containsLiteral
in interface OGOntology
theID
- The ID of the sought literal.
public java.util.Iterator literals()
OGOntology
literals
in interface OGOntology
public java.util.Iterator literals(OGResource aType)
OGOntology
literals
in interface OGOntology
aType
- The type of literals to include in the iterator.
public java.util.Collection getLiterals(OGResource aType)
OGOntology
getLiterals
in interface OGOntology
aType
- The type of literals to include in the iterator.
public OGOntology lookupImport(java.lang.Object theID)
OGOntology
lookupImport
in interface OGOntology
theID
- The ID of the sought ontology.
public void addImport(OGOntology theImport)
OGOntology
addImport
in interface OGOntology
theImport
- The ontology to add to the imports.public void removeImport(OGOntology theImport)
OGOntology
removeImport
in interface OGOntology
theImport
- The ontology to remove from the imports.public OGOntology getImport(java.lang.Object theID)
OGOntology
getImport
in interface OGOntology
theID
- The ID of the sought ontology.
public OGOntology[] getImports()
OGOntology
getImports
in interface OGOntology
public boolean containsImport(java.lang.Object theID)
OGOntology
containsImport
in interface OGOntology
theID
- The ID of the sought ontology.
public java.util.Iterator imports()
OGOntology
imports
in interface OGOntology
public void addResource(OGResource theResource)
OGOntology
addResource
in interface OGOntology
theResource
- The resource to add to the ontology.public void removeResource(OGResource theResource)
OGOntology
removeResource
in interface OGOntology
theResource
- The resource removed from the ontology.public OGResource lookupResource(java.lang.Object theID)
OGOntology
lookupResource
in interface OGOntology
theID
- The ID of the sought resource.
public OGResource getResource(java.lang.Object theID)
OGOntology
getResource
in interface OGOntology
theID
- The ID of the sought resource.
public boolean containsResource(java.lang.Object theID)
OGOntology
containsResource
in interface OGOntology
theID
- The ID of the sought resource.
public java.util.Iterator resources()
OGOntology
resources
in interface OGOntology
public java.util.Iterator resources(OGResource aType)
OGOntology
resources
in interface OGOntology
aType
- The type of resources to include in the iterator.
public java.util.Collection getResources(OGResource aType)
OGOntology
getResources
in interface OGOntology
aType
- The type of resources to include in the iterator.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |