public interface IStyleDefinition extends IMetadataDefinition
Style(name="color", type="uint", format="color", inherit="yes")].
Use IDefinition.getBaseName()() to get the style's name (e.g., "color".
| Modifier and Type | Method and Description |
|---|---|
String |
getArrayType()
Gets the value of this style's
arrayType attribute. |
String[] |
getEnumeration()
Gets the possible values of this style, as specified by
its
enumeration attribute. |
String |
getFormat()
Gets the value of this style's
format attribute. |
String |
getInherit()
Gets the value of this style's
inherit attribute. |
String |
getMaxValue()
Gets the value of this style's
maxValue attribute. |
String |
getMaxValueExclusive()
Gets the value of this style's
maxValueExclusive attribute. |
String |
getMinValue()
Gets the value of this style's
minValue attribute. |
String |
getMinValueExclusive()
Gets the value of this style's
minValueExclusive attribute. |
IStyleTagNode |
getNode()
Returns the
IStyleTagNode from which this definition was created,
if the definition came from the AST for a source file. |
String[] |
getStates()
Gets the value of this style's
states attribute. |
String[] |
getThemes()
Gets the value of this style's
themes attribute. |
boolean |
isColor()
Determines whether this style represents a color.
|
boolean |
isInheriting()
Determines whether this style is inheriting.
|
ITypeDefinition |
resolveArrayType(ICompilerProject project)
Resolves the type specified by the
arrayType attribute
to a class or interface definitions. |
getDecoratedDefinition, getDeprecatedMessage, getDeprecatedReplacement, getDeprecatedSincegetExplicitSourceComment, hasExplicitCommentgetAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getBaseName, getBindableEventNames, getColumn, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDeprecationInfo, getEnd, getLine, getMetaTagByName, getMetaTagsByName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNameStart, getPackageName, getParent, getQualifiedName, getSourcePath, getStart, getTypeAsDisplayString, getTypeReference, hasMetaTagByName, hasModifier, hasNamespace, isBindable, isBindableStyle, isContingent, isContingentNeeded, isDeprecated, isDynamic, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isStatic, resolveNamespace, resolveTypeIStyleTagNode getNode()
IStyleTagNode from which this definition was created,
if the definition came from the AST for a source file.
This method may require the AST to be reloaded or regenerated and therefore may be slow.
getNode in interface IDefinitionString getArrayType()
arrayType attribute.
When the type attribute is "Array,
the arrayType attribute specifies the type
of the array elements.
arrayType attribute as a String,
or null.ITypeDefinition resolveArrayType(ICompilerProject project)
arrayType attribute
to a class or interface definitions.
When the value of the type attribute is "Array",
the arrayType attribute specifies the type
of the array elements.
project - The ICompilerProject within which references
should be resolved.ITypeDefinition for the resolved array type,
or null.String[] getEnumeration()
enumeration attribute.
When the value of the type attribute is "String",
the enumeration attribute specifies the allowed String values.
enumeration
attribute as an array of Strings, or an empty array.String getFormat()
format attribute.format attribute as a String,
or null.boolean isColor()
true if the value of the format
attribute is "Color".String getInherit()
inherit attribute.inherit attribute as a String,
or null.boolean isInheriting()
true if the value of the inherit
attribute is "yes".String[] getStates()
states attribute.states attribute
as an array of Strings, or an empty array.String[] getThemes()
themes attribute.themes attribute
as an array of Strings, or an empty array.String getMinValue()
minValue attribute.minValue attribute as a String,
or null.String getMinValueExclusive()
minValueExclusive attribute.minValueExclusive attribute as a String,
or null.String getMaxValue()
maxValue attribute.maxValue attribute as a String,
or null.String getMaxValueExclusive()
maxValueExclusive attribute.maxValueExclusive attribute as a String,
or null.Copyright © 2016 The Apache Software Foundation. All rights reserved.