org.geotools.catalog
Interface MetadataEntity.Element

Enclosing interface:
MetadataEntity

public static interface MetadataEntity.Element

Metadata element schema description (name, class, nillable).

Metadata Elements are unique within a Metadata Entity Used to inspect the type and structure of a metadata element


Method Summary
 MetadataEntity.EntityType getEntityType()
          If the current element is an entity then the entity object that describes the current element is returned.
 java.lang.String getName()
          Gets the name of this element.
 java.lang.Class getType()
          Gets the Type (Java Class) of this element.
 boolean isMetadataEntity()
          Whether or not this element is complex in any way.
 boolean isNillable()
          Returns whether nulls are allowed for this element.
 

Method Detail

getType

public java.lang.Class getType()
Gets the Type (Java Class) of this element.

Returns:
Type.

getName

public java.lang.String getName()
Gets the name of this element.

Returns:
Name.

isNillable

public boolean isNillable()
Returns whether nulls are allowed for this element.

Returns:
true if nulls are permitted, false otherwise.

isMetadataEntity

public boolean isMetadataEntity()
Whether or not this element is complex in any way. If it is not nested then the code can just do the default processing, such as printing the element directly, for example. If it is nested then that indicates there is more to be done, and the actual ElementType should be determined and processed accordingly.

Returns:
true if Any.

getEntityType

public MetadataEntity.EntityType getEntityType()
If the current element is an entity then the entity object that describes the current element is returned.

Returns:
Null, if not a metadata entity (isMetadataEntity returns false) The EntityType object describing the current element if current element is an entity


Copyright © GeoTools. All Rights Reserved.