public class ElementValidator extends Object
Constructor and Description |
---|
ElementValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
validate(AttributeStatement attribute,
Label label,
Dictionary dictionary) |
static boolean |
validate(AttributeStatement attribute,
Label label,
Dictionary dictionary,
ElementDefinition definition) |
static boolean |
validate(AttributeStatement attribute,
Label label,
Dictionary dictionary,
String objectContext)
Checks to see whether an
AttributeStatement is correct. |
public static boolean validate(AttributeStatement attribute, Label label, Dictionary dictionary, ElementDefinition definition) throws UnsupportedTypeException
UnsupportedTypeException
public static boolean validate(AttributeStatement attribute, Label label, Dictionary dictionary, String objectContext) throws DefinitionNotFoundException, UnsupportedTypeException
AttributeStatement
is correct. Will look
up the definition in the given dictionary. An object context may be
supplied as elements can have aliases that are appropriate within an
object. Set objectContext to null if there if the lookup should be
performed without care to the surrounding object.dictionary
- where to look up the elementobjectContext
- enclosing the element to be looked upattribute
- statement to be validatedDefinitionNotFoundException
- if definition for element is not foundUnsupportedTypeException
- if type of element is not supportedpublic static boolean validate(AttributeStatement attribute, Label label, Dictionary dictionary) throws DefinitionNotFoundException, UnsupportedTypeException
Copyright © 2005–2015 Planetary Data System. All rights reserved.