This class defines the behaviour of the "Presence" attribute in a Map Feature definition. Presence is one of "always", "onTagMatch" or "withCategory".
This is used to control whether edit controls for a feature show up on an given edit page.
public static function getPresence(presence:String):Presence
Translates a string from the XML form (eg "onTagMatch") to a constant (ON_TAG_MATCH)
Parameters
Returns
public function isEditorPresent(editor:EditorFactory, forEntity:Entity, forCategory:String):Boolean
Determines whether a given edit control (editor) should be used for a given entity, given a certain category page is open.
If not overriden by a child class, the behaviour is "always": show the edit control on the "Basic" page, and on the appropriate category page.
Parameters
Returns
Found an error? Help us fix it. http://wiki.openstreetmap.org/wiki/Potlatch2