|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.biota.digir.RecordConcept
RecordConcept reprsents a record concept used in DiGIR response to a search request. A record concept can be a simple schema concept, or a complex concept that contains a sequence of simple/complex concept. For example, if a DiGIR request specify the "structure" element as follows:
<structure>
<xsd:element name="record">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="darwin:InstitutionCode"/>
<xsd:element ref="darwin:CollectionCode"/>
<xsd:element ref="darwin:CatalogNumber"/>
<xsd:element ref="darwin:ScientificName"/>
<xsd:element name="coordinates">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="darwin:Latitude"/>
<xsd:element ref="darwin:Longitude"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</structure>
The record concept "coordinates" is complex, while "InstitutionCode", "CollectionCode" and the rest are simple record concept that represents a simple schema concept.
Constructor Summary | |
RecordConcept(String name,
boolean isComplex)
Concstructs a RecordConcept object. |
Method Summary | |
void |
addChild(RecordConcept concept)
Adds a child concept to a complex record concept. |
List |
getChildren()
Gets the children concept of a record concept. |
String |
getName()
Returns the name of the record concept. |
boolean |
isComplex()
Checks whether this record concept is a complex concept. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RecordConcept(String name, boolean isComplex)
name
- the name of the record conceptisComplex
- if true, the record concpet is a complex conceptMethod Detail |
public String getName()
public void addChild(RecordConcept concept)
concept
- the child RecordConcept object to be addedpublic List getChildren()
public boolean isComplex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |