protected static interface ArgHelper.Mapping
Used to mask attribute specific fucntions from the user.
Modifier and Type | Method and Description |
---|---|
String |
encode(Object obj)
encode purpose.
|
String |
getElementName()
getElementName purpose.
|
Object |
getInstance(Element value)
getInstance purpose.
|
Object |
getInstance(String value)
getInstance purpose.
|
String |
getType()
getType purpose.
|
boolean |
isClass(Class c) |
boolean |
isClassInstance(Object obj)
isClassInstance purpose.
|
String |
toString(Object obj) |
String getType()
Returns a constant type name.
Object getInstance(Element value) throws ValidationException
Creates an instance of the appropriate type for this Mapping. This is where type-dependant magic occurs
value
- The Element to interpret.ValidationException
Object getInstance(String value) throws ValidationException
Creates an instance of the appropriate type for this Mapping. This is where type-dependant magic occurs
value
- The Element to interpret.ValidationException
boolean isClassInstance(Object obj)
Tests to see if this class is of the expected type.
obj
- The object to test.boolean isClass(Class c)
String encode(Object obj) throws ValidationException
Creates an XML String from the obj provided, if the object is of the expected type for this mapping.
obj
- The object to try and encode.ValidationException
String getElementName()
This is the name of the element represented.
Copyright © 1996–2019 Geotools. All rights reserved.