com.android.tools.lint.checks
Class NamespaceDetector

java.lang.Object
  extended by com.android.tools.lint.detector.api.Detector
      extended by com.android.tools.lint.detector.api.ResourceXmlDetector
          extended by com.android.tools.lint.detector.api.LayoutDetector
              extended by com.android.tools.lint.checks.NamespaceDetector
All Implemented Interfaces:
com.android.tools.lint.detector.api.Detector.XmlScanner

public class NamespaceDetector
extends com.android.tools.lint.detector.api.LayoutDetector

Checks for various issues related to XML namespaces


Nested Class Summary
 
Nested classes/interfaces inherited from class com.android.tools.lint.detector.api.Detector
com.android.tools.lint.detector.api.Detector.ClassScanner, com.android.tools.lint.detector.api.Detector.GradleScanner, com.android.tools.lint.detector.api.Detector.JavaScanner, com.android.tools.lint.detector.api.Detector.OtherFileScanner, com.android.tools.lint.detector.api.Detector.XmlScanner
 
Field Summary
static com.android.tools.lint.detector.api.Issue CUSTOM_VIEW
          Using custom namespace attributes in a library project
static com.android.tools.lint.detector.api.Issue RES_AUTO
          Unused namespace declarations
static com.android.tools.lint.detector.api.Issue TYPO
          Typos in the namespace
static com.android.tools.lint.detector.api.Issue UNUSED
          Unused namespace declarations
 
Fields inherited from interface com.android.tools.lint.detector.api.Detector.XmlScanner
ALL
 
Constructor Summary
NamespaceDetector()
          Constructs a new NamespaceDetector
 
Method Summary
 com.android.tools.lint.detector.api.Speed getSpeed()
           
 void visitDocument(com.android.tools.lint.detector.api.XmlContext context, org.w3c.dom.Document document)
           
 
Methods inherited from class com.android.tools.lint.detector.api.LayoutDetector
appliesTo, hasPadding, isHeightFillParent, isWidthFillParent
 
Methods inherited from class com.android.tools.lint.detector.api.ResourceXmlDetector
appliesTo, run
 
Methods inherited from class com.android.tools.lint.detector.api.Detector
afterCheckFile, afterCheckLibraryProject, afterCheckProject, appliesToFolder, appliesToResourceRefs, beforeCheckFile, beforeCheckLibraryProject, beforeCheckProject, checkCall, checkClass, checkInstruction, createJavaVisitor, getApplicableAsmNodeTypes, getApplicableAttributes, getApplicableCallNames, getApplicableCallOwners, getApplicableElements, getApplicableFiles, getApplicableMethodNames, getApplicableNodeTypes, visitAttribute, visitBuildScript, visitElement, visitElementAfter, visitMethod, visitResourceReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.android.tools.lint.detector.api.Detector.XmlScanner
getApplicableAttributes, getApplicableElements, visitAttribute, visitElement, visitElementAfter
 

Field Detail

TYPO

public static final com.android.tools.lint.detector.api.Issue TYPO
Typos in the namespace


UNUSED

public static final com.android.tools.lint.detector.api.Issue UNUSED
Unused namespace declarations


CUSTOM_VIEW

public static final com.android.tools.lint.detector.api.Issue CUSTOM_VIEW
Using custom namespace attributes in a library project


RES_AUTO

public static final com.android.tools.lint.detector.api.Issue RES_AUTO
Unused namespace declarations

Constructor Detail

NamespaceDetector

public NamespaceDetector()
Constructs a new NamespaceDetector

Method Detail

getSpeed

@NonNull
public com.android.tools.lint.detector.api.Speed getSpeed()
Overrides:
getSpeed in class com.android.tools.lint.detector.api.Detector

visitDocument

public void visitDocument(@NonNull
                          com.android.tools.lint.detector.api.XmlContext context,
                          @NonNull
                          org.w3c.dom.Document document)
Specified by:
visitDocument in interface com.android.tools.lint.detector.api.Detector.XmlScanner
Overrides:
visitDocument in class com.android.tools.lint.detector.api.Detector