|Home >> All >> org >> apache >> hivemind >> [ schema Javadoc ]|
|||org.apache.hivemind.schema.impl.* (3)||||org.apache.hivemind.schema.rules.* (31)|
org.apache.hivemind.schema: Javadoc index of package org.apache.hivemind.schema.
org.apache.hivemind.schema.rules: Interfaces defining org.apache.hivemind.schema.Schema support (used to process extension point contributions and service parameters).
Translator: Object which can translate a string into an object value. This is used to translate attribute values (or element content) from strings into numbers, booleans or other constructs before assigning the final value to a propery. Translation occurs after symbol substitution. Translator classes should have a public constructor that takes no arguments. They may optionally have a second constructor that takes a single string as a parameter. When the org.apache.hivemind.parse.DescriptorParser encounters a translator of the form " translator-id , initialization-string " (example: "int,min=0") it will use ...
Schema: An object which may contain a model, used to identify the form of XML content allowed within some other, containing element. This is very much provisional; in the future will be more control for validation (i.e, controlling the number of occurances), and support for analogs of W3C SChema sequence and choice. The excess flexibility here forces some validation into element objects (the objects created from the Rule s within the ElementModel s).
Rule: Rules associated with Schema elements. As the SchemaProcessor works through the org.apache.hivemind.Element hiearchy, it invokes methods on the Rules.
ReadContentRule: Used to set a property of the top object on the stack to the value of the element's content. Created from the <read-content> element. Note: an org.apache.hivemind.Element 's content is trimmed of leading and trailing whitespace as it is parsed and, additionally, will never be null (though it may be the empty string).
InvokeParentRule: Rule used to connect a child object to its parent by invoking a method on the parent, passing the child. The child object is the top object on the stack and the parent object is the next object down on the stack. Created from the <invoke-parent> element. Generally, this is the last rule in a sequence of rules.
SetParentRule: Used to set a property of the child object to its parent object. The child object is the top object on the org.apache.hivemind.schema.SchemaProcessor stack, the parent object is the next object in. Created from the <set-parent> element.
TestIdTranslators: Tests for QualifiedIdTranslator and IdListTranslator .
AttributeModel: Part of a Schema , used to specify an attribute allowed within an ElementModel .
QualifiedIdTranslator: A org.apache.hivemind.schema.Translator that acts as a wrapper around the IdUtils.qualify(String, String) > IdUtils.qualify(String, String) 55 method.
IdListTranslator: A org.apache.hivemind.schema.Translator that acts as a wrapper around IdUtils.qualifyList(String, String) > IdUtils.qualifyList(String, String) 55 .
CreateObjectRule: Basic org.apache.hivemind.schema.Rule for creating a new object. Created from the the <create-object> element. Generally, this is the first rule in a sequence of rules.
ServicePointTranslator: A custom translator (meaning: not used enough to be registered in hivemind.Translators . Converts an an input value into a org.apache.hivemind.internal.ServicePoint .
ElementModel: Identifies an element that may occur within some schema. Because elements may be nested, an ElementModel is also a Schema .
EnumerationTranslator: Used to translate a set of strings to one of a number of constant values. Each input string is matched against the name of a public static field of a class. The name of the class, and the mappings, are provided in the initializer.
RuleUtils: Static methods useful to org.apache.hivemind.schema.Rule s and org.apache.hivemind.schema.Translator s.
SetModuleRule: Rule used to set a property of the top stack object to the org.apache.hivemind.internal.Module the element was contributed from.
SmartTranslator: A "smart" translator that attempts to automatically convert from string types to object or wrapper types, using java.beans.PropertyEditor s.
ConfigurationTranslator: Interprets a string as an extension point id, and provides the elements for that extension point. Depending on the target property type the elements will be provided as a List or as a Map.
BooleanTranslator: Translates a string value to a boolean value. "true" and "false" are acceptible values. Other values are logged as errors and treated as false. Null is simply considered false.
SchemaProcessor: Object used when processing the elements contributed in an org.apache.hivemind.internal.Contribution .
ReadAttributeRule: Reads an attribute of an element and uses it to set a property of the top object on the stack. Created from the <read-attribute> element.
TestCreateObjectRule: Tests for CreateObjectRule .
PushContentRule: A rule that reads the element's content, passes it through the content translator, then pushes the result onto the processor stack.
AttributeModelImpl: Implementation of org.apache.hivemind.schema.AttributeModel .
ElementModelImpl: Implementation of org.apache.hivemind.schema.ElementModel .