org.media.mn8.concepts
Class ElementConcept

java.lang.Object
  |
  +--org.media.mn8.Concept
        |
        +--org.media.mn8.JavaConcept
              |
              +--org.media.mn8.concepts.ElementConcept
All Implemented Interfaces:
Element
Direct Known Subclasses:
TransparentElement

public class ElementConcept
extends JavaConcept
implements Element

Version:
$Revision: 1.26 $ $Date: 2002/07/24 23:23:39 $
Author:
Remus Pereni

Field Summary
protected  AttributeSeries _attribs
           
protected  StringConcept _label
           
protected  boolean _multi
           
protected  StringConcept _name
           
 
Fields inherited from class org.media.mn8.Concept
_conceptLabel, _isHidden, _resourceURI, _showEmpty
 
Constructor Summary
ElementConcept()
           
ElementConcept(String name, String label, Concept value, SeriesConcept attributes)
           
ElementConcept(String name, String label, Concept value, SeriesConcept attributes, boolean multi, String multiType)
           
 
Method Summary
 void addAttribute(AttributeConcept attr)
           
 void addAttribute(StringConcept name, StringConcept label, Concept value)
           
 void addValue(Concept value)
           
 boolean areThereMoreElemenents(String path)
           
 Object clone()
           
 ElementConcept create(StringConcept label, Concept value)
           
 LogicalConcept equals(ElementConcept elem)
           
 boolean equals(Object obj)
           
 SeriesConcept getAttributes()
           
 Concept getConceptAttribute(String name)
           
 FieldDefinition getConceptAttributeField(String name)
           
 SeriesConcept getConceptAttributeFields()
           
 SeriesConcept getConceptAttributes()
           
 ConceptDefinition getConceptDefinition()
           
 Concept getConceptElement(String name)
           
 Concept getConceptElement(StringConcept name)
           
 FieldDefinition getConceptElementField(String name)
           
 FieldDefinition getConceptElementField(StringConcept name)
           
 SeriesConcept getConceptElementFields()
           
 SeriesConcept getConceptElements()
           
 StringConcept getConceptLabel()
           
 String getElementLabel()
           
 String getElementName()
           
 String getElementType()
           
 Concept getElementValue()
           
 StringConcept getLabel()
           
 Vector getMeAllElements(String path)
           
 StringConcept getName()
           
 Concept getValue()
           
 StringConcept getValueType()
           
 boolean hasConceptAttribute(String name)
           
 boolean hasConceptElement(String name)
           
 LogicalConcept hasConceptElement(StringConcept name)
           
 int hashCode()
           
 LogicalConcept isMulti()
           
 void loadContent(Concept from)
           
 LogicalConcept opEquals(ElementConcept elem)
           
 SeriesConcept searchDeeperForPath(SeriesConcept holder, String path)
           
 void setAttributes(SeriesConcept attributes)
           
 void setConceptLabel(StringConcept label)
           
 void setElementLabel(String label)
           
 void setElementName(String name)
           
 void setElementValue(Concept concept)
           
 void setLabel(StringConcept label)
           
 void setResourceURI(StringConcept resourceURI)
           
 void setShowEmpty(LogicalConcept showEmpty)
           
 void setValue(Concept value)
           
 LogicalConcept subElementHasPath(String elementName, String subPath)
          Returns if an element of this concept has the subpath specified as parameter
 String toString()
           
 StringConcept toTXT()
           
 StringConcept toXML()
           
 
Methods inherited from class org.media.mn8.JavaConcept
create, equals, opEQ
 
Methods inherited from class org.media.mn8.Concept
cloneConcept, extendsConcept, getAllInheritedConcepts, getAttributeValue, getConceptAttribute, getConceptAttributeField, getConceptConstructors, getConceptInstance, getConceptMethod, getConceptMethods, getConceptNamed, getConceptOperators, getConceptsAtPath, getConceptsAtPath, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptMethod, hasPath, hasPath, isHidden, printFields, printFields, searchSubElements, setErrorHandler, setHidden, showEmpty, subAttributeGetConcept, subAttributeHasPath, subElementGetConcepts
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected StringConcept _name

_label

protected StringConcept _label

_attribs

protected AttributeSeries _attribs

_multi

protected boolean _multi
Constructor Detail

ElementConcept

public ElementConcept()

ElementConcept

public ElementConcept(String name,
                      String label,
                      Concept value,
                      SeriesConcept attributes)

ElementConcept

public ElementConcept(String name,
                      String label,
                      Concept value,
                      SeriesConcept attributes,
                      boolean multi,
                      String multiType)
