Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.mn8
Class Concept  view Concept download Concept.java

java.lang.Object
  extended byorg.media.mn8.Concept
Direct Known Subclasses:
JavaConcept

public abstract class Concept
extends java.lang.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 $

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

Field Detail

_conceptLabel

protected java.lang.String _conceptLabel

_isHidden

protected boolean _isHidden

_showEmpty

protected boolean _showEmpty

_errorHandler

private Concept _errorHandler

_resourceURI

protected java.lang.String _resourceURI
Constructor Detail

Concept

public Concept()
Method Detail

getConceptNamed

public Concept getConceptNamed(org.media.mn8.concepts.StringConcept name)

getConceptLabel

public org.media.mn8.concepts.StringConcept getConceptLabel()

setConceptLabel

public void setConceptLabel(org.media.mn8.concepts.StringConcept label)

getConceptType

public org.media.mn8.concepts.StringConcept getConceptType()

isHidden

public org.media.mn8.concepts.LogicalConcept isHidden()

setHidden

public void setHidden(org.media.mn8.concepts.LogicalConcept isHidden)

showEmpty

public org.media.mn8.concepts.LogicalConcept showEmpty()

setShowEmpty

public void setShowEmpty(org.media.mn8.concepts.LogicalConcept showEmpty)

getConceptAttributes

public org.media.mn8.concepts.SeriesConcept getConceptAttributes()

hasConceptAttribute

public org.media.mn8.concepts.LogicalConcept hasConceptAttribute(org.media.mn8.concepts.StringConcept attributeName)

hasConceptAttribute

public boolean hasConceptAttribute(java.lang.String attributeName)

getConceptAttribute

public Concept getConceptAttribute(org.media.mn8.concepts.StringConcept attributeName)

getConceptAttribute

public Concept getConceptAttribute(java.lang.String attributeName)

getConceptAttributeField

public FieldDefinition getConceptAttributeField(org.media.mn8.concepts.StringConcept attributeName)

getConceptAttributeField

public FieldDefinition getConceptAttributeField(java.lang.String attributeName)

getConceptAttributeFields

public org.media.mn8.concepts.SeriesConcept getConceptAttributeFields()

hasConceptMethod

public org.media.mn8.concepts.LogicalConcept hasConceptMethod(org.media.mn8.concepts.StringConcept methodSignature)

getConceptElements

public org.media.mn8.concepts.SeriesConcept getConceptElements()

hasConceptElement

public org.media.mn8.concepts.LogicalConcept hasConceptElement(org.media.mn8.concepts.StringConcept elementName)

hasConceptElement

public boolean hasConceptElement(java.lang.String elementName)

getConceptElement

public Concept getConceptElement(org.media.mn8.concepts.StringConcept elementName)

getConceptElement

public Concept getConceptElement(java.lang.String elementName)

getConceptElementField

public FieldDefinition getConceptElementField(java.lang.String elementName)

getConceptElementFields

public org.media.mn8.concepts.SeriesConcept getConceptElementFields()

getConceptMethods

public org.media.mn8.concepts.SeriesConcept getConceptMethods()

getConceptConstructors

public org.media.mn8.concepts.SeriesConcept getConceptConstructors()

getConceptOperators

public org.media.mn8.concepts.SeriesConcept getConceptOperators()

getConceptInstance

public Concept getConceptInstance()

getInheritedConcepts

public org.media.mn8.concepts.SeriesConcept getInheritedConcepts()

getAllInheritedConcepts

public org.media.mn8.concepts.SeriesConcept getAllInheritedConcepts()

extendsConcept

public final org.media.mn8.concepts.LogicalConcept extendsConcept(org.media.mn8.concepts.StringConcept conceptType)

getConceptMethod

public final mn8Method getConceptMethod(org.media.mn8.concepts.StringConcept methodSignature)

toXML

public abstract org.media.mn8.concepts.StringConcept toXML()

toTXT

public abstract org.media.mn8.concepts.StringConcept toTXT()

getConceptDefinition

public ConceptDefinition getConceptDefinition()

loadContent

public void loadContent(Concept from)

hasPath

public org.media.mn8.concepts.LogicalConcept hasPath(org.media.mn8.concepts.StringConcept path)

getConceptsAtPath

public org.media.mn8.concepts.SeriesConcept getConceptsAtPath(org.media.mn8.concepts.StringConcept path)

getConceptsAtPath

public org.media.mn8.concepts.SeriesConcept getConceptsAtPath(org.media.mn8.concepts.SeriesConcept holder,
                                                              java.lang.String fullpath)

searchDeeperForPath

public org.media.mn8.concepts.SeriesConcept searchDeeperForPath(org.media.mn8.concepts.SeriesConcept holder,
                                                                java.lang.String path)

subElementGetConcepts

public org.media.mn8.concepts.SeriesConcept subElementGetConcepts(org.media.mn8.concepts.SeriesConcept holder,
                                                                  java.lang.String elementName,
                                                                  java.lang.String subPath)

subAttributeGetConcept

public org.media.mn8.concepts.SeriesConcept subAttributeGetConcept(org.media.mn8.concepts.SeriesConcept holder,
                                                                   java.lang.String attributeName,
                                                                   java.lang.String subPath)

hasPath

public org.media.mn8.concepts.LogicalConcept hasPath(java.lang.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)?.


searchSubElements

protected org.media.mn8.concepts.LogicalConcept searchSubElements(java.lang.String path)
Searches for the respective path in all the elements of this concept.


subElementHasPath

public org.media.mn8.concepts.LogicalConcept subElementHasPath(java.lang.String elementName,
                                                               java.lang.String subPath)
Returns if an element of this concept has the subpath specified as parameter


subAttributeHasPath

protected org.media.mn8.concepts.LogicalConcept subAttributeHasPath(java.lang.String attribName,
                                                                    java.lang.String subPath)
Returns if an attribute of this concept has the subpath specified as parameter


getResourceURI

public org.media.mn8.concepts.StringConcept getResourceURI()

setResourceURI

public void setResourceURI(org.media.mn8.concepts.StringConcept uri)

getAttributeValue

protected Concept getAttributeValue(java.lang.String name)

areThereMoreElemenents

public boolean areThereMoreElemenents(java.lang.String path)

getMeAllElements

public java.util.Vector getMeAllElements(java.lang.String path)

clone

public abstract java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 


cloneConcept

public Concept cloneConcept()

setErrorHandler

public void setErrorHandler(Concept handler)

getErrorHandler

public Concept getErrorHandler()

printFields

public void printFields()

printFields

public void printFields(java.lang.String pre,
                        Concept con)