Class AttributeReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.metadata.parser.AbstractMetaDataReadHandler
-
- org.pentaho.reporting.engine.classic.core.metadata.parser.AttributeReadHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
public class AttributeReadHandler extends AbstractMetaDataReadHandler
-
-
Constructor Summary
Constructors Constructor Description AttributeReadHandler(String defaultBundle, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeCore
getAttributeCore()
AttributeMetaDataBuilder
getBuilder()
This method should be abstract, and will be in the near future and only exists as default implementation to honor the strict requirements of preserving a stable API.AttributeMetaData
getMetaData()
String
getNamespace()
AttributeDefinition
getObject()
Returns the object for this element or null, if this element does not create an object.String
getPropertyEditor()
String
getValueRole()
Class<?>
getValueType()
boolean
isBulk()
boolean
isComputed()
boolean
isMandatory()
boolean
isTransient()
protected void
startParsing(Attributes attrs)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.metadata.parser.AbstractMetaDataReadHandler
getBundle, getCompatibilityLevel, getMaturityLevel, getName, isDeprecated, isDerivedName, isExperimental, isExpert, isHidden, isPreferred, parseName
-
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, deriveParseParameters, doneParsing, endElement, getHandlerForChild, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
-
-
-
-
Method Detail
-
getBuilder
public AttributeMetaDataBuilder getBuilder()
Description copied from class:AbstractMetaDataReadHandler
This method should be abstract, and will be in the near future and only exists as default implementation to honor the strict requirements of preserving a stable API. Override it in your sub-classes.- Overrides:
getBuilder
in classAbstractMetaDataReadHandler
- Returns:
- a meta-data builder.
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Starts parsing.- Overrides:
startParsing
in classAbstractMetaDataReadHandler
- Parameters:
attrs
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getAttributeCore
public AttributeCore getAttributeCore()
-
getPropertyEditor
public String getPropertyEditor()
-
getNamespace
public String getNamespace()
-
isMandatory
public boolean isMandatory()
-
isComputed
public boolean isComputed()
-
isTransient
public boolean isTransient()
-
getValueType
public Class<?> getValueType()
-
isBulk
public boolean isBulk()
-
getValueRole
public String getValueRole()
-
getObject
public AttributeDefinition getObject() throws SAXException
Returns the object for this element or null, if this element does not create an object.- Returns:
- the object.
- Throws:
SAXException
- if an parser error occured.
-
getMetaData
public AttributeMetaData getMetaData()
-
-