public class OXFFeatureAttributeDescriptor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OXFFeatureAttributeDescriptor.Attribute |
Modifier and Type | Field and Description |
---|---|
protected DataType |
dataType |
protected String |
documentation |
protected int |
maxOccurrences |
protected int |
minOccurrences |
protected String |
name |
protected Class |
objectClass |
Constructor and Description |
---|
OXFFeatureAttributeDescriptor(String name,
DataType dataType,
Class objectClass) |
OXFFeatureAttributeDescriptor(String name,
DataType dataType,
Class objectClass,
int minOccurrences,
int maxOccurrences,
String documentation) |
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Returns a constant from
DataType . |
String |
getDocumentation()
Returns a documentation of this attribute.
|
int |
getMaximumOccurrences()
Returns the maximum number of occurrences of this attribute on a given feature.
|
int |
getMinimumOccurrences()
Returns the minimum number of occurrences of this attribute on a given feature.
|
String |
getName()
Returns the name of this attribute.
|
Class |
getObjectClass()
This returns the Java
Class object that class or interface that this attribute can be cast to. |
int |
getPrecision()
not supported
|
int |
getSize()
not supported
|
boolean |
isPrimaryKey()
not supported
|
protected String name
protected DataType dataType
protected Class objectClass
protected int minOccurrences
protected int maxOccurrences
protected String documentation
public OXFFeatureAttributeDescriptor(String name, DataType dataType, Class objectClass)
name
- dataType
- objectClass
- public String getDocumentation()
public String getName()
public Class getObjectClass()
Class
object that class or interface that this attribute can be cast to.public int getMinimumOccurrences()
public int getMaximumOccurrences()
Integer.MAX_VALUE
indicates that the maximum number of occurrences is unbounded.public DataType getDataType()
DataType
. The return value of this method indicates how the return
values of getSize()
, getPrecision()
, and getObjectClass()
should be interpreted.
public boolean isPrimaryKey() throws UnsupportedOperationException
UnsupportedOperationException
public int getPrecision() throws UnsupportedOperationException
UnsupportedOperationException
public int getSize() throws UnsupportedOperationException
UnsupportedOperationException
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.