org.media.mn8
Class Concept

java.lang.Object
  |
  +--org.media.mn8.Concept
Direct Known Subclasses:
JavaConcept

public abstract class Concept
extends Object

being from an mn8 script based concept or a Java one, is registered in ConceptRegister, where it is taken by the mn8Loader and instantiated.

Version:
$Revision: 1.29 $ $Date: 2002/07/24 23:25:14 $
Author:
Remus Pereni

Field Summary
protected  String _conceptLabel
           
protected  boolean _isHidden
           
protected  String _resourceURI
           
protected  boolean _showEmpty
           
 
Constructor Summary
Concept()
           
 
Method Summary
 boolean areThereMoreElemenents(String path)
           
abstract  Object clone()
           
 Concept cloneConcept()
           
 LogicalConcept extendsConcept(StringConcept conceptType)
           
 SeriesConcept getAllInheritedConcepts()
           
protected  Concept getAttributeValue(String name)
           
 Concept getConceptAttribute(String attributeName)
           
 Concept getConceptAttribute(StringConcept attributeName)
           
 FieldDefinition getConceptAttributeField(String attributeName)
           
 FieldDefinition getConceptAttributeField(StringConcept attributeName)
           
 SeriesConcept getConceptAttributeFields()
           
 SeriesConcept getConceptAttributes()
           
 SeriesConcept getConceptConstructors()
           
 ConceptDefinition getConceptDefinition()
           
 Concept getConceptElement(String elementName)
           
 Concept getConceptElement(StringConcept elementName)
           
 FieldDefinition getConceptElementField(String elementName)
           
 SeriesConcept getConceptElementFields()
           
 SeriesConcept getConceptElements()
           
 Concept getConceptInstance()
           
 StringConcept getConceptLabel()
           
 mn8Method getConceptMethod(StringConcept methodSignature)
           
 SeriesConcept getConceptMethods()
           
 Concept getConceptNamed(StringConcept name)
           
 SeriesConcept getConceptOperators()
           
 SeriesConcept getConceptsAtPath(SeriesConcept holder, String fullpath)
           
 SeriesConcept getConceptsAtPath(StringConcept path)
           
 StringConcept getConceptType()
           
 Concept getErrorHandler()
           
 SeriesConcept getInheritedConcepts()
           
 Vector getMeAllElements(String path)
           
 StringConcept getResourceURI()
           
 boolean hasConceptAttribute(String attributeName)
           
 LogicalConcept hasConceptAttribute(StringConcept attributeName)
           
 boolean hasConceptElement(String elementName)
           
 LogicalConcept hasConceptElement(StringConcept elementName)
           
 LogicalConcept hasConceptMethod(StringConcept methodSignature)
           
 LogicalConcept hasPath(String fullpath)
          Returns true if the concept has the specified path or not.
 LogicalConcept hasPath(StringConcept path)
           
 LogicalConcept isHidden()
           
 void loadContent(Concept from)
           
 void printFields()
           
 void printFields(String pre, Concept con)
           
 SeriesConcept searchDeeperForPath(SeriesConcept holder, String path)
           
protected  LogicalConcept searchSubElements(String path)
          Searches for the respective path in all the elements of this concept.
 void setConceptLabel(StringConcept label)
           
 void setErrorHandler(Concept handler)
           
 void setHidden(LogicalConcept isHidden)
           
 void setResourceURI(StringConcept uri)
           
 void setShowEmpty(LogicalConcept showEmpty)
           
 LogicalConcept showEmpty()
           
 SeriesConcept subAttributeGetConcept(SeriesConcept holder, String attributeName, String subPath)
           
protected  LogicalConcept subAttributeHasPath(String attribName, String subPath)
          Returns if an attribute of this concept has the subpath specified as parameter
 SeriesConcept subElementGetConcepts(SeriesConcept holder, String elementName, String subPath)
           
 LogicalConcept subElementHasPath(String elementName, String subPath)
          Returns if an element of this concept has the subpath specified as parameter
abstract  StringConcept toTXT()
           
abstract  StringConcept toXML()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_conceptLabel

protected String _conceptLabel

_isHidden

protected boolean _isHidden

_showEmpty

protected boolean _showEmpty

_resourceURI

protected String _resourceURI
Constructor Detail

Concept

public Concept()
Method Detail

getConceptNamed

public Concept getConceptNamed(StringConcept name)

getConceptLabel

public StringConcept getConceptLabel()

setConceptLabel

public void setConceptLabel(StringConcept label)

getConceptType

public StringConcept getConceptType()

isHidden

public LogicalConcept isHidden()

setHidden

public void setHidden(LogicalConcept isHidden)

showEmpty

public LogicalConcept showEmpty()