Method Detail

create

public ElementConcept create(StringConcept label,
                             Concept value)

toString

public String toString()
Overrides:
toString in class Object

addValue

public void addValue(Concept value)

setValue

public void setValue(Concept value)

getValue

public Concept getValue()

getName

public StringConcept getName()

getAttributes

public SeriesConcept getAttributes()
Specified by:
getAttributes in interface Element

setAttributes

public void setAttributes(SeriesConcept attributes)
Specified by:
setAttributes in interface Element

addAttribute

public void addAttribute(AttributeConcept attr)

addAttribute

public void addAttribute(StringConcept name,
                         StringConcept label,
                         Concept value)

getLabel

public StringConcept getLabel()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class JavaConcept

setLabel

public void setLabel(StringConcept label)

getValueType

public StringConcept getValueType()

getElementName

public String getElementName()
Specified by:
getElementName in interface Element

setElementName

public void setElementName(String name)
Specified by:
setElementName in interface Element

getElementLabel

public String getElementLabel()
Specified by:
getElementLabel in interface Element

setElementLabel

public void setElementLabel(String label)
Specified by:
setElementLabel in interface Element

setElementValue

public void setElementValue(Concept concept)
Specified by:
setElementValue in interface Element

getElementValue

public Concept getElementValue()
Specified by:
getElementValue in interface Element

getElementType

public String getElementType()
Specified by:
getElementType in interface Element

setConceptLabel

public void setConceptLabel(StringConcept label)
Overrides:
setConceptLabel in class Concept

getConceptLabel

public StringConcept getConceptLabel()
Overrides:
getConceptLabel in class Concept

toTXT

public StringConcept toTXT()
Overrides:
toTXT in class JavaConcept

toXML

public StringConcept toXML()
Overrides:
toXML in class JavaConcept

getConceptDefinition

public ConceptDefinition getConceptDefinition()
Overrides:
getConceptDefinition in class JavaConcept

hasConceptElement

public LogicalConcept hasConceptElement(StringConcept name)
Overrides:
hasConceptElement in class Concept

hasConceptElement

public boolean hasConceptElement(String name)
Overrides:
hasConceptElement in class Concept

hasConceptAttribute

public boolean hasConceptAttribute(String name)
Overrides:
hasConceptAttribute in class Concept

setShowEmpty

public void setShowEmpty(LogicalConcept showEmpty)
Overrides:
setShowEmpty in class Concept

getConceptElements

public SeriesConcept getConceptElements()
Overrides:
getConceptElements in class Concept

getConceptElement

public Concept getConceptElement(StringConcept name)
Overrides:
getConceptElement in class Concept

getConceptElement

public Concept getConceptElement(String name)
Overrides:
getConceptElement in class Concept

getConceptElementField

public FieldDefinition getConceptElementField(StringConcept name)

getConceptElementField

public FieldDefinition getConceptElementField(String name)
Overrides:
getConceptElementField in class Concept

isMulti

public LogicalConcept isMulti()

getConceptElementFields

public SeriesConcept getConceptElementFields()
Overrides:
getConceptElementFields in class Concept

getConceptAttributeFields

public SeriesConcept getConceptAttributeFields()
Overrides:
getConceptAttributeFields in class Concept

getConceptAttributeField

public FieldDefinition getConceptAttributeField(String name)
Overrides:
getConceptAttributeField in class Concept

getConceptAttribute

public Concept getConceptAttribute(String name)
Overrides:
getConceptAttribute in class Concept

getConceptAttributes

public SeriesConcept getConceptAttributes()
Overrides:
getConceptAttributes in class Concept

clone

public Object clone()
Overrides:
clone in class JavaConcept

setResourceURI

public void setResourceURI(StringConcept resourceURI)
Overrides:
setResourceURI in class Concept

loadContent

public void loadContent(Concept from)
Overrides:
loadContent in class Concept

opEquals

public LogicalConcept opEquals(ElementConcept elem)

equals

public LogicalConcept equals(ElementConcept elem)

subElementHasPath

public LogicalConcept subElementHasPath(String elementName,
                                        String subPath)
Description copied from class: Concept
Returns if an element of this concept has the subpath specified as parameter

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

areThereMoreElemenents

public boolean areThereMoreElemenents(String path)
Overrides:
areThereMoreElemenents in class Concept

searchDeeperForPath

public SeriesConcept searchDeeperForPath(SeriesConcept holder,
                                         String path)
Overrides:
searchDeeperForPath in class Concept

getMeAllElements

public Vector getMeAllElements(String path)
Overrides:
getMeAllElements in class Concept


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