|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjump.core.apitools.ToolToMakeYourLifeEasier
org.openjump.core.apitools.FeatureSchemaTools
public class FeatureSchemaTools
Class for easier handling of featureSchema objects.
| Constructor Summary | |
|---|---|
FeatureSchemaTools()
|
|
| Method Summary | |
|---|---|
static AttributeInfo |
getAttributesInfoFor(FeatureSchema fs,
int attrIndex)
Extracts information on the attribute at the given index from the feature schema. |
static AttributeInfo |
getAttributesInfoFor(FeatureSchema fs,
java.lang.String attrName)
Extracts information on the attribute with the given name from the feature schema. |
static AttributeInfo[] |
getAttributesWithTypes(FeatureSchema fs,
AttributeType[] allowedTypes)
Extracts information of all attributes with one of the given types from the given FeatureSchema |
static boolean |
isAttributeTypeAllowed(AttributeType at,
AttributeType[] allowedTypes)
Checks if the given attribute type is contained in the given array of allowed attribute types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureSchemaTools()
| Method Detail |
|---|
public static AttributeInfo[] getAttributesWithTypes(FeatureSchema fs,
AttributeType[] allowedTypes)
fs - FeatureSchema to get information fromallowedTypes - array with AttributeTypes, that specify which attribute to get information about
public static AttributeInfo getAttributesInfoFor(FeatureSchema fs,
int attrIndex)
fs - FeatureSchema to get information fromattrIndex - index of the attribute in the given featureSchema to get information about
public static AttributeInfo getAttributesInfoFor(FeatureSchema fs,
java.lang.String attrName)
fs - FeatureSchema to get information fromattrName - name of the attribute in the given featureSchema to get information about
public static boolean isAttributeTypeAllowed(AttributeType at,
AttributeType[] allowedTypes)
at - attribute type to be checkedallowedTypes - array of allowed attribute types
at is contained in allowedTypes, else false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||