setShowEmpty

public void setShowEmpty(LogicalConcept showEmpty)

getConceptAttributes

public SeriesConcept getConceptAttributes()

hasConceptAttribute

public LogicalConcept hasConceptAttribute(StringConcept attributeName)

hasConceptAttribute

public boolean hasConceptAttribute(String attributeName)

getConceptAttribute

public Concept getConceptAttribute(StringConcept attributeName)

getConceptAttribute

public Concept getConceptAttribute(String attributeName)

getConceptAttributeField

public FieldDefinition getConceptAttributeField(StringConcept attributeName)

getConceptAttributeField

public FieldDefinition getConceptAttributeField(String attributeName)

getConceptAttributeFields

public SeriesConcept getConceptAttributeFields()

hasConceptMethod

public LogicalConcept hasConceptMethod(StringConcept methodSignature)

getConceptElements

public SeriesConcept getConceptElements()

hasConceptElement

public LogicalConcept hasConceptElement(StringConcept elementName)

hasConceptElement

public boolean hasConceptElement(String elementName)

getConceptElement

public Concept getConceptElement(StringConcept elementName)

getConceptElement

public Concept getConceptElement(String elementName)

getConceptElementField

public FieldDefinition getConceptElementField(String elementName)

getConceptElementFields

public SeriesConcept getConceptElementFields()

getConceptMethods

public SeriesConcept getConceptMethods()

getConceptConstructors

public SeriesConcept getConceptConstructors()

getConceptOperators

public SeriesConcept getConceptOperators()

getConceptInstance

public Concept getConceptInstance()

getInheritedConcepts

public SeriesConcept getInheritedConcepts()

getAllInheritedConcepts

public SeriesConcept getAllInheritedConcepts()

extendsConcept

public final LogicalConcept extendsConcept(StringConcept conceptType)

getConceptMethod

public final mn8Method getConceptMethod(StringConcept methodSignature)

toXML

public abstract StringConcept toXML()

toTXT

public abstract StringConcept toTXT()

getConceptDefinition

public ConceptDefinition getConceptDefinition()

loadContent

public void loadContent(Concept from)

hasPath

public LogicalConcept hasPath(StringConcept path)

getConceptsAtPath

public SeriesConcept getConceptsAtPath(StringConcept path)

getConceptsAtPath

public SeriesConcept getConceptsAtPath(SeriesConcept holder,
                                       String fullpath)

searchDeeperForPath

public SeriesConcept searchDeeperForPath(SeriesConcept holder,
                                         String path)

subElementGetConcepts

public SeriesConcept subElementGetConcepts(SeriesConcept holder,
                                           String elementName,
                                           String subPath)

subAttributeGetConcept

public SeriesConcept subAttributeGetConcept(SeriesConcept holder,
                                            String attributeName,
                                            String subPath)

hasPath

public LogicalConcept hasPath(String fullpath)
Returns true if the concept has the specified path or not. By overriding getConceptElements or even this method elements and attributes can dynamically be added to concepts, in fact this is the reason why it is also duplicate here.

The path can be given using standard mn8 navigational patterns (/)? (elementName)? (/elementName)* (@ attributeName)?.

Parameters:
fullpath - the path to be looked for.
Returns:
true if it exists false otherway.

searchSubElements

protected LogicalConcept searchSubElements(String path)
Searches for the respective path in all the elements of this concept.

Parameters:
path - The path to be looked for corresponding to ConceptNavPatterns
Returns:
A LogicalConcept true if the path was found, false otherway.
See Also:
ConceptNavPatterns

subElementHasPath

public LogicalConcept subElementHasPath(String elementName,
                                        String subPath)
Returns if an element of this concept has the subpath specified as parameter

Parameters:
elementName - the name of the element
subPath - the subpath to be looked for
Returns:
true if it has it false otherway

subAttributeHasPath

protected LogicalConcept subAttributeHasPath(String attribName,
                                             String subPath)
Returns if an attribute of this concept has the subpath specified as parameter

Parameters:
subPath - the subpath to be looked for
Returns:
true if it has it false otherway

getResourceURI

public StringConcept getResourceURI()

setResourceURI

public void setResourceURI(StringConcept uri)

getAttributeValue

protected Concept getAttributeValue(String name)

areThereMoreElemenents

public boolean areThereMoreElemenents(String path)

getMeAllElements

public Vector getMeAllElements(String path)

clone

public abstract Object clone()
Overrides:
clone in class Object

cloneConcept

public Concept cloneConcept()

setErrorHandler

public void setErrorHandler(Concept handler)

getErrorHandler

public Concept getErrorHandler()

printFields

public void printFields()

printFields

public void printFields(String pre,
                        Concept con)


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."