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
_conceptLabel
protected String _conceptLabel
_isHidden
protected boolean _isHidden
_showEmpty
protected boolean _showEmpty
_resourceURI
protected String _resourceURI
Concept
public Concept()
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 elementsubPath
- 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."